Some PHP scripts executed with cronjobs are not working properly, are interrupted or just hang.
Known affected website engines: Magento, CakePHP .
The issue is caused by PHP CGI binary is being called instead of PHP CLI version. It happens due to
CloudLInux provides an opportunity to add custom comments to PHP versions, chosen with PHP-Selector by users. Usually they are used to notify users about outdated or recommended versions.
Upon forming a list of available versions selectorctl searches
We had few requests to support different PHP versions per directory . While this is not available using PHP Selector UI , it is fairly simple to do manually .
The important requirement is that PHP must be set to run in SuPHP mode. We are going to
To restore PHP-Selector options and alternate PHP version from backup (example user cltest3) you have to:
Restore ~cltest3/.cl.selector/ directory Remove PHP-selector current files from cagefs directory, first
Due to the fact that from time to time our Helpdesk meets requests related with some problems with CageFS, PHP Selector, Apache server etc., we present this article to describe how to configure these components using suPHP and FastCGI handlers on non-panel
If you are experiencing high iowait or high iousage by single LVE or load average jumps after enabling APC the most probable reason is due to following directive in /opt/alt/php5*/etc/php.d.all/apc.ini:
apc.mmap_file_mask = /tmp/apc.shm.XXXXXX
During Alt-PHP packages update, we don’t rewrite *ini files at all. Only two PHP variables are reset to values from native php.ini file, they are “error_log” and “date.timezone”.
To prevent this situation, you should define
Here is an easy instruction of how to setup different PHP versions per directories when using mod_lsapi.
Note: This is not applicable for cPanel with EasyApache 4.
Assuming that you already have CageFS, PHP Selector and mod_lsapi installed, perform
Our PHP-Selector work wtih DirectAdmin only if PHP is running in suphp or fcgi mode. Here is the complete set of commands to enable selector on DA with suphp :
/usr/local/directadmin/custombuild/build set php1_mode suphp
/usr/local/directadmin/custombuild/build set cloudlinux yes
/usr/local/directadmin/custombuild/build set cagefs yes
/usr/local/directadmin/custombuild/build php y
Same way for fcgi mode.