Portal Home > Knowledgebase > Articles Database > php/mysql problem after installing lighttpd
php/mysql problem after installing lighttpd
Posted by berners-lee, 03-03-2008, 09:31 PM |
Hi all,
I've installed lighttpd and it works perfectly. However, when I browsed my blog I got the msg:
"Your PHP installation appears to be missing the MySQL which is required for WordPress."
Was there anything I missed? Should I install PHP again?
Thanks a lot.
|
Posted by david510, 03-05-2008, 10:18 AM |
How did you configure php with lighty?
|
Posted by AmyWilliams, 03-05-2008, 10:24 AM |
Is this on Windows or Linux?
|
Posted by jamesmoey, 03-05-2008, 07:59 PM |
More information is needed. But from the message, 3 possibility I can think of.
1. mySQL is not installed
2. PHP does not have mySQL module install. PHP-mySQL module is package in different package. No use reinstall PHP, you need install PHP-mysql package, package name depend on your distro.
3. Configuration incorrect, Wordpress can not see mySQL.
|
Posted by berners-lee, 03-06-2008, 09:45 AM |
Thanks for all your reply. My machine is CentOS linux and I have two sites on it; one has only static pages and another is running a WordPress blog. After I installed lighty, my blog didn't work and showed the msg:
"Your PHP installation appears to be missing the MySQL which is required for WordPress."
When I switched back to apache, my blog worked again.
I guess it's something about PHP and mysql, but I am not sure exactly. Any response is appreciated. Thank you!
|
Posted by jamesmoey, 03-06-2008, 09:53 AM |
lighty use php cgi. My guess is mysql module is not enable on cgi. Do you know where is the configuration for PHP is located. If you don't, then do this.
Create a new php script file, name is somethinginfo.php content is:
Run that php script on the web browser. It will tell you the location of the php configuration it is using. Once you get that, go and open that file and put in the following line
extension=mysql.so
Restart lighty. Check somethinginfo.php script again on the browser and see mysql is enable or not.
Remember to remove somethinginfo.php after this for security sack.
Good luck...
|
Add to Favourites Print this Article
Also Read