====== Lighttpd ====== To setup Lighttpd with php support with Voyage-0.5.2 is pretty easy. It takes just a few simple steps. I adapted the instructions from [[http://trac.lighttpd.net/trac/wiki/TutorialLighttpdAndPHP|http://trac.lighttpd.net/trac/wiki/TutorialLighttpdAndPHP]]. Note: These instructions also work with Voyage-0.6.0. Just replace each reference to "php4" with "php5". Download and install the needed items: apt-get install lighttpd php4-cgi Add a line to the php.ini: echo cgi.fix_pathinfo = 1 >> /etc/php4/cgi/php.ini Add mod_fastcgi in your /etc/lighttpd/lighttpd.conf, under server.modules: server.modules = ( "mod_fastcgi", ) Then add this basic section to the same file: fastcgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php4-cgi", "socket" => "/tmp/php.socket" ))) Fix the log directory: cp -a /rw/var/log/lighttpd /ro/var/log/lighttpd Clear the logs so they start clean every time: rm /ro/var/log/lighttpd/* ====== Thttpd ====== ---- thttpd is nice, but php support has to be patched in and compiled. The patches available are for thttpd 2.21b, which is old and has some security vulnerabilities. And how do you support php5? Below is old information that doesn't work. Take it out if you like. ---- To setup thttp with php support with Voyage-0.2pre1 is pretty easy it takes just a few simple steps. First download the prerequisites: apt-get install php4-cli logrotate Then download the thttpd-php binary. wget http://www.pure-wireless.net/thttpd-voyage.tar.gz tar zxf thttpd-voyage.tar.gz cd thttpd Next move the files to their required locations: mv etc/init.d/thttpd /etc/init.d/ mv etc/logrotate.d/thttpd /etc/logrotate.d/ mv etc/thttpd /etc/ mv usr/sbin/thttpd /usr/sbin/thttpd Now you have to edit the thttpd.conf file to suit your needs. The one included is generic enough to work in most cases. Now create the user to run under and the data directory for your php files. useradd www mkdir /var/www/ The last step is to turn on thttpd: /etc/init.d/thttpd start Now point your browser to your voyage IP address and if you put a file in the /var/www directroy it should be displayed. Wifi-admin works well under this with a little tweaking. I would like to make this a package if anyone wants to help in this effort please contact me at: voyage at pure-wireless.net