Hi
I've tried to install lighttpd and php to run a small php web server on my WL500gP. I downloaded the svn rev. 9804. Compiled just about everything and put the packages up on a webserver on my lan. But I'm runing the bcrm2.4 image from openwrt.org not the one I compiled my self.
After adding my new homemade repo, i can download and install lighttpd and php4 with ipkg just fine. After editing the config of lighttpd I can serv static content to the lan(but only the lan). Then installing the php4 and php4-cgi I compiled, change the root dir in php.ini to right one, I create a small php page. Then I try to access it and I just recive my php code in plain text. No errors in lighttpd log.
These are all the lines in lighttpd.conf I have changed/uncommected. Everything else is stock.
server.modules = (
...
"mod_cgi",
...
)
...
server.document-root = "/www_1/"
...
server.errorlog = "/var/log/lighttpd/error.log"
...
index-file.names = ( "index.html", "default.html", "index.htm", "default.htm", "index.php" )
...
server.port = 81
...
cgi.assign = ( ".php" => "/usr/bin/php" )
...
php -v produces:
root@OpenWrt:~# php -v
PHP 4.3.11 (cgi) (built: Dec 18 2007 23:12:19)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Does anybody have any idea why I'm getting serve my php files in plain text? And why I can't access the lighttpd from the wan interface?
CazH