Установка зависимостей:
# apt-get install git checkinstall \
apache2-threaded-dev libxml2-dev \
libcurl4-openssl-dev libjpeg-dev \
libpng-dev libxpm-dev \
libmysqlclient-dev libpq-dev \
libicu-dev libfreetype6-dev \
libldap2-dev libxslt-dev \
build-essential autoconf \
bison libbz2-dev \
libgmp-dev libmcrypt-dev \
libpspell-dev librecode-dev php-pear
Собираем пакет:
# cd /root
# git clone https://git.php.net/repository/php-src.git
# cd php-src
# ./buildconf
# ./configure --prefix=/opt/php7 \
--with-config-file-path=$HOME/tmp/usr/etc \
--enable-fpm --enable-mbstring --enable-zip --enable-bcmath \
--enable-pcntl --enable-ftp --enable-exif --enable-calendar \
--enable-sysvmsg --enable-sysvsem \
--enable-sysvshm --enable-wddx --with-curl --with-mcrypt \
--with-iconv --with-gmp --with-pspell --with-gd \
--with-jpeg-dir=/usr --with-png-dir=/usr \
--with-zlib-dir=/usr --with-xpm-dir=/usr \
--with-freetype-dir=/usr --enable-gd-native-ttf \
--enable-gd-jis-conv --with-openssl \
--with-pdo-mysql=/usr --with-gettext=/usr \
--with-zlib=/usr --with-bz2=/usr \
--with-recode=/usr --with-mysqli=/usr/bin/mysql_config
# make
# checkinstall -D make install
# тут нужно исправить "Version" со значения "src" на "7"
Если нужно сохранить пакет:
# mv ./php7-1_amd64.deb /root/php7-1_amd64.deb
Если используется селектор в ISPmanager 4, то нужно не забыть про /etc/phpversion
via.
# apt-get install git checkinstall \
apache2-threaded-dev libxml2-dev \
libcurl4-openssl-dev libjpeg-dev \
libpng-dev libxpm-dev \
libmysqlclient-dev libpq-dev \
libicu-dev libfreetype6-dev \
libldap2-dev libxslt-dev \
build-essential autoconf \
bison libbz2-dev \
libgmp-dev libmcrypt-dev \
libpspell-dev librecode-dev php-pear
Собираем пакет:
# cd /root
# git clone https://git.php.net/repository/php-src.git
# cd php-src
# ./buildconf
# ./configure --prefix=/opt/php7 \
--with-config-file-path=$HOME/tmp/usr/etc \
--enable-fpm --enable-mbstring --enable-zip --enable-bcmath \
--enable-pcntl --enable-ftp --enable-exif --enable-calendar \
--enable-sysvmsg --enable-sysvsem \
--enable-sysvshm --enable-wddx --with-curl --with-mcrypt \
--with-iconv --with-gmp --with-pspell --with-gd \
--with-jpeg-dir=/usr --with-png-dir=/usr \
--with-zlib-dir=/usr --with-xpm-dir=/usr \
--with-freetype-dir=/usr --enable-gd-native-ttf \
--enable-gd-jis-conv --with-openssl \
--with-pdo-mysql=/usr --with-gettext=/usr \
--with-zlib=/usr --with-bz2=/usr \
--with-recode=/usr --with-mysqli=/usr/bin/mysql_config
# make
# checkinstall -D make install
# тут нужно исправить "Version" со значения "src" на "7"
Если нужно сохранить пакет:
# mv ./php7-1_amd64.deb /root/php7-1_amd64.deb
via.
Комментариев нет:
Отправить комментарий