Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default Override php.ini directives

    I just upgraded to apache ver 2, and now I've Suphp instead of phpsuexe, it seems php runs as a apache module in this way, but now i don't know how to change php.ini rules. i just added these for one of my vhost and it just dosent work:

    was :
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/tomy:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>


    is :
    <IfModule mod_php5.c>
    php_admin_value upload_max_filesize "10M"
    php_admin_value open_basedir "/home/tomy:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    I really need to be able to change the php directives over each account, so please let know where I'm wrong in.

    Thanks

  2. #2
    Member WebScHoLaR's Avatar
    Join Date
    Dec 2005
    Location
    Planet Earth
    Posts
    506

    Default

    If PHP is running as an Apache module then you can change the php.ini directives values in the .htaccess of each account.

    Regards,
    WebScHoLaR

    WebHosting Blog: http://WebScHoLaR.net

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default

    but i want to take some rules that shouldn't be overridden by .htaccess, on the other hand i try to force some rules over the clients.
    Last edited by mehrdad abed; 06-03-2007 at 08:13 AM.

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default

    It's kind of strange because it seems none of the applied apache rules work, even "php_admin_value open_basedir" is set as "no value" in the result of phpinfo() as i'd added it in php5 tags in httpd.conf.
    i also used "suPHP_ConfigPath" in the middle of <IfModule mod_suphp.c>... </IfModule> something like this :

    <IfModule mod_suphp.c>
    suPHP_UserGroup tomy tomy
    suPHP_ConfigPath /etc/httpd/conf/php_ini/php.ini
    </IfModule>

    but dosent work.

    please help

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 07-11-2011, 06:54 PM
  2. Disable memory_limit override in user php.ini
    By smurf in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-24-2009, 11:05 AM
  3. php.ini and override default php.ini
    By areh in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-24-2009, 05:45 PM
  4. PHP5, phpSuExec and php.ini override.
    By Serra in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 01-29-2007, 05:10 AM
  5. Override php.ini in phpsuexec
    By latpanel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-17-2005, 05:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube