Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 22, 2008 12:32 pm 
Offline
Newbie

Joined: Sun Jul 20, 2008 3:16 pm
Posts: 3
Hi, sorry if this is a stupid question, but where in the world is php.ini!!?!? I tried whereis php.ini, but that just gives me nonexistent places.


Top
   
 Post subject:
PostPosted: Tue Jul 22, 2008 12:39 pm 
Offline
Newbie

Joined: Fri Jul 18, 2008 7:36 am
Posts: 3
What distribution? Try the command 'locate php.ini'


Top
   
 Post subject:
PostPosted: Tue Jul 22, 2008 12:44 pm 
Offline
Newbie

Joined: Sun Jul 20, 2008 3:16 pm
Posts: 3
Cent OS 4. It says, /etc/php.ini, but nothings there..


Top
   
 Post subject:
PostPosted: Tue Jul 22, 2008 12:48 pm 
Offline
Junior Member

Joined: Wed May 21, 2008 5:34 am
Posts: 46
Website: http://www.eve-razor.com/forum
Location: Austin, Tx
try

/etc/php/php.ini
/etc/php5/php.ini

or you can just do

updatedb

and locate php.ini


Top
   
 Post subject: php.ini location
PostPosted: Tue Jul 22, 2008 12:56 pm 
Offline
Junior Member

Joined: Wed Jan 23, 2008 9:49 pm
Posts: 34
Hi,

A search on Google for php.ini and CentOS yielded this:

By "default php.ini should be installed at /usr/local/lib/php.ini"...

"Unless you're running Zend, in which case the file at /usr/local/lib/php.ini should be a symbolic link to /usr/local/Zend/etc/php.ini"

I have no access to a CentOS machine but try those. If those do not work but your PHP is working, try a test script (say phptest.php):

Code:
<?php phpinfo() ?>


and open it via your browser (http://localhost/phptest.php or http://your_linode/phptest.php). It will tell you, among other things, what php.ini file it's reading the configs from.

Cheers,
Antonio


Top
   
 Post subject:
PostPosted: Fri Jul 25, 2008 4:04 pm 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
php.ini may be in several different places depending on what you're using it for.

Chances are, though, the one you want will be /etc/php4/apache2/php.ini or similar. Notice the Apache-specific name - if you're using mod_php with Apache 2.x (and most people are), then this is the one you want. It might be in a different directory depending on the distribution (this example is from Debian), but it'll be something along those lines.


Top
   
 Post subject:
PostPosted: Fri Jul 25, 2008 5:51 pm 
Offline
Newbie

Joined: Sun Jul 20, 2008 3:16 pm
Posts: 3
Thanks for all the help!
Ok i got it, I have to edit it with nano, but why wont' the file show up through SFTP?


Top
   
 Post subject: Why SFTP?
PostPosted: Thu Sep 11, 2008 7:05 pm 
Offline
Junior Member
User avatar

Joined: Thu Sep 11, 2008 6:46 pm
Posts: 36
Website: http://www.classhelper.org
Location: Atlanta, GA
If you're going to use nano to edit the file, why don't you just SSH into the box directly and run it from the prompt?

_________________
Educational resources for parents and teachers: http://www.ClassHelper.org


Top
   
 Post subject:
PostPosted: Sat Sep 13, 2008 9:22 am 
Offline
Senior Member
User avatar

Joined: Mon Jul 21, 2008 1:26 pm
Posts: 171
Website: http://www.rejecttheherd.net
Location: Seattle
sublimice wrote:
Thanks for all the help!
Ok i got it, I have to edit it with nano, but why wont' the file show up through SFTP?

Check the settings on the client you're using


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group