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

    Default Changing Php.ini

    Hello folks,
    I how can I change php.ini file? Is it possible to change some values by Cpanel?
    Like;
    max_execution_time
    memory_limit
    post_max_size
    file_uploads
    upload_max_filesize
    How can I change their values?

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    141

    Default

    Hello.

    put lines like:

    php_admin_value max_execution_time XX
    php_admin_value memory_limit XX
    php_admin_value post_max_size XX
    php_admin_value file_uploads XX
    php_admin_value upload_max_filesize XX

    in VIRTUAL HOST of your domain name. All VIRTUAL HOSTS are located in /usr/local/apache/conf/httpd.conf.

    Additionally, you can put the lines:

    php_value max_execution_time XX
    php_value memory_limit XX
    php_value post_max_size XX
    php_value file_uploads XX
    php_value upload_max_filesize XX

    into the file .htaccess of your account. It is located in root of /public_html. If it doesn't exist then create it.

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    127

    Default

    Hi

    please notice that some options in httpd.conf are not compatible with phpsuexe, in this way you cannot apply some php.ini parameters through apache and you probably should have a local php.ini in each directory.

  4. #4
    Member
    Join Date
    May 2006
    Posts
    23

    Default

    Yes,it is better if you can upload a custom php.ini file with the new valuea to the folders where the php scripts are running.
    Vijeesh K

Similar Threads & Tags
Similar threads

  1. 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
  2. zend optimizer problem, auto changing in php.ini!!!??
    By x-man in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 05-14-2007, 08:53 PM
  3. Changing info in the PHP.INI FIle
    By logikstudios in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-03-2006, 05:59 PM
  4. non changing php.ini
    By arkain in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-09-2006, 01:59 PM
  5. is this possible?? Changing php.ini settings for one domain
    By JSD in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-06-2003, 02:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube