07-21-2011, 03:17 PM
Join Date: Oct 2010
a typical setup is as follows:
1. start lsphp from command line
PHP_LSAPI_MAX_REQUESTS=500 PHP_LSAPI_CHILDREN=35 /path/to/lsphp -b IP_addressort
2. setup external app (such as 'remote php') and script handler (for php handled by 'remote php' ext app) on web server.
address => IP_address: port (in step 1)
auto start => no
php scripts on local web server need to be rsync'd over to the lsphp server with the exact path.
a. if local web server is chroot'd, then chroot needs to map to file system root of the remote server. e.g. if web server chroot is /usr/local/opt, then /usr/local/opt/lsws/DEFAULT/html (default lsws vhost docroot) needs to be rsync'd over and placed on remote server as /lsws/DEFAULT/html.
b. If no chroot, then /usr/local/lsws/DEFAULT/html should be rsync'd over as /usr/local/lsws/DEFAULT/html.
mysql processes run on lsphp server or dedicated db server.