Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

United Hosting PHP Upgrade (5.4.21) HELP !


Mort-lemur

Recommended Posts

Posted

Woke up this morning and found that none of my 2.2Rc2a sites work...

 

It would appear that my hosts have upgraded overnight to php 5.4.21 with the only announcement being via their forum (which I dont monitor very often).

 

They are running php 5.3 alongside for a month

 

Will I be able to get my sites running on 5.4.21 or will I have to upgrade to osc 2.3.X Which Im really trying to avoid doing at the moment.

 

Many Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

It would be less work [in my opinion] to upgrade to to the latest version osc and run it on a minimal (ie, with only essential addons) while working to get all the addons you want installed.

Posted

Wondering if your host offers the various versions of php. My host sets by default 5.3 but offers 5.2 and 5.4. So if you'r does that, you should be able to set back to 5.3 until you figure your strategy out. In my case I set the php depending on the domain using code in htaccess something like this:

 

# Use PHP 5.3 as default
AddHandler application/x-httpd-php5 .php

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Posted

@@burt

 

An update - they are running php 5.3 in parallell for a one month period - so I indend during that one month grace period producing replacement sites in OSC 5.3.3 (not 5.3.4 as too uncertain about essential add-ons).

 

The add-ons I need should be quite straight forward ? (header tags, Paypal Std, EPDQ, Order Editor / Creator, MATC, Google Base and a few others)

 

What I will struggle with is the database migration to the new stores - and I may be in touch when the time comes for the migration of database.

 

Many Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Hi Steve,

 

This is the response they gave me when I contacted them initially:

 

all shared hosting servers have been upgraded to PHP 5.4 as PHP 5.3 is now deprecated and considered unsafe by PCI security standards.

 

We are aware that many sites have not been properly maintained with updates and will experience incompatibilities with PHP 5.4 so we have installed PHP 5.3 along side in such a way as to allow it to be activated on a site by adding a configuration line via .htaccess to the site, or a specific directory.

This will only remain available for one month though as we cannot permit sites to remain outdated and insecure due to not being compatible with more modern versions of PHP and unfortunately many users are likely to take no action unless forced to.

 

To apply PHP 5.3 to your site, you can add the following to /home/YOURUSERNAME/.htaccess :

 

AddHandler application/x-httpd-php53 .php

 

To have it apply to a specific directory instead of the entire site, you would place the .htaccess file within the directory required such as /home/YOURUSERNAME/public_html/blog/.htaccess .

 

Also if you are utilizing a customized copy of a php.ini file it will need to be replaced with the PHP 5.4 version and customized again as the previous version for PHP 5.3 will not work properly while a site is running on PHP 5.4 .

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

you can update your shop to 5.4 (a lot of work but possible) or change the hosting company and look for a other company which offers 5.2 or create a new shop by using the last version. but than you will start by zero and if you have a lot of contrtibs inside you need much time to do it.

 

for me it was better to update the 2.2 version to 5.4 (there was noway to use 2.3x and loosing all of the extra coding and contribs)

Posted

Go with version 2.3.3.4 of oscommerce.

 

I would install it today using a 2.3.3.4 database, don't even worry about your old shop.

Then on the new 2.3.3.4 I would add in all the addons I definitely need and test them.

Then I would reskin the 2.3.3.4 default look to something close to the old site.

 

Once you are there, and that's quite a lot of work, you can look at migrating the database.

 

Looks like you have 1 month starting today, so you need to get going today.

Posted

change the hosting company and look for a other company which offers 5.2

Very BAD advice. PHP 5.2 is now obsolete, and no responsible and reliable hosting company is going to continue offering it for long. 5.3 is now the mainstream and minimum, and 5.4 is becoming commonplace.

 

I think that a 1 month grace period is perhaps a little on the short side, but it should be adequate if you've been keeping up your site. If you haven't been keeping your site reasonably up to date, well, it's flop sweat time.

 

