Changes between Version 5 and Version 6 of faq/server/change-php-ini-settings


Ignore:
Timestamp:
Oct 8, 2010, 5:26:25 PM (10 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/server/change-php-ini-settings

    v5 v6  
    11== How do I increase my PHP file upload limit or change my php.ini settings? ==
     2
     3= When accessing via the web =
    24
    35You 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).
     
    2830}}}
    2931
    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{{{
     35suPHPConfig /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:
    3138{{{
    3239/usr/bin/php-cgi -c /home/members/<member-name>/sites/<domain-name>/include/php5
     
    3643
    3744''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
     48If 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
     52ini_set('memory_limit','128M');
     53}}}
     54