summaryrefslogtreecommitdiff
path: root/network/lighttpd/README
diff options
context:
space:
mode:
Diffstat (limited to 'network/lighttpd/README')
-rw-r--r--network/lighttpd/README25
1 files changed, 25 insertions, 0 deletions
diff --git a/network/lighttpd/README b/network/lighttpd/README
index 6a9e3e0cf1..d8623f000f 100644
--- a/network/lighttpd/README
+++ b/network/lighttpd/README
@@ -33,3 +33,28 @@ to stop lighttpd on system shutdown.
if [ -x /etc/rc.d/rc.lighttpd ]; then
/etc/rc.d/rc.lighttpd stop
fi
+
+* PHP users:
+Slackware's default php package is meant to work with
+httpd(apache). It works fine with lighttpd with a couple of tweaks.
+
+1) Copy the php.ini from /etc/httpd to /etc/lighttpd
+
+2) Uncomment mod_fastcgi from the modules section of
+/etc/lighttpd/lighttpd.conf.
+
+3) Rework the fastcgi section of /etc/lighttpd/lighttpd.conf to the
+following: (Or just copy this in below the extisting commented out
+fastcgi config.)
+
+fastcgi.server = ( ".php" =>
+ ( "localhost" =>
+ (
+ "socket" => "/tmp/php-fastcgi.socket",
+ "bin-path" => "/usr/bin/php-cgi -c /etc/lighttpd/php.ini"
+ )
+ )
+ )
+
+4) Change the group of /var/lib/php from "apache" to "lighttpd".
+Otherwise php won't be able to use $_SESSION.