This is a real head scratcher. mini_httpd is running just fine. I can create a test.html file in the web directory and it will load in the browser without any problem. But, if it's a .cgi or .php file it won't work (no output). Not a 500 error or anything, just nothing at all. For example, this source will provide a blank page:
#!/usr/bin/php <?php echo('hello world'); ?>
I looked in the /etc/init.d/S55mini_httpd at how it runs mini_httpd and it's all stock:
/bin/nice -n -20 \ /usr/sbin/mini_httpd \ -d $WEBROOT \ -c "**.mp3|**.m4a|**.mp4|**.mov|**.pdf|**.wma|**.m4v|**.php|**.cgi" \ -u root \ -l /var/log/mini_httpd.log \ -i /var/run/mini_httpd.pid \ -maxproc 16 \ -p $HTTP_PORT
Port and path are correct (verified as html files work without a problem). The obvious problem with this is that I can't get into the webadmin. So, why won't mini_httpd run scripts? I've been pulling my hair out trying all sorts of things and nothing. I can only guess that an Optware or FeaturePacks install did something that's causing this. I am running lighttpd via FeaturePacks, but it's on different ports (again, html works fine with mini_httpd). I also noticed the following when doing a "ps | grep php", is this normal, related?
4971 root 3536 S /usr/bin/php -q /proto/SxM_webui/ctcs/service_ctcs.ph 4976 root 2620 S /usr/bin/php -q /proto/SxM_webui/ctcs/service_trigger 5001 root 2192 S /usr/bin/php -q /proto/SxM_webui/ctcs/dn_scd_monitor. 5006 root 592 S sh -c /proto/SxM_webui/ctcs/dn_scd.php 5007 root 3180 S /usr/bin/php -q /proto/SxM_webui/ctcs/dn_scd.php 5014 root 2220 S /usr/bin/php -q /proto/SxM_webui/admin/tools/monitorR