diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-01-13 13:20:52 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-01-13 13:20:52 -0600 |
commit | 4d0483f0ceeaf031ea84a18e4c4ecbdc3a0c51af (patch) | |
tree | 15e6966dd1b6dad62fbd58e6a7f1e13ba02460af /network/lighttpd2/README.SLACKWARE | |
parent | 030614f6b0430aa4b433019e9ddc973c482e806c (diff) | |
download | slackbuilds-4d0483f0ceeaf031ea84a18e4c4ecbdc3a0c51af.tar.gz |
network/lighttpd2: Updated for version 20121206_01abf70.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/lighttpd2/README.SLACKWARE')
-rw-r--r-- | network/lighttpd2/README.SLACKWARE | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/network/lighttpd2/README.SLACKWARE b/network/lighttpd2/README.SLACKWARE index 8caea6bf40..c456dfe7c1 100644 --- a/network/lighttpd2/README.SLACKWARE +++ b/network/lighttpd2/README.SLACKWARE @@ -1,34 +1,51 @@ README.SLACKWARE For lighttpd2 -lighttpd2 can be started and stopped through the initialization script that -is provided: +lighttpd2 can be started and stopped through the initialization +script that is provided: + /etc/rc.d/rc.lighttpd2 start /etc/rc.d/rc.lighttpd2 stop If you would like to start lighttpd automatically when the system is booted, add the following lines to /etc/rc.d/rc.local: + if [ -x /etc/rc.d/rc.lighttpd2 ]; then /etc/rc.d/rc.lighttpd2 start fi Conversely, add the following lines to /etc/rc.d/rc.local_shutdown to stop lighttpd on system shutdown. + if [ -x /etc/rc.d/rc.lighttpd2 ]; then /etc/rc.d/rc.lighttpd2 stop fi * PHP users: -Slackware's default php package is meant to work with httpd(apache). -It works fine with lighttpd assumed the addition of the user lighttpd -run as to the "apache" group. -gpasswd -a lighttpd apache +This slackbuild is already preconfigured (but is disabled by default) +for an use with php in /etc/lighttpd2/lighttpd.conf and uses php-fpm +already in Slackware. -Otherwise, php won't be able to use $_SESSION. +You have to make two changes to /etc/php-fpm.conf, namely + + user = lighttpd + listen = /var/run/lighttpd2/php-fpm.sock -This slackbuild already setup php in /etc/lighttpd2/lighttpd.conf -and build a fastcgi server, spawn-fcgi. This is used as a daemon -with its own init script, /etc/rc.d/rc.spawn-fcgi (that can be -started at boot in the same way of rc.lighttpd2). +Then make /etc/rc.d/rc.php-fpm executable and start it (for an +automatic start/stop, do as for the rc.lighttpd2 script). +Enable php uncommenting the last line of /etc/lighttpd2/lighttpd.conf +(you might want to have a look at the "index" directive too). +The php.ini used will be /etc/httpd/php.ini: you can also override +options set in this file adding them at the end of /etc/php-fpm.conf +(you will find some examples there). + +Note: Slackware's default php package is meant to work with httpd +(apache), so its session folder has permissions root:apache. +It works fine with lighttpd assumed the addition of the user lighttpd +run as to the "apache" group. If you have choosen the user "lighttpd" + + gpasswd -a lighttpd apache + +Otherwise, php won't be able to use $_SESSION. |