So, if you’ve setup wordpress on your own server you’ve probably seen this
“Your PHP installation appears to be missing the MySQL”
Terrible. really terrible.
So, this is what I’ve done several times to make it work, and it does appear to work.
Environment
Server 2003, IIS, PHP 5+, wordpress some version (1.5 + i think)
This assumes your php is up and running , do a phpinfo to ensure it is.
steps:
1. add php to your path
2. ensure that “extension=mysql.so” and “extension=mysqli.so” are uncommented in your php.ini
3. ensure both of those files actually are in your php /ext directory
4. ensure the ‘ext_dir‘ path is set to the full directory path to php/ext in your php.ini eg:"c:\php\ext"
5. ensure the iis user (internet guest account and iis_wpg) have read priveleges to your php directory
6. add an environment variable “PHPRC” with the value of your php directory , this is key
—update—
EVeryone feels a reboot is required, I expect restarting the www service would do the trick as well
6.5 restart the www service
————-
7. shazaam.
You can read through the mess of inane oppinions here
http://wordpress.org/support/topic/37800
some of them are good, most are nonsense (see ‘just use php4′)
this followed by a reboot did the trick ! thanks a million seconds
February 28th, 2008, at 10:04 pm #[…] FYI I found this which solved my problems and woes (obv there was a lot more than this). I think it was steps 5 and 6 that were the sticklers. Wordpress and the dreaded “Your PHP installation appears to be missing the MySQL” < Fighting Monsters __________________ Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison […]
March 11th, 2008, at 3:05 pm #I’m not sure which bit I hadn’t done before, but now it all works thanks! And yes, the reboot is definitely required!
April 15th, 2008, at 3:08 am #[…] Lots of people have had this problem, apparently, and I went through dozens of search results until I found this one. His first five steps are the same as many other solutions, but his sixth step was new, and it actually worked for me: add an environment variable “PHPRC” with the value of your php directory, this is key […]
May 28th, 2008, at 6:16 pm #Got the error after upgrading to Kubuntu Hardy or to installing lighttpd.
I just renamed php.ini in the wordpress dir to something else.
php-admin was working, so there was not really a php-problem I figured. Problem solved.
June 29th, 2008, at 4:18 pm #