Differences
This shows you the differences between two versions of the page.
— |
guides:how-to-set-custom-php-ini-values-in-cagefs-for-php-selector [2016-08-24 19:07:42] (current) rory.blanchard created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to Set Custom php.ini Values in Cagefs for PHP Selector ====== | ||
+ | CloudLinux' | ||
+ | |||
+ | It is possible to modify custom settings by hand through the command line. | ||
+ | |||
+ | Start by going into the command line. After you're in, run the following command to get into the specific user's caged environment: | ||
+ | |||
+ | < | ||
+ | cagefsctl -e < | ||
+ | </ | ||
+ | |||
+ | This will take you to a new prompt. Once there, you can use a text editor to modify the php settings directly: | ||
+ | |||
+ | <note warning> | ||
+ | Make sure to edit the correct file for the version of PHP you have selected otherwise the changes will not go into effect. Replace the **XX** with your version of PHP, so for version 5.4 the path would be / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | nano / | ||
+ | </ | ||
+ | \\ | ||
+ | |||
+ | Once there, you will see a section like this: | ||
+ | |||
+ | < | ||
+ | ;>=== Start of PHP Selector Custom Options === | ||
+ | ;<=== End of PHP Selector Custom Options ===== | ||
+ | </ | ||
+ | \\ | ||
+ | Inside of this section, you can put in your custom **PHP Variables** such as memory_limit, | ||
+ | |||
+ | < | ||
+ | If you've already modified your PHP options within the PHP selector, you will see some custom values in that section. | ||
+ | </ | ||
+ | \\ | ||
+ | \\ |