PDA

View Full Version : php.ini



Ladysarajane
05-23-2008, 06:43 PM
I have a question in general about php.ini.
Where is this file necessary? Should it be in the public_html root folder of your domain and in each added domain's root that you have on your hosting account?
When I put in an added domain's root folder I get errors that zend optimizer cannot be found. So now I am confused to where this goes.

D0gSoldi3r
05-23-2008, 08:03 PM
You have to activate it manually first in you're cpanel by going to PHP Config in cPanel.There, under the section Install Default php.ini, hit the Install button (first tick either or both extension buttons, should you need them at any point) to place a copy of the default file in public_html (it will be called php.ini.default, rename this to php.ini).

Once you've found it, make you changes and save the file. Then, if you have FastCGI turned on (check in PHP Config again), you're done and the altered file will be used account-wide. If FastCGI is off, then you'll need to copy the altered php.ini to every directory with .php files that need to be affected, for the changes to be seen.

Thank LinFox for the help he helped me out with that question just sharing the advice he gave me, check this page which i asked a familiar question might help or maybe not http://hostmonsterforums.com/showthread.php?t=3304


After you do that check you're ftp and you should find it inside there now :)