homepage Welcome to WebmasterWorld Guest from 54.227.146.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Can't find php.ini
It's not where phpinfo() says it is
migthegreek




msg:4263649
 4:11 pm on Feb 7, 2011 (gmt 0)

My phpinfo() says Loaded Configuration File is at /etc/php.ini but no file exists at that location on the server.

I have two other php.ini files though, in /etc/php5/apache2 and /etc/php5/cli.

I need to edit the php.ini but which one, and why does phpinfo() say it's somewhere it isn't?

 

frontpage




msg:4264396
 10:10 pm on Feb 8, 2011 (gmt 0)

use this command to find php.ini on your server.

locate php.ini

example:

root@skynet[~]# locate php.ini
/etc/php.ini
/home/cpeasyapache/src/php-5.3.3/php.ini-development
/home/cpeasyapache/src/php-5.3.3/php.ini-production
/scripts/php.ini
/usr/lib/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini
/usr/local/cpanel/3rdparty/etc/php.ini,v
/usr/local/cpanel/3rdparty/etc/php.ini.dist
/usr/local/cpanel/3rdparty/etc/php.ini.keep
/usr/local/cpanel/3rdparty/etc/horde/php.ini
/usr/local/cpanel/3rdparty/etc/phpmyadmin/php.ini
/usr/local/cpanel/3rdparty/etc/phppgadmin/php.ini
/usr/local/cpanel/3rdparty/etc/roundcube/php.ini
/usr/local/lib/php.ini
/usr/local/lib/php.ini,v
/usr/local/lib/php.ini-zend_optimizer.bak
/usr/local/lib/php.ini.ffmpeg
/usr/local/lib/php.ini.ffmpege


On a Cpanel server, the one you want to edit is /usr/local/lib/php.ini

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved