Install lighttpd + php + mysql + Drupal In Debian-Debian information for the Linux release. Source: http://www.phecda.org/200803/install_lighttpd_php.html
Setting up a website in Linux is not difficult, but it is simpler In Debian.
Linux uses Debian and http server software uses lighttpd. It is a lightweight server software. Today, many cool stations have it. php is used for dynamic languages and mysql is used for databases, CMS uses Drupal.
Installation:
# Apt-get install lighttpd php5-cgi php5-mysql mysql-server php5-gd
Php5-gd is a drawing library
Configuration:
# Vi/etc/php5/cgi/php. ini
Change "cgi. fix_pathinfo = 0" to "cgi. fix_pathinfo = 1" (central part of the document)
# Vi/etc/lighttpd. conf
Change the website directory: server.doc ument-root = "/home/hu/www/endd.cn"
Add a line to the server. modules entry with the following content:
"Mod_fastcgi"
Because our website does not like. php? P = ** format URL, so you need to remove the comment before "mod_rewrite.
Add content to the file:
CODE: fastcgi. server = (". php" => (( "Bin-path" => "/usr/bin/php5-cgi ", "Socket" => "/tmp/php. socket" ))) Url. rewrite-final = ( "^/([^.?] *)\? (. *) $ "=>"/Index. php? Q = $1 & $2 ″, "^/([^.?] *) $ "=>"/Index. php? Q = $1 ″ ) |