We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Add PHP 5.2 Support in Centos 6 Topic is solved
Re: Add PHP 5.2 Support in Centos 6
No issues in my end with centos 6.8 DO ISO
-
- Posts: 10
- Joined: Wed Jul 05, 2017 7:56 am
Re: Add PHP 5.2 Support in Centos 6
Plz any help me?[root@host ~]# bash sk-php52-installer.sh
This script run only in centos 6 and you have
CentOS Linux release 7.3.1611 (Core)
Re: Add PHP 5.2 Support in Centos 6
Is not posible compile php 5.2 in centos 7 in easy way, you need modify some source code to compile it.ink0gnito0 wrote:Plz any help me?[root@host ~]# bash sk-php52-installer.sh
This script run only in centos 6 and you have
CentOS Linux release 7.3.1611 (Core)
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
Re: Add PHP 5.2 Support in Centos 6
Установка php-5.2.17 на CentOs 7
Я решил проблему заменой устаревшей постоянной определения __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
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
Вам нужно отредактировать файл ext/gmp/gmp.c и заменить __GMP_BITS_PER_MP_LIMB на GMP_LIMB_BITS. В моем случае это было строке 1399.
Code: Select all
make
make install