SliTaz SliTaz Forum

You are not logged in.

#1 2014-07-15 14:17:02

allen
Member
Registered: 2014-06-22
Posts: 36

SliTaz 4.0-base: Add PHP for Busybox httpd

I am looking to add PHP for use with Busybox httpd. Reason: I cannot find code for an HTTP upload web page that doesn't require PHP as well as shell scripts that query the URL string (there are javascripts to query the URL but the variable is not global: i.e: cannot use it in the shell script). Your input is welcome if I am incorrect, maybe missed something searching the net.

I do not want to install unnecessary PHP packages. I'm a clean freak. When I tazpkg -s PHP (search) there is quite an assortment of packages and prefer to select the one that provides mainly support for Busybox httpd.

All suggestions concerning everything I spoke about is greatly appreciated!

Thank you.. Allen

Offline

#2 2014-07-16 02:58:32

allen
Member
Registered: 2014-06-22
Posts: 36

Re: SliTaz 4.0-base: Add PHP for Busybox httpd

I found downloading and installing php-5.2.17 and only the libxml2 dependency was required to add PHP support to Busybox httpd. I should note that it was necessary to create/add /ect/php.ini file with the following entries...

cgi.force_redirect = 0

cgi.redirect_status_env ="yes";

and edit /etc/httpd.conf to include the location of php-cgi...

*.php:/usr/bin/php-cgi

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]