• About Me
  • Site Map
  • Connect
  • ✫ Resources

Michael G. Stults

Changing the world one pixel at a time

  • All Posts
  • Leadership
    • Life
      • Stress
  • How To
  • WordPress
    • Plugins
  • Social Media
  • Online Marketing
    • Affiliate Marketing
    • SEO
  • ✫ Resources
You are here: Home / Blog / How to upgrade from PHP4.0 to PHP5.0 in wordpress using 1and1.com hosting

How to upgrade from PHP4.0 to PHP5.0 in wordpress using 1and1.com hosting

July 26, 2010 By Michael G. Stults 21 Comments

I've been so frustrated with this whole PHP5.0 verse PHP4.0 versions in my 1and1.com hosting account regarding my wordpress sites. I had to write a quick post about this issue because I discovered that when my automatic upgrades were “hanging up” or not upgrading through the cpanel….that I wasn't the only one with this frustration. It was nearly impossible to update any plugin or install one. I just thought it was “the way it was going to be”.

Last week I read a post about WordPress PHP 4 and MySQL 4 End of Life Announcement that stated they will eventually stop supporting PHP4.0 version and ummm well you better get your stuff upgraded soon. So I started to dive in to look at the problem. The funny thing is MySQL in my 1and1 cpanel said this:

mysql view in cpanel for 1and1

As you can see by this screen shot that it says my “MySQL5.0” is ready for each domain that I have. Needless to say this was far from the truth. By default up until sometime later this year, 1and1.com automatically installs or uses PHP4.0 but will stop using it and be apart of the 21st century. I like 1and1.com and have been happy with them. It is a great value for your money in relation to the  benefits you receive.

Now the frustrating part… I wasn't to clear on how I needed to upgrade to the PHP5.0. The help faqs on 1and1.com were actually pretty vague and other website posts about this seemed to not ever respond to their commenters… or were just talking to the guy that has written code for several years. Yeah… not me.

So here is what you need to do. You need to upgrade your .htaccess file. You can find this located in the root directory of your site. You will need to access your server via a FTP client. If you don't use one then I recommend Filezilla.  Once you log in you will see something similiar to this on the right side of Filezilla (This is just a portion of the whole screen):

filezilla screen shot

Once you click “view/edit” it will pull up in a notepad file. You should see this:

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ./index .php [L]

</IfModule>

# END WordPress

So 1and1.com and others said you need to add this code to the .htaccess file:

AddType x-mapp-php5 .php

The next question was “where does this code go in the above”. Well at first I wasn't for sure. I think I was scared poopless that I might screw up something. If you've been doing websites for any amount of time…you've done that! This post helped me out: Automatic Upgrade Failure (1&1 fix didn't work) and I added this code in red below and it worked!

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ./index .php [L]

</IfModule>

AddHandler x-mapp-php5 .php

AddType x-mapp-php5 .php

# END WordPress

You will then click “save” in the notepad file and exit out of the file. This box below will pop up within in Filezilla. You want to select yes. Then refresh your directory on your server by right clicking  “refresh”. You then should show the updated .htaccess file which will show you the date you updated it to the right of the file name.

filezilla file has saved prompt

You can ask me why that does the trick and I will give you the deer in the headlight look but I just know that it triggers your site to use PHP5.0 version. Another tool that a 1and1.com technical support rep hooked me up with was this “checkinfo.php” file he uploaded to my directory. When you type in www.yourdomain.com/checkinfo.php it will show you this below (after the file is in your root directory of course…). KABOOM, no more trying to figure out what version you are running. If you want a copy of the file please contact me via twitter @MGStults.

 PHP Checker Example

I hope this has been somewhat helpful and of course if you have questions please let me know. I will do my best to give you an answer. As always please back up your files before you make any changes.

Update

Below is a super quick video on a change. Inside your 1and1.com control panel they now have an area that you can select what version globally you would like to use. This should fix the problem but if not the above information is still pretty golden!



(You may have interest in this….)

Web Design Business Start Up Kit

This Web Design Business Startup Kit provides web designers with a complete turnkey business in a box solution. It includes:

  • A Comprehensive 198 Ebook
  • Over 67 Ready To Use Contracts & Document Templates
  • You may already know a few points mentioned here but I found the information helpful so I decided to share. The web industry is absolutely booming and it gives you opportunity. CLICK Here to get your copy of the blueprint.

    Michael G. Stults
    Michael G. Stults

    Michael G. Stults is a leader, manager, and most importantly a team builder. He has realized that his success in his personal and business life has been contributed to the professionalism of others.

    Along with his creative mindset, natural relationship building ability, and charisma, Michael has shown that he can succeed in business whether that be in the financial or online marketing sectors.

    Share this:

    • Facebook
    • Twitter
    • LinkedIn
    • Pinterest
    • Reddit

    Related posts:

    1. WordPress 3.0 Thelonious Blasting Off

    Filed Under: Blog, Wordpress Tagged With: 1and1.com, fix, hosting, How to upgrade your PHP version on 1and1.com, PHP5.0, plugin updates, update, upgrade from PHP4.0, Wordpress

    About Michael Stults

    Michael G. Stults

    Hi, my name is Michael Stults. I appreciate you stopping by my site. I work in the online marketing industry and when time permits coupled with my two oldest sons' having (now had) a rare neurological disease called Niemann-Pick Type C, I like to write about topics that interest me. I hope at the same time that I can provide something valuable to you in return. ...Read more

    Please connect with me if you would like to talk about internet marketing of any kind, non profit work, technology or business development.

    FacebookInstagramTwitter

    Find Your Purpose

    IdeasToFortune.com

    Find Me Here

    Follow @MGStults Follow @MichaelStults Follow @MichaelGStults Follow @NPCFund

    Top Posts & Pages

    How to Setup MySQL Workbench Database for Wordpress on Windows Server
    How To Find SMTP Server Address GoDaddy For Outgoing Gmail (alternative)
    Connect
    How To: Basics of Google Apps and Gmail
    Marketing Resources

    Tags In The Cloud

    1and1.com Affiliate Marketing Browser Charity chrome cpanel Daily Bread facebook Free Gmail God Google Apps hosting How to How to create an email signature HTML Infograph Inspiration Jim Kukral Kansas Kansas City Leadership Life Michael G. Stults Michael Stults Mike Stults Missouri Niemann-Pick Children's Fund Niemann-Pick Type C online tool Outlook Panda Penguin plugin Plugins product SEO Small Business Social Media Struggles Thelonious twitter Video Wordpress Wordpress 3.0

    Customize Your Website

    WordPress Theme Editor

    [footer_backtotop]

    Copyright © 2023 · Designed by Michael G. Stults · Site Map