:: enable fastcgi php on lighttpd
Posted by blackonsole on May 7th, 2011 12:41 PM | 1 Comment
:: how to enable php-cgi on lighttpd
+ configure lighttpd for php fast cgi
# vi /etc/lighttpd/lighttpd.conf
### add some line like :
### php fastcgi on lighttpd
fastcgi.server = ( ".php" => (
(
...
:: virtual host on lighttpd
Posted by blackonsole on May 6th, 2011 08:16 AM | No Comment
:: how to setup ligttpd vhost on linux debian
+ create directory for vhost website
# mkdir -p /var/www/vhost/blackonsole.org/{http,logs}
# mkdir -p /var/www/vhost/konsole.com/{http,logs}
# chown -R www-data.www-data /var/www/vhost/
+ configure virtual host on lighttpd.conf
# vi /etc/lighttpd/lighttpd.conf
### blackonsole.org
$HTTP =~ "(^|.)blackonsole.org$" {
...
:: install lighttpd on linux
Posted by blackonsole on May 5th, 2011 09:28 AM | No Comment
:: how to install lighttpd on linux debian
# aptitude install lighttpd
:: configuring lighttpd on linux
# vi /etc/lighttpd/lighttpd.conf
### default settings ####
server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
# "mod_rewrite",
)
server.document-root = "/var/www"
server.upload-dirs ...