Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Web host upgrading from PHP4 to PHP5


Trentide

Recommended Posts

Hi. Thanks for looking at my post. My webhost is upgrading from PHP 4 to PHP 5. I added this code to my .htaccess file:

 

AddHandler application/x-httpd-php5s .php

 

and everything seems to be working great. I think? I mean, I can put items in my cart, create new pages, etc. Does this mean that when the transition does take place that the site absolutely won't crash? Am I missing anything? Is there anything else I need to check in order to facilitate a smooth transition? I have a 2.2-MS2 site with a usual assortment of add-ons and contributions, if it matters.

 

 

Thanks so much,

 

Jason

Link to comment
Share on other sites

Hi. Thanks for looking at my post. My webhost is upgrading from PHP 4 to PHP 5. I added this code to my .htaccess file:

 

AddHandler application/x-httpd-php5s .php

 

and everything seems to be working great. I think? I mean, I can put items in my cart, create new pages, etc. Does this mean that when the transition does take place that the site absolutely won't crash? Am I missing anything? Is there anything else I need to check in order to facilitate a smooth transition? I have a 2.2-MS2 site with a usual assortment of add-ons and contributions, if it matters.

 

 

Thanks so much,

 

Jason

here are the upgrade guides

http://www.oscommerce.info/confluence/dashboard.action

Link to comment
Share on other sites

Thanks Chris,

 

Also, my host claims that the PHP they're upgrading to is 5.2. The add-on says this will help websites upgrading to 5.3. Do I still need to make the upgrades?

One last thing, I also put this is my .htaccess file: AddHandler application/x-httpd-php5s .php

Everything is running smoothly, do I still need to worry about the PHP5 transition?

Link to comment
Share on other sites

Moving to PHP 5.0, 5.1, or 5.2 shouldn't produce any problems that I can think of for osC 2.2 MS2. However, you're going to have a ton of problems when your host eventually goes to PHP 5.3. So, you might as well get those coding issues out of the way as soon as you can, before it becomes an emergency.

 

Note that if the add-on is for 2.2 RC2a, it may not be completely compatible with 2.2 MS2 (which is quite old). You may have to do some manual file edits (see also http://us.php.net/manual/en/migration53.deprecated.php for details on code changes needed).

 

Is there some reason you're choosing to stay at such an old (and insecure) level of osC? Unless you have a tremendous amount of time and money tied up in customizations to the code, you should seriously consider moving up to osC 2.3.1. It's more secure, has more features, and is PHP 5.3-ready. Your database and product images can be migrated to the new system, so you shouldn't lose much if anything.

 

Finally, if your host is moving to PHP 5, it's only a matter of time before they move up to MySQL 5. They may even do it at the same time. You will have a number of problems with incompatible SQL queries that will need to be fixed (look for "1054" error discussions on this forum).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...