Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Alexey on November 27, 2014, 08:45:36 AM

Title: PHP interpreter for Apache httpd server
Post by: Alexey on November 27, 2014, 08:45:36 AM
I'd like to have Apache web server and php interpreter at PiCore.

Apache 2.4 is noticed to be at the repository, but I haven't noticed PHP interpreter at the repo.
Is it available for PiCore?
Title: Re: PHP interpreter for Apache httpd server
Post by: bmarkus on November 27, 2014, 12:36:30 PM
Not yet, but will come soon together with MariaDB (MySQL). Testing it on x86 and when ok, will build them on piCore.
Title: Re: PHP interpreter for Apache httpd server
Post by: Alexey on November 28, 2014, 03:30:31 AM
Goot to know it, will wait for php interpreter!
Would be nice to be able to run an interpreter as FastCGI or as an Apache module, as both possible solutions.
Title: Re: PHP interpreter for Apache httpd server
Post by: Alexey on December 03, 2014, 04:25:27 AM
bmarkus, would the 'mod_fcgid' (this module (http://httpd.apache.org/mod_fcgid/)) be available for the upcoming php interpreter, compiled for PiCore?
Title: Re: PHP interpreter for Apache httpd server
Post by: bmarkus on December 03, 2014, 04:51:00 AM
bmarkus, would the 'mod_fcgid' (this module (http://httpd.apache.org/mod_fcgid/)) be available for the upcoming php interpreter, compiled for PiCore?

mod_fcgid was added to repo last week.
Title: Re: PHP interpreter for Apache httpd server
Post by: Alexey on December 03, 2014, 05:48:26 AM
Sorry, I can't see it in repo (http://tinycorelinux.net/5.x/armv6/tcz/).
I have also look inside 'apache2.4.tcz' archive, in '\usr\local\apache2\modules' folder - don't see 'mod_fcgid'.
Title: Re: PHP interpreter for Apache httpd server
Post by: bmarkus on December 03, 2014, 05:56:52 AM
Sorry, I can't see it in repo (http://tinycorelinux.net/5.x/armv6/tcz/).
I have also look inside 'apache2.4.tcz' archive, in '\usr\local\apache2\modules' folder - don't see 'mod_fcgid'.

It is in the 6.x repo.
Title: Re: PHP interpreter for Apache httpd server
Post by: Alexey on December 03, 2014, 06:06:58 AM
I see it, thank you!
Title: PHP interpreter
Post by: Alexey on December 15, 2014, 06:31:25 AM
bmarkus, is the php interpreter available?
Title: Re: PHP interpreter for Apache httpd server
Post by: patrikg on December 16, 2014, 03:51:15 AM
Why not using wget ??

Code: (bash) [Select]
wget -q -O - 'http://localhost/test.php?param1=12&param2=user' | head
Title: Re: PHP interpreter for Apache httpd server
Post by: Alexey on December 17, 2014, 01:04:46 PM
Why not using wget ??

Code: (bash) [Select]
wget -q -O - 'http://localhost/test.php?param1=12&param2=user' | head

...how can wget be used to execute php scripts on a web server? or what do you mean?
Title: Re: PHP interpreter for Apache httpd server
Post by: bmarkus on December 17, 2014, 01:58:20 PM
php.tcz added to repo. For sure it is too big and must split up to smaller tcz's but good to start. You can advise how to split it.

Please try.
Title: Re: PHP interpreter for Apache httpd server
Post by: patrikg on December 18, 2014, 04:15:33 AM
Just mean that you can use wget to access php for command line.
If you don't have any php command line program.
If you only have an php-module in some webserver.


Why not using wget ??

Code: (bash) [Select]
wget -q -O - 'http://localhost/test.php?param1=12&param2=user' | head

...how can wget be used to execute php scripts on a web server? or what do you mean?