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.

Custom php.ini

Discussion in 'General Discussion' started by sabarishks, Mar 22, 2010.

  1. sabarishks

    sabarishks Active Member

    Jun 29, 2007
    Likes Received:
    Trophy Points:
    Dear All,

    Which one is a better solution?

    1) Creating custom php.ini and put it under corresponding directory. i.e if I need to add it in, I should add in /home/username/public_html/test

    2) You will need to create a file called php.cgi under the public_html directory of the user. The php.cgi must contain the following code in it.

    exec /usr/local/cpanel/cgi-sys/php5 -c /home/username/php.ini

    Which one is optimal?

Share This Page