Portal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloads

Knowledgebase
You are here: Portal Home > Knowledgebase > How to add a php.ini to my public directory?

How to add a php.ini to my public directory?

If you do not have a php.ini already in your public_html directory. You can follow the below directions. 

If you need a custom php.ini in your directory

You can find the php.ini code for the PHP 4 and PHP 5 in the following links

http://www.speedygiant.com/php/php.ini.txt - PHP5
http://www.speedygiant.com/php/php4.ini.txt - PHP4

It should be PHP5 by default unless changed in cpanel.

You can download and rename it to php.ini (whether php4 or not) before
putting it in your public_html directory

If for some reason your custom php.ini is not read, please put the
following in your .htaccess

SetEnv PHPRC /home/YOURCPANELUSERNAME

/public_html

Replace YOURCPANELUSERNAME with your actual CPanel username.
 
If you already have a php.ini file then you will be able to find it in your public_html directory and you can edit it from there.


Was this answer helpful?

Add to Favourites
Print this Article

Powered by WHMCompleteSolution


Language: