• Resolved bamos1

    (@bamos1)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

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

    Thread Starter bamos1

    (@bamos1)

    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.

    Thread Starter bamos1

    (@bamos1)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP/Apache Upgrade = WordPress Crash’ is closed to new replies.