Koozali.org: home of the SME Server

SME8 and PHP 5.2

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #15 on: April 09, 2009, 07:36:02 PM »
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.

Then why don't we currently include PHP5 instead of PHP4 now?

You must have spotted the reason: We must maintain as much compatibility with the upstream vendor as possible (SME -> CentOS -> RHEL).

I do not think it would be sloppy at all. It would make SME even more compatible with the wide range of legacy applications and the ones approved by RedHat and built specifically for RHEL. Anyways, I was talking about SME 8. We would include the RedHat version while also having the most bleeding-edge (read: most recent stable) for the end user to decide on.

It is most certainly not a bad thing to have multiple versions of the same product because in the real world, these things happen all the time.

Craig

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME8 and PHP 5.2
« Reply #16 on: April 09, 2009, 07:55:02 PM »
It is most certainly not a bad thing to have multiple versions of the same product because in the real world, these things happen all the time.
This would be a very good discussion for the devinfo list IMHO. I can think of a few objections, one of them would be the limited number of developers supporting now already having a hard time releasing SME 8.
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 gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: SME8 and PHP 5.2
« Reply #17 on: April 09, 2009, 08:26:48 PM »
Then why don't we currently include PHP5 instead of PHP4 now?

Because RHEL doesn't, in RHEL 4.x anyway.  As previously stated, we need to be talking about to get SME 8 out, not how to hack SME 7.

We would include the RedHat version while also having the most bleeding-edge (read: most recent stable) for the end user to decide on.

If you're looking for bleeding edge, then SME isn't for you. 

It is most certainly not a bad thing to have multiple versions of the same product because in the real world, these things happen all the time.

Yes, like security vulnerabilities. 
----
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 #18 on: April 14, 2009, 11:19:53 PM »
Just a quick update.

I've installed osCommerce on SME8 and some of the functions used by the catalog and admin are not working.

The menus are messed up.

I guess I really need PHP 5.2, 5.1.6 just won't cut it.

D.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: SME8 and PHP 5.2
« Reply #19 on: April 15, 2009, 01:40:16 AM »
I upgraded php on my SME 8beta3 system as follows:
Code: [Select]
db yum_repositories set c5-testing repository
db yum_repositories setprop c5-testing GPGKey http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
db yum_repositories setprop c5-testing BaseURL "http://dev.centos.org/centos/\$releasever/testing/\$basearch/"
db yum_repositories setprop c5-testing Name "CentOS-5 Testing" enabled 0 GPGCheck yes
signal-event yum-modify
yum --enablerepo=c5-testing update php
php --version
signal-event post-upgrade; signal-event reboot

Afterwards, OSCommerce 3.x worked OK, and my DokuWiki site still works OK (these are the only two functions of this server).

Note: I constructed the above commands from my .bash_history...

Offline F22-Raptor

  • **
  • 31
  • +0/-0
Re: SME8 and PHP 5.2
« Reply #20 on: April 18, 2009, 06:53:25 PM »
It worked. Thanks.

I had to reinstall osC 3 to get the admin working right but in catalog I still can't get the box headings.

I'll have to post on their forum.

Thanks again.

D.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: SME8 and PHP 5.2
« Reply #21 on: April 18, 2009, 07:14:21 PM »
I had no trouble with oscommerce-3.0a5 except for the country flag icons in .../images/worldflags.  The code looks for US.png, but the file is named us.png - probably OK on Windows, but not on SME. 

I used the following code to create a shell script that creates upper case symbolic links for all of the flag icons:
Code: [Select]
cd /path/to/images/worldflags
ls  | awk -F. '{print "ln -s " $0, toupper($1) "." $2};' > joe.sh
sh joe.sh
rm joe.sh

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: SME8 and PHP 5.2
« Reply #22 on: April 18, 2009, 07:19:36 PM »
I had no trouble with oscommerce-3.0a5 except for the country flag icons in .../images/worldflags.  The code looks for US.png, but the file is named us.png - probably OK on Windows, but not on SME.
Perhaps something the oscommerce developers would like to be aware of, did you report it to them as well? http://svn.oscommerce.com/jira/secure/Dashboard.jspa
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 #23 on: April 18, 2009, 07:24:27 PM »
I was going to.

I had the same problem with the flags.

I think the heading issue is related to some functions not finding what they're looking for.

All my boxes have headings like box_whats_new_heading the same goes for linked content in boxes (i.e. box_information_shipping )

Hopefully I'll post on the osC forum tomorrow.

D.

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: SME8 and PHP 5.2
« Reply #24 on: April 18, 2009, 07:27:02 PM »
Perhaps something the oscommerce developers would like to be aware of, did you report it to them as well? http://svn.oscommerce.com/jira/secure/Dashboard.jspa

Someone else already did: http://svn.oscommerce.com/jira/browse/OSC-874

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME8 and PHP 5.2
« Reply #25 on: April 19, 2009, 01:42:44 AM »
I had no trouble with oscommerce-3.0a5 except for the country flag icons in .../images/worldflags.  The code looks for US.png, but the file is named us.png - probably OK on Windows, but not on SME. 

I used the following code to create a shell script that creates upper case symbolic links for all of the flag icons:
Code: [Select]
cd /path/to/images/worldflags
ls  | awk -F. '{print "ln -s " $0, toupper($1) "." $2};' > joe.sh
sh joe.sh
rm joe.sh

You don't need to create a temp file for that.

You could do:

ls  | awk -F. '{print "ln -s " $0, toupper($1) "." $2};'  | sh

Or:

for i in * ; do ln $i $(echo $i | tr A-Z a-z) ; done

How much of osC doesn't work with PHP 5.1?

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: SME8 and PHP 5.2
« Reply #26 on: April 19, 2009, 03:58:35 PM »
How much of osC doesn't work with PHP 5.1?

I didn't play with it for very long, but my sense is that in the /admin screens I didn't get any lists of options until I upgraded PHP.

For example, if I log into the admin panel and select "Content", then "Product Variants", I get a list of "Variant Groups" with PHP 5.2 that I did not get with 5.1.

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
Re: SME8 and PHP 5.2
« Reply #27 on: May 08, 2009, 06:38:59 AM »