Friday, March 1, 2013

CloudLinux Selector Plugin

Selector is cloud linux addon used to select version of PHP interpreter inside CageFS. PHP info page under user accounts will show the php.ini path as /usr/selector/php.ini. '/usr/selector/php.ini' is virtual, it's inside CageFS , created personally for each user. That is it is actually a link to a real php.ini file in the server. So the same php.ini will be loaded in the end. Since it is virtual a link we don't need to create link to main php.ini /usr/local/lib/php.ini manually.

http://docs.cloudlinux.com/index.html?cagefs_quirks.html
http://docs.cloudlinux.com/php_selector.html
http://docs.cloudlinux.com/index.html?cagefs.html

For changing PHP variables globally, we need to edit main php.ini file(usr/local/lib/php.ini) and then run "cagefsctl --update" or "cagefsctl --force-update" to update the changes for all users.
To setup local php variables you can follow http://docs.cloudlinux.com/index.html?custom__etc_direcotry.html

No comments:

Post a Comment