Hi,
I tried all i sexplained here.
For this I let the luci httpd settings to the port 80.
Due to not enough space I installed PHP on the USB key.
I followed these instructions :
Add the following line to /etc/httpd.conf:
Code:
*.php:/usr/bin/php
Restart httpd:
Code:
/etc/init.d/httpd restart
TO USE A DIFFERENT WWW place I created a WWW on the US Key and I followed the instructions by :
Create a file, phpinfo.php in /www/cgi-bin with the following:
Code:
<?php
phpinfo();
?>
I also installed a simple index.html on the /www (USB Key)
I also followed the instruction by adding :
cgi.force_redirect = 0
cgi.redirect_status_env ="yes";
On the php.ini which is on the USB Key.
I also (personnaly) added those lines in the /etc/config/httpd file :
option 'port' '81'
option 'home' '/mnt/usbdrive-1/www'
I also do httpd -p 81 -c /etc/httpd.conf (explained by sn4ke in https://forum.openwrt.org/viewtopic.php?id=21450).
1) The problem is when I use this URL (http://192.168.1.1:81) it well display my index file but directly goes (automatically) to http://192.168.1.1:81/cgi-bin/luci by giving a 404 not found error.
2) The seond problem is I can find the /usr/bin/php which is used in the httpd.conf (I searched in the / of the router and also on the USB Key). I can't find it. And PHP5 is well installed :
php5 - 5.2.6-2 -
php5-mod-mysql - 5.2.6-2 -
php5-mod-session - 5.2.6-2 -
php5-mod-xml - 5.2.6-2 -
Can somebody tell me what to do to give the correct php in the httpd.conf ? And how to keep displayed my index file without going to the http://192.168.1.1:81/cgi-bin/luci
Sincerely thanks and have a nice day.
Miguipda ;-)