
07-21-2011, 03:17 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
Setup
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_address ort
2. setup external app (such as 'remote php') and script handler (for php handled by 'remote php' ext app) on web server.
external app:
address => IP_address: port (in step 1)
auto start => no
Note:
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.
|