Where is php.ini (ubernub)
8 Replies
/etc/php/php.ini
/etc/php5/php.ini
or you can just do
updatedb
and locate php.ini
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):
and open it via your browser (
Cheers,
Antonio
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.
Ok i got it, I have to edit it with nano, but why wont' the file show up through SFTP?
@sublimice:
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