From: Christopher N. <ch...@ne...> - 2005-08-26 18:13:20
|
Hi All, I'm almost finished up persistent configurations, but the kicker is that the web server (thttpd) doesn't seem to like the PHP program I built to run as an abstraction interface to the config storage. 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? 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 It works great from the CLI, but the web server tries to execute it from 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. 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 This is probably a PHP/thttpd issue, but anybody have a suggestion on what I should look for? Cheers, Chris -- Wireless Group McMaster University summer 14:03:13 up 35 days, 23:56, 3 users, load average: 0.20, 0.30, 0.26 |