Title: Problem with migration to PHP5
Last modified: August 19, 2016

---

# Problem with migration to PHP5

 *  Resolved [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/)
 * Hi,
 * I’m running WP 3.0.1 and until now on PHP4. Looks good. But some functionality
   is missing. Especially when using plugins like Nextgen.
 * So I wanted to get PHP5, as is recommended. But now the admin section seems to
   be broken. The blog itself is still showing fine. But the admin panel is not.
   It is shown as if css doesn’t work or something like that. All text and links
   are there, but totally misplaced.
 * When I reactivate PHP4, everything as before. Activating PHP5 and instantly the
   display of the admin console is messed up.
 * Does that make any sense for you?

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

 *  [webjunk](https://wordpress.org/support/users/webjunk/)
 * (@webjunk)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668596)
 * I and many (most?) others run under PHP 5 without any problems. And I run Nextgen
   plugin on many sites. How are you changing to/from PHP 5? What implementation
   of PHP? FastCGI?
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668691)
 * What do you mean?
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668695)
 * add this to your root .htaccess
 *     ```
       AddType x-mapp-php5 .php
       AddHandler application/x-httpd-php5 .php
       AddHandler cgi-php5 .php
       ```
   
 * php5 should work correctly then
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668701)
 * You mean the basic wp directory?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668704)
 * The same directory as your `wp-load.php` file.
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668710)
 * I am sorry. That did not work. But thanks for the advice.
 * If you have any further suggestions, I would appreciate it.
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668798)
 * Well, I might have another lead. Perhaps you can make any sense out of it.
 * So for testing reasons I switched back to PHP4, where the display of the admin
   section is fine. Now I use the web developers toolbar from firefox and disable
   one by one the css style sheets (yes, I know I said style sheets twice ;)).
 * I got the exact same broken display as with PHP5, when I disable the css information
   coming from [http://domain.com/blog/wp-admin/load-styles.php?c=1&dir=ltr&load=global,wp-admin,dashboard&ver=466b2454247efc0a3125372b6b862725](http://domain.com/blog/wp-admin/load-styles.php?c=1&dir=ltr&load=global,wp-admin,dashboard&ver=466b2454247efc0a3125372b6b862725)
 * So, the question might be, why PHP5 cannot get CSS from that file? The permissions
   are the same as for every other file in wp-admin.
 * Any suggestions?
 *  Thread Starter [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * (@wpberliner)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668810)
 * This advice ([http://wordpress.org/support/topic/css-stylesheet-admincss-not-working-in-firefox-weird-output?replies=30#post-1434388](http://wordpress.org/support/topic/css-stylesheet-admincss-not-working-in-firefox-weird-output?replies=30#post-1434388))
   worked.
 * > Add this line to wp-config.php
   > define(‘SCRIPT_DEBUG’, true);
 * I just don’t know, what it means and why this helped.

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

The topic ‘Problem with migration to PHP5’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [wpberliner](https://wordpress.org/support/users/wpberliner/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/problem-with-migration-to-php5/#post-1668810)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
