From: Thimios D. <dim...@ce...> - 2005-08-27 16:28:16
|
It's surely a different thing, running php code on a bash shell through php-cli than running it on the web server. For one thing, on the first case, you have all the environment variables available.=20 Is your code on-line somewhere? Maybe i could help if i could test it. On =D0=E1=F1, 2005-08-26 at 14:12 -0400, Christopher Ness wrote: > Hi All, >=20 > I'm almost finished up persistent configurations, but the kicker is tha= t > the web server (thttpd) doesn't seem to like the PHP program I built to > run as an abstraction interface to the config storage. >=20 > How do the PHP scripts execute ls, iwconfig, etc. Is there some path > variable set up somewhere in the code or is it dependant on `php.ini` > somewhere? >=20 > I want this program to execute in /alt/ > sunny2:/tmp/www/cgi-bin/wifiadmin# ls -la /alt/wlan-config.php > -rwxr-xr-x 1 root root 5934 Jan 22 > 21:37 /alt/wlan-config.php >=20 > It works great from the CLI, but the web server tries to execute it fro= m > iwsettings.php and it seems to try and run the command where I set the > config value in process 1320 below. But the web server doesn't move on= , > it just gives up. >=20 > 1067 root 960 S /usr/sbin/thttpd -p 80 -u root -d /tmp/www -c= /cgi-bi > 1313 root 2132 S N /usr/bin/php iwsettings.php > 1315 root 964 S /usr/sbin/thttpd -p 80 -u root -d /tmp/www -c= /cgi-bi > 1320 root 2004 S N /usr/bin/php -q /alt/wlan-config.php set nick= 'SUNNY3 > 1321 root 672 R ps aux >=20 > This is probably a PHP/thttpd issue, but anybody have a suggestion on > what I should look for? >=20 > Cheers, > Chris |