Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/bash
- #install base packages
- pacman -Syu lighttpd php-cgi fcgi
- #configure lighttpd + php
- sed -i '/server.username = "http"/server.username = "www-data"/'
- sed -i '/server.groupname = "http"/server.groupname = "www-data"/'
- sed -i '/server.document-root = "\/srv\/http"/server.document-root = "\/var\/www"/'
- sed -i '/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=1/' /etc/php/php.ini
- #add to start up
- echo -e "/etc/rc.d/lighttpd start" >> /etc/rc.local
- echo "
- server.modules += ( "mod_scgi",
- "mod_access",
- "mod_fastcgi",
- "mod_accesslog" )
- server.indexfiles = ( "index.php", "index.html" )
- server.error-handler-404 = "/dispatch.fcgi"
- fastcgi.server = (
- ".php" =>
- ( "localhost" =>
- (
- "socket" => "/tmp/php-fastcgi.socket",
- "bin-path" => "/usr/bin/php-cgi"
- )
- )
- )
- scgi.server = (
- "/RPC2" =>
- ( "127.0.0.1" =>
- (
- "socket" => "/tmp/rpc.socket",
- "disable-time" => 0,
- "check-local" => "disable"
- )
- )
- )" >> /etc/lighttd/lighttpd.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement