Getting PHP to talk to MySql

If you are trying to get PHP, Apache and MySQL to work together one of the steps you have to do is edit the file /etc/php5/apache2/php.ini and uncomment the following line,
extensions = mysql.so

You then need to commented out the following lines,

;extension_dir = /usr/lib/php4/20020429-zts/
;include_path = ".:/usr/share/php"

NOTE : These are the only steps of course, its just one of the traps I came across while trying setup a server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s