Ano-Tech Computers
Enter keyword:

How to enable mysql support in PHP
Problem:
PHP, Apache, mod_php and MySQL are all installed and working, but the mysql related commands in PHP do not function.
 
Solution:
uncomment the line that enables the extension in your php.ini:

extension=mysql.so

if it don't work verify the line "extension_dir = /usr/lib/php4" and if the
file mysql.so is in this directory.

Note that Apache needs to be restarted after making changes to php.ini
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles