Monday, September 30, 2013

Migrating Drupal from Apache Webserver to Lighttpd Webserver

***This assumes that php php-cgi php-mysql php-gd mysql-server php-xml mysql are already installed***

***Install Lighttpd***

yum install lighttpd
yum install lighttpd-fastcgi

***Change the following lines in the lighttpd config file ( /etc/lighttpd/lighttpd.conf)***


var.server_root = "/var/www/html/drupal-7.23"  ***This will vary based off of your drupal folder location***

server.document-root = server_root

***Add the FastCgi server information to the lighttpd config file ( /etc/lighttpd/lighttpd.conf)***

fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket-0"
)))

***Change the Modules that are active on the lighttpd server ( /etc/lighttpd/modules.conf)***

modules.conf
  "mod_access",
#  "mod_alias",
#  "mod_auth",
#  "mod_evasive",
  "mod_redirect",
  "mod_rewrite",
  "mod_fastcgi",
#  "mod_setenv",
#  "mod_usertrack",
)

***Change the owner of the web root to the public user & group***

chown -R user:group /var/www/html/drupal-7.23

***Start the lighttpd server***

service lighttpd start




No comments:

Post a Comment