The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Changing Php.ini

Discussion in 'General Discussion' started by Dejin, Nov 8, 2006.

  1. Dejin

    Dejin Member

    Joined:
    Sep 24, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello folks,
    I how can I change php.ini file? Is it possible to change some values by Cpanel?
    Like;
    How can I change their values?
     
  2. krava

    krava Well-Known Member

    Joined:
    Sep 23, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    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. mehrdad abed

    mehrdad abed Well-Known Member

    Joined:
    Mar 18, 2006
    Messages:
    127
    Likes Received:
    0
    Trophy Points:
    16
    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. vijeesh

    vijeesh Member

    Joined:
    May 26, 2006
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page