I'm struggling to get PHP7 with SuExec using a VH Template.
PHP 5.6 with standard VHost - works out of box
PHP 7.0.10 with standard VHost - works with a bit of work.
PHP 5.6 with shipped VH Template PHP_SuEXEC works and reports process uid as expected.
PHP 7.0.10 with VH Template 'php-suexec-70' does not work properly.
If I set VHost Template php-suexec-7 > Script Handler to use [Server Level]: lsphp70 it works except that the process username is 'nobody'.
If I set VHost Template php-suexec-7 > Script Handler to use [VHost Level]: lsphp70 it gives 503 error
Any ideas on what I might be missing??
There is nothing useful in logs/error.log
Thanks...
----------------------------------------
VHost Template php-suexec-7 > External App
LiteSpeed SAPI App $VH_NAME_lsphp70 uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
Name $VH_NAME_lsphp70
Address uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
$SERVER_ROOT/fcgi-bin/lsphp7
VHost Template php-suexec-7 > Security
ExtApp Set UID Mode DocRoot UID
----------------------------------------
In conf/httpd.conf I have:
extprocessor lsphp70 {
type lsapi
address uds://tmp/lshttpd/lsphp70.sock
maxConns 35
env PHP_LSAPI_MAX_REQUESTS=500
env PHP_LSAPI_CHILDREN=35
initTimeout 10
retryTimeout 0
persistConn 1
respBuffer 0
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp7
backlog 100
instances 1
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}
In conf/templates/php-suexec-7.conf
extprocessor $VH_NAME_lsphp70 {
type lsapi
address uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
maxConns 5
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout 30
respBuffer 1
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp7
backlog 10
instances 5
extMaxIdleTime 60
priority 0
memSoftLimit 100M
memHardLimit 150M
procSoftLimit 100
procHardLimit 200
}
PHP 5.6 with standard VHost - works out of box
PHP 7.0.10 with standard VHost - works with a bit of work.
PHP 5.6 with shipped VH Template PHP_SuEXEC works and reports process uid as expected.
PHP 7.0.10 with VH Template 'php-suexec-70' does not work properly.
If I set VHost Template php-suexec-7 > Script Handler to use [Server Level]: lsphp70 it works except that the process username is 'nobody'.
If I set VHost Template php-suexec-7 > Script Handler to use [VHost Level]: lsphp70 it gives 503 error
Any ideas on what I might be missing??
There is nothing useful in logs/error.log
Thanks...
----------------------------------------
VHost Template php-suexec-7 > External App
LiteSpeed SAPI App $VH_NAME_lsphp70 uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
Name $VH_NAME_lsphp70
Address uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
$SERVER_ROOT/fcgi-bin/lsphp7
VHost Template php-suexec-7 > Security
ExtApp Set UID Mode DocRoot UID
----------------------------------------
In conf/httpd.conf I have:
extprocessor lsphp70 {
type lsapi
address uds://tmp/lshttpd/lsphp70.sock
maxConns 35
env PHP_LSAPI_MAX_REQUESTS=500
env PHP_LSAPI_CHILDREN=35
initTimeout 10
retryTimeout 0
persistConn 1
respBuffer 0
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp7
backlog 100
instances 1
memSoftLimit 2047M
memHardLimit 2047M
procSoftLimit 400
procHardLimit 500
}
In conf/templates/php-suexec-7.conf
extprocessor $VH_NAME_lsphp70 {
type lsapi
address uds://tmp/lshttpd/$VH_NAME_lsphp70.sock
maxConns 5
initTimeout 60
retryTimeout 0
persistConn 1
pcKeepAliveTimeout 30
respBuffer 1
autoStart 1
path $SERVER_ROOT/fcgi-bin/lsphp7
backlog 10
instances 5
extMaxIdleTime 60
priority 0
memSoftLimit 100M
memHardLimit 150M
procSoftLimit 100
procHardLimit 200
}