FS#2879 - lighttpd spawn-php chroot functionality
Attached to Project:
Arch Linux
Opened by eliott (cactus) - Saturday, 25 June 2005, 22:28 GMT
Last edited by Dale Blount (dale) - Sunday, 26 June 2005, 00:33 GMT
Opened by eliott (cactus) - Saturday, 25 June 2005, 22:28 GMT
Last edited by Dale Blount (dale) - Sunday, 26 June 2005, 00:33 GMT
|
Details
Adding to following to /etc/conf.d/spanw-php
## chrootdir CHROOTDIR="/home/php" and modifying the following in /etc/rc.d/spawn-php if test x$UID = x0; then EX="$EX -u $USERID -g $GROUPID" fi fi to be: if test x$UID = x0; then EX="$EX -u $USERID -g $GROUPID" if [ -z "$CHROOTDIR" ]; then EX="$EX -c $CHROOTDIR" fi fi allows the prespawned php-fcgi instances to start chrooted in /home/php. |
This task depends upon
if [ ! -z "$CHROOTDIR" ]; then