Changes between Version 7 and Version 8 of faq/server/change-php-ini-settings
- Timestamp:
- Oct 21, 2010, 10:06:04 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/server/change-php-ini-settings
v7 v8 3 3 = When accessing via the web = 4 4 5 You have full control over your PHP installation - you can change any php.ini setting that you would like. By default, your sites will use our global php.ini file (which is located in /etc/php5/ apache2/php.ini).5 You have full control over your PHP installation - you can change any php.ini setting that you would like. By default, your sites will use our global php.ini file (which is located in /etc/php5/cgi/php.ini). 6 6 7 7 If you would like to override any of those settings: 8 8 9 * Create a new directory. You can use any name or location of the directory, however, we recommend using: include/php5. You should already have an include directory - at the same level as your web directory. 10 11 * Create a file in that directory called php.ini (it must be called php.ini). In that file, only include the directives that you want to change. For example, if you want to increase the upload file limit size, you may want to add: 9 * Edit your custom php.ini file. It will be located in /home/members/MEMBERNAME/sites/DOMAIN/include/php5/php.ini. For example, if you want to increase the upload file limit size, you may want to add: 12 10 13 11 {{{ … … 30 28 }}} 31 29 32 * Once you have created this file 33 * If using suPHP, add a line in to your Web Conf: 34 {{{ 35 suPHP_ConfigPath /home/members/<member-name>/sites/<domain-name>/include/php5 36 }}} 37 * If using fcgid, modify your suexec wrapper script in /home/members/<member-name>/sites/<domain-name>/bin/php-cgi, adding a -c option, so it reads: 38 {{{ 39 /usr/bin/php-cgi -c /home/members/<member-name>/sites/<domain-name>/include/php5 40 }}} 41 42 Note: Do not include the name of the php.ini file, just the path to the directory where it is located. 30 * Once you have created this file you may need to reload your web settings to force the change to take affect. You can do that by logging into the [https://members.mayfirst.org/cp Members control panel], choosing Web Configuration, click edit next to your web configuration, and then submit (without making changes). 43 31 44 32 ''IMPORTANT: Please use caution when changing these settings. Take note of the default setting and only change minimally as needed. We are operating on shared servers - so if you change your site to use more resources, you may have an adverse impact on the other members.''