Ubuntu 12.04 - компиляция php 5.6

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Доступная цена


Ubuntu 12.04 - компиляция php 5.6

#  cd /tmp/
#  wget http://de1.php.net/get/php-5.6.22.tar.gz/from/this/mirror -O php-5.6.22.tar.gz
#  tar -xzvf php-5.6.22.tar.gz
# cd php-5.6.22/
# apt-get install libxml2 libxml2-dev libssl-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libfreetype6-dev libmcrypt-dev libmysqlclient-dev make
#  ./configure --prefix=/opt/php56 --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --enable-ftp --with-imap-ssl --with-kerberos --with-gettext --enable-cgi
 # make && make install
 # /opt/php56/bin/php-cgi -v
PHP 5.6.22 (cgi-fcgi) (built: Jun  8 2016 17:39:31)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies