Page 1 of 2

Add PHP 5.2 Support in Centos 6

Posted: Thu Dec 15, 2016 10:59 pm
by skamasle
For complement php selector -> viewtopic.php?f=19&t=10854

Some time a go I do a lite script to compile php 5.2 in centos 6

Is a simple script and working in centos 6 whit default repos..

You can follow any internet guide to compile php 5.2 or use this script to compile it and add vesta templates.

This may help people runing old aplications, It save me a lot of time.

Code: Select all

wget http://mirror.skamasle.com/vestacp/PHP/sk-php52-installer.sh

Code: Select all

bash sk-php52-installer.sh

Instructions for CENTOS 7 -
> viewtopic.php?f=19&t=13406&p=61533#p61533

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 12:56 pm
by one
Hello,

what about running this script on CentOS 7?

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 1:48 pm
by skamasle
one wrote:Hello,

what about running this script on CentOS 7?
I not test this in centos 7.

I think need some changes, install some more dependencies maybe

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:04 pm
by one
I have try this script but get message it only for CentOS 6.

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:31 pm
by skamasle
one wrote:I have try this script but get message it only for CentOS 6.
Yes have some check to prevent runing it in order versions to avoid errors.

You can compile php manually .

I will add support to centos 7 also, just need check somethings

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:31 pm
by skamasle
skamasle wrote:
one wrote:I have try this script but get message it only for CentOS 6.
Yes have some check to prevent runing it in order versions to avoid errors.

You can compile php manually whit same script procedure to check.

I will add support to centos 7 also, just need check somethings

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:38 pm
by one
Ok.

I will try to comple by my self.

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:45 pm
by skamasle
one wrote:Ok.

I will try to comple by my self.
You may need apply some patchs

https://www.centos.org/forums/viewtopic.php?t=53046

It appers than php 5.2 cant be compiled in centos 7 whitout patch

Re: Add PHP 5.2 Support in Centos 6

Posted: Fri Dec 30, 2016 2:58 pm
by one
Thank you!

Re: Add PHP 5.2 Support in Centos 6

Posted: Thu Mar 30, 2017 8:40 pm
by abe666
Hi, please correct error in CentOS 6.8 install:

Code: Select all

configure: error: libjpeg.(a|so) not found.
Stop compile, we get some errors
Thanks