Add PHP 5.2 Support in Centos 6 Topic is solved

Section with additional software for Vesta
skamasle
Collaborator
Posts: 382
Joined: Mon Feb 29, 2016 6:36 pm

Re: Add PHP 5.2 Support in Centos 6

Postby skamasle » Thu Mar 30, 2017 9:07 pm

No issues in my end with centos 6.8 DO ISO

ink0gnito0
Posts: 9
Joined: Wed Jul 05, 2017 7:56 am

Re: Add PHP 5.2 Support in Centos 6

Postby ink0gnito0 » Wed Jul 05, 2017 1:51 pm

[root@host ~]# bash sk-php52-installer.sh
This script run only in centos 6 and you have
CentOS Linux release 7.3.1611 (Core)


Plz any help me?

skamasle
Collaborator
Posts: 382
Joined: Mon Feb 29, 2016 6:36 pm

Re: Add PHP 5.2 Support in Centos 6

Postby skamasle » Wed Jul 05, 2017 8:48 pm

ink0gnito0 wrote:
[root@host ~]# bash sk-php52-installer.sh
This script run only in centos 6 and you have
CentOS Linux release 7.3.1611 (Core)


Plz any help me?


Is not posible compile php 5.2 in centos 7 in easy way, you need modify some source code to compile it.

You can found in google why is not posible compile it by default.

So as I say in first post this only run in centos 6, and you have centos 7 installed

JET
Posts: 1
Joined: Sat Jul 15, 2017 6:41 am

Re: Add PHP 5.2 Support in Centos 6

Postby JET » Sat Jul 15, 2017 6:42 am

Установка php-5.2.17 на CentOs 7

Code: Select all

yum -y --enablerepo=remi install gcc make gcc-c++ cpp libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel libicu-devel gmp-devel curl-devel libmcrypt-devel unixODBC-devel pcre-devel sqlite-devel db4-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel

cd /usr/local/src

wget http://mirror.skamasle.com/vestacp/PHP/bin/php-5.2.17.tar.gz

tar xzf php-5.2.17.tar.gz
cd php-5.2.17/

./configure --with-libdir=lib64 --cache-file=./config.cache --prefix=/usr/local/php-5.2.17 --with-config-file-path=/usr/local/php-5.2.17/etc --disable-debug --with-pic --disable-rpath  --with-bz2 --with-curl --with-freetype-dir=/usr/local/php-5.2.17 --with-png-dir=/usr/local/php-5.2.17 --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr/local/php-5.2.17 --with-openssl --with-pspell --with-pcre-regex --with-zlib --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx --with-kerberos --with-unixODBC=/usr --enable-shmop --enable-calendar --with-libxml-dir=/usr/local/php-5.2.17 --enable-pcntl --with-imap --with-imap-ssl --enable-mbstring --enable-mbregex --with-gd --enable-bcmath --with-xmlrpc --with-ldap --with-ldap-sasl --with-mysql=/usr --with-mysqli --with-snmp --enable-soap --with-xsl --enable-xmlreader --enable-xmlwriter --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pear=/usr/local/php-5.2.17/pear --with-mcrypt --without-pdo-sqlite --with-config-file-scan-dir=/usr/local/php-5.2.17/php.d --enable-fastcgi


Code: Select all

curl -o php-5.2.17.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
patch -p0 -b < php-5.2.17.patch


Я решил проблему заменой устаревшей постоянной определения __GMP_BITS_PER_MP_LIMB на GMP_LIMB_BITS, которая присутствует во всех предыдущих версиях и MPIR определяет тоже.

Вам нужно отредактировать файл ext/gmp/gmp.c и заменить __GMP_BITS_PER_MP_LIMB на GMP_LIMB_BITS. В моем случае это было строке 1399.

Code: Select all

make
make install


Return to “3rd Party Software”



Who is online

Users browsing this forum: No registered users and 4 guests

cron