[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Adding a line to the php.ini
- Subject: Re: [cobalt-users] Adding a line to the php.ini
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Fri Feb 22 22:37:16 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"chiefmonkey" <george@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> This is my first post to the list so hi to everyone, so can I kick off
with
> hopefully an easy question
> I have installed PHP4.0.6 (.pkg from the cobalt site) it says on the site
> If you use mysql with php, please note you need to add a line
> 'extension=mysql.so' to /etc/httpd/php.ini to load the mysql php-module
>
> Problem is I am not exactly sure how to do this over Telnet/SSH
> I have installed PHP? MySQLon a few Linux boxes, but MySQL support was
> always built in, and any changes to php.in could be done with a text
editor.
Use a text editor on the server. There are several pre-installed. pico is
probably the easiest.
login as admin
su - (to become root, it will prompt for root pwd which is probably same as
admin's)
pico -w /etc/httpd/php.ini
ctrl-v to scroll page by page to bottom
type 'extension=mysql.so' on a new line (without the quotes)
ctrl-o to save
ctrl-x to exit
/etc/rc.d/init.d/httpd reload
Done. :-)
I recommend getting a book on Red Hat 6.2 and/or spending time reading
online Linux tutorials. Practice, learn, repeat.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/