Forum Moderators: phranque

Message Too Old, No Replies

editing a php.ini file

         

ilustrate

7:48 am on Jul 13, 2005 (gmt 0)

10+ Year Member



i have never ever edited a file directly on a webserver and need to:

i managed login via SSH and have reached the

[root@admin root]#

how do i proceed to find php.ini so that i can edit it?

once found how do i edit it?

zomega42

1:30 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



(I have Redhat enterprise, hopefully this will be relevant to your system) Once you're logged in as root, type "updatedb" and hit enter. The type "locate php.ini" and hit enter.

This will tell you where the file is, perhaps in /etc/php.ini

Now to edit it, try
emacs /etc/php.ini
or
pico /etc/php.ini
or
vi /etc/php.ini

I use vi but it can be tricky to get used to (hint: hit "i" if you want to type, Esc : w to save and Esc : q to quit.)