PHP has nothing to do with the database (other than using the MySQLi interface in the code, instead of MySQL, but I'm not sure if that comes in 5.4 or 5.5). A PHP upgrade should be usable with the same database as before, although the PHP code might have to be updated. An osC upgrade to 2.3.3.4 will require a migration.

 

What you do is set up a private sandbox off to the side in /test or /dev, and running PHP 5.4. Install osC 2.3.3.4 and a copy of your database (have you practiced making and restoring backups lately?), and practice migrating the database to osC 2.3.3.4. Once you have it down smoothly, start looking at what it will take to install the add-ons you need, or update them to work on 2.3.3.4 and PHP 5.4 (you'll probably need some coding help with that). When you have a reasonably good version of your store working on PHP 5.4, you can back up the old store and database, and move your 2.3.3.4 store over to the production site. You say that your current stores are dead, so presumably no customer is updating the database right now and it is safe to migrate and use a snapshot of the current database.

 

As always, back up, back up, back up and know how to restore before you do any major work.

Posted

ok downloaded 2.3.3.4 to a blank hosting area, and started work on it - the hosts have now given me till January on 5.3 so Im a little more relaxed now....

 

Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Also got a client on united who had the same issue.

 

Client pushed and was told that it 5.3 will be turned off in Mid Jan

 

Heart runs 5.3, taking them over to them. Can also swtich back to 5.2 if needed

 

Any idea what version of php v2.2 RC2a orginally ran on?

Posted

Decided to stick it out and develop a new 5.3.3.4 store - after all I now have until January to get it done.

 

Already installed two of the most essential mods (for me) and they seem to work (MGZMTS and Order Maker / Editor) - now cracking on with the others.........

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

Client pushed and was told that it 5.3 will be turned off in Mid Jan

I think that's a bit early to be forcing users off of 5.3 and onto 5.4. 5.3 is still alive and supported for the time being.

 

Heart runs 5.3, taking them over to them. Can also swtich back to 5.2 if needed

Don't count on 5.3 being supported forever. It's a temporary respite, at best. Eventually even Heart will have to kick you off of 5.3. And 5.2 is just plain obsolete and unsupported now, so it would be a mistake to deliberately stay dependent on 5.2. As a temporary respite, to allow you time to upgrade the code to 5.3 and then 5.4, that's one thing; but planning to stay there for a long time is foolish.

 

Any idea what version of php v2.2 RC2a orginally ran on?

I think it allowed as far back as 4.4.something, but was updated to allow up to 5.2.

Posted

I think that's a bit early to be forcing users off of 5.3 and onto 5.4. 5.3 is still alive and supported for the time being.

 

 

As mentioned earlier: PHP 5.3 is now deprecated and considered unsafe by PCI security standards.

 

 

We had to upgrade to 5.4 for PCI reasons. Our scans started failing in September due to php 5.3

We would not have been so eager to upgrade, but we had no choice.

 

Tim

Posted

what kind of error you getting, I just got it work with php 5.4.22 with my osc 2.2. but I still working on the problem when I trying to switch languages.

Posted

My error was quite straightforward - neither the shop or admin would load - just a white page.....

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

As mentioned earlier: PHP 5.3 is now deprecated and considered unsafe by PCI security standards.

 

There's difference between being forced to 5.4 because you need to stay PCI compliant, and being arbitrarily forced to 5.4 because your host feels like doing that. If I am using, say, PayPal, I don't need PCI compliance and could stay at PHP 4.4.9 if I wanted to and my host still offered it (support for the PHP version is another matter...).

Posted

My error was quite straightforward - neither the shop or admin would load - just a white page.....

 

Are you using any template system? if yes, you may need to do more to apply the change.

 

First, you need to apply the apply the OSC V2.2 RC2a PHP 5.3 Compatible Files

 

After you apply the patch, your admin side will be able to load, your front store may not be.

 

Second, search the following line in your application_top.php from your store side.

 

$navigation->add_current_page();

 

and change to

// $navigation->add_current_page();

 

you will be able to see your store.

 

Third, open your configure.php and add the following line at the top of the page.

 

$HTTP_SERVER_VARS = $_SERVER;

$HTTP_GET_VARS = $_GET;

$HTTP_POST_VARS = $_POST;

 

 

if should be able to bring your store online.

 

I also install the add on for remove register_globals long time ago, I am not sure if that has anything to do with it.

 

Ken

Posted

@@ken0306

 

Thanks but not required as Im starting a new 2.3.3.4 store. I have until Jan on php 5.3 then hopefully my new store will be finished.

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Archived

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

×
×
  • Create New...