Koozali.org: home of the SME Server

Re-Add PHP4 to an updated PHP5 installation

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
Re-Add PHP4 to an updated PHP5 installation
« on: July 30, 2007, 12:16:54 PM »
Hello!

I have installed SME server from the 7.1 CD and added the php5 + mysql 5 from centos, in order to install a Wikimedia WIKI.

Everything works quite nicely (wiki is already in production), but now I must install a CMS which is not PHP5-compatible. (in order to merge our website server which is an old fedora..)

Is it possible to re-add php4, and how? and how can I tell apache to use php5 for the wiki and php4 for the other ibay?

I am quite at a loss and would appreciate any help and indications..

thanks, Michel
MagWm

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Re-Add PHP4 to an updated PHP5 installation
« Reply #1 on: July 30, 2007, 02:30:27 PM »
Quote from: "magwm"
Hello!

I have installed SME server from the 7.1 CD and added the php5 + mysql 5 from centos, in order to install a Wikimedia WIKI.

Everything works quite nicely (wiki is already in production), but now I must install a CMS which is not PHP5-compatible. (in order to merge our website server which is an old fedora..)

Is it possible to re-add php4, and how? and how can I tell apache to use php5 for the wiki and php4 for the other ibay?

I am quite at a loss and would appreciate any help and indications..

thanks, Michel
I think that will be a pretty hard one. I do not know if it possible to run both versions from RPM as they will probably use configuration fragments that are the same, as well as share a single configuration file.

First step you should do I guess is try and rename all the template entries in the tree where the folder is php to php5, expand the template to create a php5 configuration file, reinstall php4 and then figure out if it is possible to run two versions of php in a single Apache instance, as I am not so sure if that will work.
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 cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re-Add PHP4 to an updated PHP5 installation
« Reply #2 on: July 30, 2007, 02:34:14 PM »
A little google-ing gave me this result: http://wiki.coggeshall.org/37.html

I believe that the proxy module is already implemented and loaded into SME Server (not in the opportunity to check that right now), so I guess the only thing that needed to be done is create a new virtual server and try to have it run php4 instead of php5 (after you have succesfully managed to install them both following the track I set out in my earlier post).
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 william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re-Add PHP4 to an updated PHP5 installation
« Reply #3 on: July 30, 2007, 02:48:45 PM »
Hmmm....

1. Go back to php4/mysql4 and run mediawiki 1.6

2. Go back to php4/mysql4 and run php5 as cgi. Search the forums.

3. Install vmware-server and run another copy of sme in server only mode and   use proxypass.
Regards,
William

IF I give advise.. It's only if it was me....

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
Re-Add PHP4 to an updated PHP5 installation
« Reply #4 on: July 30, 2007, 03:53:46 PM »
hmm. this is going to be a fun-stopper..

I sure can't go back to mediawiki 1.6 now! it was a pain to install all parts and making it work properly, + I have hundreds of screenshots in it.. I doubt if the updated database is compatible with 1.6? the 1.10 version info says it's not :(

Can't php4 be installed as cgi? like the howto that shows how to install php5 as cgi.. it seems strange to me that php4+php5cgi is possible but not the reverse..

I don't think the server has enough balls (P4/1GbRAM/20GbHD) to run a vm with another SME7..(?)  but I could try, if there is a smeserver-vmware somewhere. . . hmm I see a loooong thread on installing vmware..

btw mysql 5 is ok for the cms I need, it's more a php/sessions thing I think (IANAPhpProgrammer) (actually its only the config part of the cms that doesnt do it's job..)

Regretfully I have not many resources to spend on this, in any case I don't want to break the system as it is in production..  I will just stick with the old web server if this is all impossible!
MagWm

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
php4+php5
« Reply #5 on: August 03, 2007, 12:12:03 PM »
has someone further advice on how to proceed? thanks!
MagWm

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: php4+php5
« Reply #6 on: August 03, 2007, 05:07:54 PM »
Quote from: "magwm"
has someone further advice on how to proceed? thanks!
There have been a few advises already... how did you do with them? Did you already try them? Do not expect an out-of-the-box solution for a problem like this...
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 magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
Re-Add PHP4 to an updated PHP5 installation
« Reply #7 on: August 03, 2007, 07:15:30 PM »
Hello, cactus,

this server is in production already for some time, working as a nice wiki and mail server.  it's sending mail for 20 users so I can take it down only for short times.

However, I can't take down the wiki so I can't switch back to php4

the 20gb disks preclude large VM's, plus during active hours the server is quite loaded and wouldn't like a second OS serving our main website.

all in all, the only thing possible seems to install php4 as cgi, but I don't know how to do that. compiling from source perhaps?

ciao, Michel
MagWm

Offline magwm

  • *
  • 159
  • +0/-0
  • SmeLover
    • Gadis Tourist Service Italia SRL
php4-cgi rpm
« Reply #8 on: August 07, 2007, 01:28:54 PM »
If anyone can give me a more or less complete trail on how to compile a php4-cgi rpm for sme7.2, I will do it and provide a more complete howto..

ciao, Michel
MagWm