Project

General

Profile

Actions

Fastcgi-php-starter-for-freebsd » History » Revision 2

« Previous | Revision 2/14 (diff) | Next »
davojan, 2006-05-15 12:01


The script attached should be very handy for FreeBSD users. This is rc.d script to spawn FastCGI PHP processes. It is based on [source:tags/lighttpd-1.4.8/doc/spawn-php.sh spawn-php.sh] from doc/ directory in the lighttpd sources.

Installing
Just copy [fastcgi-php.sh fastcgi-php.sh] to /usr/local/etc/rc.d/. Then {{{ # cd /usr/local/etc/rc.d/ # chown root:wheel fastcgi-php.sh # chmod 544 fastcgi-php.sh
}}} Configuring
Here are configuration parameters with their default values, which you can change in /etc/rc.conf: {{{
fcgiphp_enable="NO"
fcgiphp_user="www"
fcgiphp_group="www"
fcgiphp_children="10"
fcgiphp_port="8002"
fcgiphp_socket="/tmp/php-fastcgi.sock"
fcgiphp_env="SHELL PATH USER"
fcgiphp_max_requests="500"
fcgiphp_addr="localhost"
}}}
To make script workable you must adjust only one thing: {{{
fcgiphp_enable="YES"
}}}

Updated by davojan over 18 years ago · 2 revisions