On my Debian system the debian package of the PHP Mysql module "php4-mysql" was installed into the directory
/usr/lib/php4/20050606
My "php.ini" file had the "extension_dir" set to "./"
So the Mysql module could not be found.
Solution:
- I created a new directory /usr/local/share/php/extensions and switched into it.
- I linked the mysql.so to the original location using the command:
- ln -s /usr/lib/php4/20050606/mysql.so mysql.so
- I set the "extension_dir" variable in the file "php.ini" to "/usr/local/share/php/extensions"
- Restart of my Apache2 webserver.
No comments:
Post a Comment