Social Media, SEO
& Your Business

by Mitch Mitchell




Using Your Website
As A Marketing Tool

by Mitch Mitchell


Pages




Follow Me On Twitter;
Click The Bird!



Add me on Google Plus!


Embrace The Lead
by T. T. Mitchell




mailwasher


Free Download; right-click on book



Leadership Is/Isn't Easy
by T. T. Mitchell


«
»


My Blogs Are Finally PHP 5.2!

Posted by on Jul 3, 2010

The struggle is over, and I have conquered the beast known as PHP 5.0. Actually, the beast seems to be my host, 1&1, though it’s probably not all their fault, and they’re definitely not alone.

Some of you may remember the battle I had in trying to upgrade my business blog to PHP 5.0 back in December. In that case, I knew that blog was on 4.0 because I had created it many years earlier, before PHP 5.0 came about. The same couldn’t be said for this blog and my finance blog however. According to my MySQL admin area, both were already on 5.0. However, I knew they couldn’t be running that way because I couldn’t automatically update anything, and I was having all sorts of problems with my dashboard and plugins.

It was time to do some research, and I have to say it took awhile for me to figure things out, mainly because I had to go to multiple places to get a full understanding of what the issue might be. See, everything I needed, it turns out, was at the codex area for WordPress.org, but it wasn’t making any sense to me. I eventually found a blog called Gabediaz that gave me everything I needed. Now I’m going to share it here, since the information is in many places, just not easily described everywhere.

The first thing I had to do was create a file and name it “phpinfo.php”. I used Notepad and I had to pop this code into it:

(<)?php (add this part without the parenthesis; seems if I remove them it starts coding in this post and you can’t see the first line at all)
phpinfo();
?>

You upload that file to your server. Now, if you have multiple accounts on your server, you upload it into the one where your blog is. Then you type in your domain name and add “/phpinfo.php”. That will tell you the actual version of PHP your site is running on. In my case, it said I was running 4.4.9, which isn’t what it was saying in MySQL.

Then there’s the fix for it, and this is dicey stuff because you don’t want to make a mistake, just in case. First download your .htaccess file to your computer, and make sure you know where it is. Then using Notepad, open that bad boy up. Once you’ve done that, immediately save it using Save As, make sure you’re not saving it as a .txt file, and name it something like .htaccess_original. That will leave you two of those files wherever you saved it. Open the original file you downloaded, go to the top, hit Enter once to bring everything else down, then add this:

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

Save that file as is, then upload it back to your server, overwriting what you already have there. Then run that domain name thing again, and if you’re lucky you’ll be running something better than 5.0; in my case, I’m running 5.2.13.

I then went to take a look at my dashboard, and everything is there, all notes and the like. I went to my plugins area and added a couple of plugins that I had disabled, just to see what would happen to my dashboard; absolutely nothing. I then took the chance and automatically upgraded to WordPress 3.0; viola! That bad boy worked, my blog is now 3.0, I don’t have to manually upgrade any longer, my dashboard works fine, I can get into all posts and comments fine, and life is great once more.

By the way, the best test to do after upgrading is to see if you can get into your posts. Y’all know I write blog posts for others, and I also manage the blogs. All except one of the blogs upgraded just fine, and the one that didn’t wouldn’t let me into any of the posts. With the manual upgrade it all came back, thank goodness.

Now, I’m not guaranteeing this will work for everyone, but I think I can safely guarantee that if you’re on 1&1 that it will work. And if you’re having problems, heck, it can’t hurt to give it a shot, as long as you remember to save your original .htaccess file somewhere so you can upload it back if necessary. Good luck.

New Wave rug by Rugs Express

New Wave Rug: NW37 Multi






  Copyright secured by Digiprove © 2010 Mitch Mitchellnbsp; Copyright secured by Digiprove © 2010 Mitch Mitchell

Share on Google+0Share on LinkedIn0Tweet about this on Twitter2Share on Facebook0

Tags: , , , ,

10 Comments »

@Mitch,
Good to learn that you are finally on PHP5.0. I am surprised that it took this long.. Usually many hosts won’t enable it by default but you have to set it up by yourself as you mentioned. I did it sometime back because some of my plugins needed PHP5.0

July 4th, 2010 | 10:42 AM
Mitch:

Ajith, it just never occurred to me that I’d have to do something to take advantage of PHP 5; I’d thought my host would have already had it set when I opened up the new account. I’ll have to remember that if stuff doesn’t work properly on my regular websites.

July 4th, 2010 | 12:12 PM
Jake:

The latest versions of PHP from 5.2.9 and above and not really friendly. I test a couple of scripts on 5.3 platform and I am getting crazy errors like – “you are running PHP4”. I hope PHP community will sort everything soon.

July 5th, 2010 | 6:10 AM
Mitch:

Jake, everything I’ve read says it’s the job or fault of the hosting company. I don’t really know much about PHP, but at least I know my blogs are working well, and I’m happy for that.

July 5th, 2010 | 8:35 AM
GenriN:

Yes also faced with many challenges with no articulation of scripts from the old version of PHP and installed new, because of this saty not work fully, about two days. Where once saw a paid program adjuster capable of tuning scripts to meet new requirements.

July 5th, 2010 | 10:16 AM
Mitch:

Luckily I didn’t have to resort to anything like that; I might have gone crazy.

July 5th, 2010 | 11:49 AM

hey Mitch, good to see you worked it all out, and just so you know I found a typo in your post. 😉

July 9th, 2010 | 7:13 AM
Mitch:

Well Sire, if you found a typo you’re a better man than me today because I’m missing it. Course I haven’t been missing all of those on your blog lately, but figured you’ve been tired and are getting older so it had to be harder for you to get it right these days. 😉 Then again, that whipping I’ve been laying on you in our chess game has to be dragging you down as well.

July 9th, 2010 | 10:12 AM

Reckon you found it OK because it’s all fixed now and don’t let me stop you correcting my mistakes, that’s what I live for. 😀

July 9th, 2010 | 11:39 PM
Mitch:

Okay then; I’ve got your back on that one lol

July 9th, 2010 | 11:40 PM