PDA

View Full Version : PHP.ini file?



theBruney
01-12-2009, 01:41 AM
Okay, so I've been searching for the php.ini file. Apparently located /usr/lib
or /usr/local/lib/php.ini according to the function phpinfo().

First off, if usr represents the hostmonster account name, then I'd say in the highest folder contains no usr name folder for with my account name. Just www, tmp, public_html, public_ftp, mail, etc, access-logs (empty), .trash, .sqmaildata,.htpasswds, .cpanel, .autorespond. If there's actually a folder labelled usr, then I still do not have it. I've looked in all sub-directories.

Does anyone where the php.ini might be found?

Thanks.

r2b2
01-12-2009, 03:05 AM
That php.ini file is the master php.ini file for the server you are on.

Your php.ini file, if you have one, will be in your public_html directory.

theBruney
01-12-2009, 10:03 PM
Okay thanks much r2b2. Guess I didn't have one. :)

shadmego
01-12-2009, 10:30 PM
If you don't have a php.ini file in your public_html directory, then you can create one.

1. Log into CPanel and look for the php Config link in the Software / Services section.
2. Read and select the options you want to use in your php.ini file and then click on the button labeled, "INSTALL PHP.INI MASTER FILE". This will place a file in your public_html directory named php.ini.default.
3. Now go to your File Manager and navigate to your public_html directory, looking for php.ini.default.
4. Rename the above file to php.ini and go to town.


~regards, and welcome to the community