Zend Opcache with CloudLinux: docs conflict

edigest

Active Member
#1
Zend Opcache does not work following docs from LiteSpeed or CloudLinux:

CloudLinux docs recommends

3. LSPHP5 external app runs in SUEXEC non-daemon mode ONLY (Run On Start Up --> Yes or No)

Opcache only works with "Run on StartUp" set to Server --> External App --> Run On Start Up --> suEXEC Daemon

LiteSpeed docs recommend suEXEC ProcessGroup. However, when "LSPHP_ProcessGroup on" is added to httpd.conf, Opcaching stops working.

I tried ProcessGroup with "suEXEC Daemon," "Yes" an "No" configured in "Run on Start Up." No luck with any configuration.

It is working fine ignoring the CloudLinux instructions (as suEXEC Daemon). I would like to get ProcessGroup working. Any ideas?

This is CloudLinux over CentOS 6 and CPanel.
 

edigest

Active Member
#3
Opcache does show in phpinfo and it is configured in php.ini. This makes sense because Opcache does work when LSPHP is configured to run as suEXEC Daemon. It fails when not running in daemon mode and it fails when ProcessGroup is added to httpd.conf.
 

NiteWave

Administrator
#4
is WHM/cPanel installed ?

with cloudlinx alt-php, every account can customize its php version and modules, so every account has different php.ini
to ensure you've got the right php.ini
 

mistwang

LiteSpeed Staff
#5
Like NiteWave mentioned, you have to check phpinfo() output for opcache related configuration when ProcesGroup mode is on.
Each account uses different php.ini under CageFS.
 

edigest

Active Member
#6
This appears to be a problem with alt-PHP, when the site is using the "native" (default) PHP version. Even if Opcache is defined, ProcessGroup does not work.

I will follow-up when I hear back from CL.
 
Top