So, I have two websites setup through 1and1 hosting. One, apparently needs php4 the other apparently needs php5.

The site that is priority requires php4; the other php5. When I switch them, one of the sites break in response. The php4 site's menu is destroyed and displays code and ugly errors in it's place, the other is broken by when you attempt to 'click' anything with the Wordpress Control panel (ie; Click 'posts' and get an error 500).

Anyone know what to do?

  • If code is being displayed when you switch versions, it sounds like the PHP5 config has short_tags disabled while the PHP4 config has them enabled. The fix for that is to just replace <? with <?php in the code -- an easy change. Aug 13 '11 at 23:44

Rewrite the code to work with PHP5 or put the sites on separate hosting. PHP 5 is now over 7 years old. You should not expect to be able to continue hosting that PHP 4 site anywhere much longer.

  • I agree with Dan above, rewrite the code or you are going to run into more problems sooner rather than later.
    – Ryan
    Aug 14 '11 at 2:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy