Koozali.org: home of the SME Server

SME8 and PHP 5.2

Offline F22-Raptor

  • **
  • 31
  • +0/-0
SME8 and PHP 5.2
« on: April 03, 2009, 01:31:08 AM »
How can I upgrade SME8 to PHP 5.2?

I want to install osCommerce v3.0 and I need PHP 5.2. The current SME8 version is based on CentOS 5.2 with PHP 5.1.6.

Thanks

D.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME8 and PHP 5.2
« Reply #1 on: April 03, 2009, 02:46:42 AM »
I want to install osCommerce v3.0 and I need PHP 5.2.

Tell the osCommerce developers that RHEL 5.3 is the leading enterprise linux distribution.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: SME8 and PHP 5.2
« Reply #2 on: April 03, 2009, 09:23:13 AM »
When OSCommerce 3.0 gets to RC stage I will update the PHP5-CGI contrib to support it.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME8 and PHP 5.2
« Reply #3 on: April 03, 2009, 01:30:26 PM »
Tell the osCommerce developers that RHEL 5.3 is the leading enterprise linux distribution.
I just raised the question why they are requiring PHP 5.2 as minimum: http://forums.oscommerce.com/index.php?showtopic=333041
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SME8 and PHP 5.2
« Reply #4 on: April 03, 2009, 02:26:48 PM »
I just raised the question why they are requiring PHP 5.2 as minimum: http://forums.oscommerce.com/index.php?showtopic=333041

evidently osCommerce will never be a enterprise software as it seems to me they are constantly "on the bleeding edge"

my 2c

Stefano

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME8 and PHP 5.2
« Reply #5 on: April 03, 2009, 04:07:17 PM »
evidently osCommerce will never be a enterprise software as it seems to me they are constantly "on the bleeding edge"
That might be the case, but IMHO it is one of the best eCommerce solutions available for free.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline johnp

  • *****
  • 312
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #6 on: April 04, 2009, 05:00:38 PM »
I too would be interested in this. I am currently testing Civicrm on 7.4 running mysql5 and Mr. Harpers php5-cgi contrib. I know this is not recommended for production use. So I would like to see how this CRM may be used in SME8.

My current test is Civicrm in stand-alone mode, but I was looking at the Drupal method as an option. This being said, Drupal under the php5-cgi would like mbstring functionality. From reading http://forums.contribs.org/index.php/topic,43723.0.html , I see that there is some others who would like this addition.

I didn't see where to make a NFR for the php5-cgi, but would be glad to add one if someone could point me in the right direction.

Thanks, and FWIW I'm not sensitive   :lol:

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #7 on: April 04, 2009, 05:17:37 PM »
Looks like a lot of people are interested in this.

Hopefully somebody will come up with a solution.

D.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: SME8 and PHP 5.2
« Reply #8 on: April 04, 2009, 06:16:41 PM »
AFAIK, there really isn't that much of a difference between the PHP 5 shipped with COS 5.3 and PHP 5.2 as distributed by php.net.

Perhaps there is a way one could trick osCommerce into thinking you are running 5.2.  This will likely require you to do some looking through the code to figure out how osCommerce is checking your php version.

----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #9 on: April 05, 2009, 02:04:41 AM »
I don't think osCommerce really checks for PHP version. It just show a red X next to the PHP version on the install screen.

I decided to go ahead with the installation anyway but now I'm stuck at the database connection screen.
I'm supposed to have a database and user for osC to use but I can't install phpmyadmin.

I'll start another tread for it.

Meanwhile, if anyone has any ideas/feedback please post here.

Thanks

D.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME8 and PHP 5.2
« Reply #10 on: April 06, 2009, 08:00:35 PM »
AFAIK, there really isn't that much of a difference between the PHP 5 shipped with COS 5.3 and PHP 5.2 as distributed by php.net.

There would probably be even less difference with the PHP 5.2.6 RPMs available from CentOS here:

http://dev.centos.org/centos/5/testing/i386/RPMS/

I'd agree with Greg though that the first step would be to just use osC with PHP 5.1.6 as provided with C53.

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #11 on: April 09, 2009, 05:00:51 AM »
I personally think that the PHP5 contrib should become a core feature of SME.

We can have the RedHat supplied version for most of the system and have the most recent version of PHP for those applications needing it. All we would need to do is add a check box in the ibay creation panel asking whether the application hosted in this ibay needs PHP 5.XX or above.

This way we can have two concurrent versions of PHP that allows us to a) Stay compatible with the upstream vendor and b) run the latest and greatest apps. It is a win - win situation.

Just my $00.02.

Craig

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME8 and PHP 5.2
« Reply #12 on: April 09, 2009, 09:34:21 AM »
I decided to go ahead with the installation anyway but now I'm stuck at the database connection screen.
I'm supposed to have a database and user for osC to use but I can't install phpmyadmin.
Have a look at http://wiki.conbtribs.org/MySQL as you do not really need PhPMyAdmin to create a user and a database.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #13 on: April 09, 2009, 06:26:38 PM »
Thanks Cactus.

I agree with Craig, that would give people a lot of flexibility.
I also think phpmyadmin should be part of the core build.

D.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: SME8 and PHP 5.2
« Reply #14 on: April 09, 2009, 07:11:17 PM »
I personally think that the PHP5 contrib should become a core feature of SME.

We can have the RedHat supplied version for most of the system and have the most recent version of PHP for those applications needing it. All we would need to do is add a check box in the ibay creation panel asking whether the application hosted in this ibay needs PHP 5.XX or above.

This way we can have two concurrent versions of PHP that allows us to a) Stay compatible with the upstream vendor and b) run the latest and greatest apps. It is a win - win situation.

There is no reason to run PHP 5 and PHP 4 on the same machine as PHP 5 is backward compatible with PHP 4.   In fact, it would be "sloppy" to include both in SME server.

A better use of effort by the community would be to help push SME 8 to production.
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.