| Author |
Message |
sublimice
Joined: 20 Jul 2008
Posts: 3
|
| Posted: Tue Jul 22, 2008 11:32 am Post subject: Where is php.ini (ubernub) |
|
|
| 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. |
|
| Back to top |
|
Dave
Joined: 18 Jul 2008
Posts: 3
|
| Posted: Tue Jul 22, 2008 11:39 am Post subject: |
|
|
| What distribution? Try the command 'locate php.ini' |
|
| Back to top |
|
sublimice
Joined: 20 Jul 2008
Posts: 3
|
| Posted: Tue Jul 22, 2008 11:44 am Post subject: |
|
|
| Cent OS 4. It says, /etc/php.ini, but nothings there.. |
|
| Back to top |
|
MrRx7
Joined: 21 May 2008
Posts: 26
Location: Austin, Tx
|
| Posted: Tue Jul 22, 2008 11:48 am Post subject: |
|
|
try
/etc/php/php.ini
/etc/php5/php.ini
or you can just do
updatedb
and locate php.ini |
|
| Back to top |
|
atourino
Joined: 23 Jan 2008
Posts: 14
|
| Posted: Tue Jul 22, 2008 11:56 am Post subject: php.ini location |
|
|
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 |
|
| Back to top |
|
Ciaran
Joined: 13 Feb 2004
Posts: 138
Location: England, UK
|
| Posted: Fri Jul 25, 2008 3:04 pm Post subject: |
|
|
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. |
|
| Back to top |
|
sublimice
Joined: 20 Jul 2008
Posts: 3
|
| Posted: Fri Jul 25, 2008 4:51 pm Post subject: |
|
|
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? |
|
| Back to top |
|
ClassHelper
Joined: 11 Sep 2008
Posts: 5
Location: Silverdale, WA
|
| Posted: Thu Sep 11, 2008 6:05 pm Post subject: Why SFTP? |
|
|
| 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? |
|
| Back to top |
|
marcus0263
Joined: 21 Jul 2008
Posts: 71
Location: Seattle
|
| Posted: Sat Sep 13, 2008 8:22 am Post subject: |
|
|
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 |
|
| Back to top |
|
| |