Forums

[resolved] PHP/Apache Upgrade = WordPress Crash (4 posts)

  1. bamos1
    Member
    Posted 4 years ago #

    I am currently using outdated versions of PHP and Apache. I am trying to upgrade to PHP5 and Apache 2.2. Everything works except WordPress. After the upgrade wordpress has a 'cannot connect to database' error. I know all the wp-config.php information is correct, and all my other programs have no problem with connecting to the mysql database. I am using mysql 4.1, could that be the problem? Must I also upgrade to mysql5? Why would wordpress be the only LAMP application that dies on the upgrade?

    Thanks,
    Brian.

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    After you upgrade to PHP 5, did you have the mysql extension enabled in PHP 5's INI file?

  3. bamos1
    Member
    Posted 4 years ago #

    I compiled mysql support into PHP. All other LAMP programs work. wouldn't they also fail if this were the cause? I did go through the php.ini file and make sure everything is how it should be. Right now I'm compiling mysql5 and trying to determine if the old version combined with PHP5 is causing the problem.

    Thanks,
    Brian.

  4. bamos1
    Member
    Posted 4 years ago #

    Well, I upgraded mysql to 5.0.51a and re-compiled PHP 5.2.5 to link to this version of mysql instead of 4.1. WordPress works now. I still find it very odd that wordpress crashed with the mysql 4.1 and PHP5 combination when everything else worked. I should dive into the wordpress code sometime and figure it out. With wordpress working now I can go find out what other apps I crashed with the upgrade.

    Thanks for the help.

    Brian.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags