Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice