Tiny Core Extensions > TCE Q&A Forum

Busybox httpd server enabling php ?

<< < (2/4) > >>

Terminator3000:
Stuck a bit here on the attempted Busybox-httpd/MySQL/PHP setup.

Whilst the server(for html) and mysql are working fine,there is a prob with getting php working. After installing the php5.tcz from repo,I have the following problems:)-

A. Busybox seems to have no conf file,in fact there only seem to a couple of folders in /usr/local/httpd.

B. php.ini  entry seems to centre around apache or iis with no specific reference to busybox

C. Cant find the php-mysql.so extension directory

So problems getting php to work and thats before even starting to enable php-mysql.so extension which I cant even find !

So if anyone knows anything about Busybox anf php5 dont hesitate to share !

Thanks.

gutmensch:
Did you try it as suggested here https://forum.openwrt.org/viewtopic.php?id=11098 ?

If you're not sure, what conf file to edit, load the strace extension and start busybox httpd like this:


--- Code: ---# strace -e open httpd
--- End code ---

Watch for files the process opens.

@MySQL: php5.tcz may already include mysql support so you won't need a special extension, you can check if mysql is available by executing phpinfo(); and look at the extensions.

tinypoodle:
mysql.tcz is a dependency of php5.tcz

Terminator3000:
Getting somewhere but still probs.After creating a httpd.conf file with the line
*.php:/usr/local/bin/php it now will show an info page with phpinfo() function BUT there is no  color,styling or formatting its just in plain text,has all the right stuff on it showing mysql extension etc.

It wont serve any other php page though so something's wrong somewhere.

The above IS the path to the php.exe.

It wont serve by default an index.php page just get an error.

Typically with Apache that information 'page to serve if no dir requested' would go in  httpd.conf how to put in in busybox httpd ?

Terminator3000:
So its displaying an info file of sorts but only if I browse to it and there is no styling to it just plain text,(but the info is there).

Other php pages dont serve at all neither by default or if I browse to them,so there are still some settings problems to fathom out.

I've never had a use for cgi but I notice that the tcz module is built with cgi specifically in mind I suspect the cgi aspect is one of the problems (theres a php-cgi exe next to the php one ) Is there another php module available without the cgi stuff ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version