Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Just upgraded from 5.1.4 to 5.3.2

Status
Not open for further replies.

Geates

Programmer
Aug 25, 2009
1,566
US
Installed Wordpress. It throws an error "Your server is running PHP version 5.1.4 but WordPress 3.2.1 requires at least 5.2.4.". So I upgraded to php 5.3.2. Wordpress still throws the error

Also, my other php websites that use MySQL are now saying that mysql_connect() is an undefined function.

I've checked the environmental paths, php.ini, restarted mysql and Still problems persist. Anything else I should check?

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
The Same error? Same version number for the error? Or does it at least recognize that its another version?

Judging by the fact MYSQL functions no longer work, I'd say you installed an older version rather than a new one. Since older PHP versions did not have the MYSQL library of functions enabled by default.

If this is on Windows, take a look at your PHP.ini file and make sure php_mysql.dll is enabled in the extensions section, and that the file exists correctly in the extensions directory.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
The dll exists. It's enabled in php.ini. And the version I installed is actually 5.3.8 (both msi and binaries) yet WP still report 5.1.2?

I'm going to revert to 5.2 and see if that restores functionality.

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
Newer versions of mysql make use of PDO. Try a PDO command like

Code:
$dbh = new PDO('sqlite:' . $db);
 
The dll exists. It's enabled in php.ini. And the version I installed is actually 5.3.8 (both msi and binaries) yet WP still report 5.1.2?

seems like Wordpress is using a PHP installation that is not the one you updated

Make sure you don't have two installed versions of PHP.

If you have a flavor of WAMP, MAMP, XAMP... then PHP tends to end up inside the bin folder of the installation.

If you install PHP on its own it ends up in the PHP directory.


Also:
According to the WordPress Installation guide:
Step 4. Installation of WordPress and its requirements
Finding Dependencies: Web PI will determine the minimum set of components and modules you need on your machine to run WordPress. It will only install what you’re missing. For example, PHP will be installed and configured to run WordPress.





----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
5.3.2 doesn't seem to come with an isapi.dll. Once I switched to useing FastCGI module, things started working.

-Geates

"I hope I can chill and see the change - stop the bleed inside and feel again. Cut the chain of lies you've been feeding my veins; I've got nothing to say to you!"
-Infected Mushroom

"I do not offer answers, only considerations."
- Geates's Disclaimer
 
Glad You got it sorted out.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top