#!/bin/bash apt-get install php5 php5-mysql php5-gd php5-mcrypt php5-cgi lighttpd mysql-server # Append php to lighttpd echo 'fastcgi.server = ( ".php" => (( "bin-path" => "/usr/bin/php5-cgi", "socket" => "/tmp/php.socket" )))' >> /etc/lighttpd/lighttpd.conf # Append cgi.fix_pathinfo = 1 to php.ini echo "cgi.fix_pathinfo = 1" >> /etc/php5/cgi/php.ini # uncomment mod_rewirte and add mod_fastcgi mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.ori cat /etc/lighttpd/lighttpd.conf.ori | sed s/'# "mod_rewrite",'/'\t"mod_rewrite",\n\t"mod_fastcgi",'/g > /etc/lighttpd/lighttpd.conf /etc/init.d/lighttpd restart echo "" >> /var/www/phpinfo.php w3m 127.0.0.1/phpinfo.php
Wenn die phpinfo.php geladen werden kann, läuft lighthttpd mit PHP-CGI und MySQL.
Edit/Optional: phpMyAdmin
cd /var/www/ wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.2/phpMyAdmin-3.3.2-all-languages.tar.bz2 tar -xjvf phpMyAdmin-3.3.2-all-languages.tar.bz2 mv phpMyAdmin-3.3.2-all-languages phpMyAdmin