PHP not loading mysql.so
i have just installed slackware 12.1, installed httpd (apache) and php, i am going to be using this as a webserver and have it connect to a 2nd box to do the mysql, however when apache starts, i am getting bunch of errors in the logs, and the following error in phpmyadmin
"Cannot load mysql extension. Please check your PHP configuration" i have checked my php.ini and have run a test.php script with phpinfo() and get Code:
extension_dir /usr/lib/php/extensions/ extract from error_log in /var/log/httpd Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/curl.so' - libidn.so.11: cannot Code:
-rwxr-xr-x 1 root root 29768 2007-11-11 06:17 bcmath.so |
You need to install mysql as the libraries are in that package.
if you want to use gd you'll need to install t1lib libX11 libXpm libxcb libXau libXdmcp The other errors can be fixed by commenting the modules in the php.ini or meeting the dependencies E.g aspell mhash snmp libxslt libidn |
search for my name, to install mysql quickly and easily.
|
Quote:
|
if you really wanted to you could strip the libraries out of the package but unless space is tight I wouldn't advise it. It would make upgrades etc. pretty messy.
Just don't start the mysql server and it won't be any problem. You can build mysql and pass --without-server , docs, etc. to configure but I don't see there being much to gain by customising the package. |
Hi,
I am using Ubuntu 8.10 with LAMP PROGRAMS. Apache2 works. PHP works. MySQL works. I am trying to get phpmyadmin to work but keep getting the "Mysql entension not loaded error. The php.ini has "extension=mysql.so" and extension_dir=/usr/lib/php5/20060613+lfs/ The phpinfo file reports under "PHP core" that the extension dir is as above. I can't figure out what to do next. Please help. R |
pizzipie do an 'ls -l /usr/lib/php5/20060613+lfs/' on that dir and check permissions and if the mysql.so is there.
But i think that the question would be better answered in the ubuntu section of linuxquestions.org since slackware users apt magic isn't that great. http://www.linuxquestions.org/questions/ubuntu-63/ |
All fixed - A Big Thanks!!!!!!!!!!!!!!
Quote:
Again Thanks! R |
All times are GMT -5. The time now is 09:06 AM. |