1&1

Running PHP 5 for WordPress with 1&1 Hosting

Update: 1&1 Hosting Transition to PHP5

If you are on a shared hosting plan with 1&1 it’s relatively easy to create a new MySQL Database for your WordPress installation.

Creating Your New Database

Just sign into your account and navigate to Web Space & Access and then to MySQL Administration. Click on “New Database” and you will be prompted to name your new database along with the option of choosing between MySQL 4.0 and MySQL 5.0 for your new database. WordPress Requirements state that WordPress need PHP 4.3 or higher to function properly although a few plugins require that you use PHP 5 to function. Choose MySQL 5 and your database will begin setup.

Since we created a new database and chose the option of MySQL 5 your database is using PHP 5 for WordPress right? Unfortunately that’s not the case.

Checking Your PHP Version by Creating a phpinfo.php File

1&1 will have your new database running PHP 4.4.9. Easiest way to check what version of PHP you are running is to create a phpinfo.php file and insert only the following into your file.

<?php
phpinfo();
?>

Upload this file to your directory and open phpinfo.php in your web browser.

The information at the top of this window will display the version of PHP that you are running.

Forcing 1&1 to Use PHP 5

It only takes 2 lines added to your .htaccess to force 1&1 to use a version of PHP 5. Add the following to the first 2 lines in your .htaccess file. Your .htaccess file will be in your root directory for your installation, it may be hidden so in your FTP program see if there is an option to display hidden files.

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

Once you make the edits to your .htaccess upload it to your directory and once again open phpinfo.php in your web browser. You should now be able to see that your database is using PHP 5.

Quick Tip from JG in the comments:
I found once I updated the .htaccess file, then all my links would break from the homepage. What I did was go to the permalinks page under settings and click “save changes”. You don’t have to actually change anything.

Then when I found pages that wouldn’t load, simply refreshing the page made them work again.


share this:

like this:

60 responses to “Running PHP 5 for WordPress with 1&1 Hosting”

  1. Simon Avatar
    1. gabediaz Avatar
  2. Alan Avatar
    Alan
    1. gabediaz Avatar
  3. JoeTaxpayer Avatar
    1. gabediaz Avatar
  4. Anthony Ogden Avatar
  5. cashman Avatar
  6. Sam Avatar
  7. Navin Soni Avatar
  8. oral seymour Avatar
  9. Alex McAulay Avatar
    Alex McAulay
  10. joe Avatar
    joe
  11. joe Avatar
    joe
  12. JG Avatar
    JG
  13. Emily Avatar
  14. gabediaz Avatar
  15. Phil Avatar
  16. gabediaz Avatar
  17. badtheba Avatar
  18. badtheba Avatar
  19. badtheba Avatar
  20. gabediaz Avatar
  21. 509 Graphics Avatar
  22. Jessica Avatar
    Jessica
    1. gabediaz Avatar
  23. Adam Avatar
    Adam
  24. DA_Hansen Avatar
    DA_Hansen
    1. gabediaz Avatar
  25. Leeka K. Avatar
  26. Leeka K. Avatar
  27. gabediaz Avatar
  28. rajat Avatar
    rajat
  29. Lightning Rod Avatar
    Lightning Rod
  30. Micheal Sharrieff Avatar
    Micheal Sharrieff
  31. Sue Czosek Avatar
    Sue Czosek
  32. David Avatar
  33. Sean T. Avatar
  34. Marcus Janz Avatar
    Marcus Janz
  35. Gilles Avatar
    Gilles
  36. Jason Avatar
    Jason
  37. Ruralisima Avatar
    Ruralisima
  38. Alan Avatar
    Alan
    1. Gabe Diaz Avatar
  39. Sarah Lawrence Hinson Avatar
    1. Gabe Diaz Avatar
  40. Danielle Avatar
    Danielle
  41. Danielle Avatar
    Danielle
    1. Gabe Diaz Avatar
  42. Paul Avatar
  43. Aly Avatar
  44. Chris Avatar
  45. cka Avatar
    cka
  46. Tina Avatar
    Tina

Leave a Reply

Your email address will not be published. Required fields are marked *