Changes between Version 5 and Version 6 of faq/server/change-php-ini-settings
- Timestamp:
- Oct 8, 2010, 9:26:25 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/server/change-php-ini-settings
v5 v6 1 1 == How do I increase my PHP file upload limit or change my php.ini settings? == 2 3 = When accessing via the web = 2 4 3 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). … … 28 30 }}} 29 31 30 * Once you have created this file, modify your suexec wrapper script in /home/members/<member-name>/sites/<domain-name>/bin/php-cgi, adding a -c option, so it reads: 32 * Once you have created this file 33 * If using suPHP, add a line in to your Web Conf: 34 {{{ 35 suPHPConfig /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: 31 38 {{{ 32 39 /usr/bin/php-cgi -c /home/members/<member-name>/sites/<domain-name>/include/php5 … … 36 43 37 44 ''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.'' 45 46 = When accessing via drush = 47 48 If you are using drush, your custom php.ini file will not be used. To change settings, create a file called drushrc.php and place this file in your Drupal site's sites/default/ directory. You can add settings like: 49 50 {{{ 51 <?php 52 ini_set('memory_limit','128M'); 53 }}} 54