Install lighttpd + php + mysql + Drupal In Debian

Source: Internet
Author: User
Tags drupal
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 ″
)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.