Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: magwm on July 30, 2007, 12:16:54 PM

Title: Re-Add PHP4 to an updated PHP5 installation
Post by: magwm 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
Title: Re: Re-Add PHP4 to an updated PHP5 installation
Post by: cactus 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.
Title: Re-Add PHP4 to an updated PHP5 installation
Post by: cactus 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 (http://forums.contribs.org/viewpost.php?p=171089)).
Title: Re-Add PHP4 to an updated PHP5 installation
Post by: william_syd 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.
Title: Re-Add PHP4 to an updated PHP5 installation
Post by: magwm 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!
Title: php4+php5
Post by: magwm on August 03, 2007, 12:12:03 PM
has someone further advice on how to proceed? thanks!
Title: Re: php4+php5
Post by: cactus 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...
Title: Re-Add PHP4 to an updated PHP5 installation
Post by: magwm 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
Title: php4-cgi rpm
Post by: magwm 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