Title: PHP/Apache Upgrade = WordPress Crash
Last modified: August 19, 2016

---

# PHP/Apache Upgrade = WordPress Crash

 *  Resolved [bamos1](https://wordpress.org/support/users/bamos1/)
 * (@bamos1)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/phpapache-upgrade-wordpress-crash/)
 * 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)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 2 months ago](https://wordpress.org/support/topic/phpapache-upgrade-wordpress-crash/#post-717362)
 * After you upgrade to PHP 5, did you have the mysql extension enabled in PHP 5’
   s INI file?
 *  Thread Starter [bamos1](https://wordpress.org/support/users/bamos1/)
 * (@bamos1)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/phpapache-upgrade-wordpress-crash/#post-717425)
 * 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](https://wordpress.org/support/users/bamos1/)
 * (@bamos1)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/phpapache-upgrade-wordpress-crash/#post-717451)
 * 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.

## Tags

 * [php5](https://wordpress.org/support/topic-tag/php5/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bamos1](https://wordpress.org/support/users/bamos1/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/phpapache-upgrade-wordpress-crash/#post-717451)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
