Mudanças entre as edições de "Compilando PHP 5.3 em Debian Jessie"
De MochilaWiki
Ir para navegaçãoIr para pesquisar(7 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
== baixando dependencias == | == baixando dependencias == | ||
<source lang="bash"> | <source lang="bash"> | ||
− | |||
apt-get build-dep php5 | apt-get build-dep php5 | ||
− | |||
</source> | </source> | ||
Linha 13: | Linha 11: | ||
tar jxvf php-5.3.29.tar.bz2 | tar jxvf php-5.3.29.tar.bz2 | ||
cd php-5.3.29/ | cd php-5.3.29/ | ||
− | + | ./configure --prefix=/opt/php-5.3.29 --with-zlib-dir --enable-mbstring --with-xmlrpc --with-xsl \ | |
− | + | --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd \ | |
− | |||
− | ./configure --prefix=/opt/php-5.3.29 --with- | ||
− | --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 \ | --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm \ | ||
--enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql \ | --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --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 \ | --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl \ | ||
--with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --enable-fpm \ | --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --enable-fpm \ | ||
− | --with-kerberos --with-gettext -- | + | --with-kerberos --with-gettext |
+ | sed -i '107s/-lcrypt/-lssl -lcrypto/g' Makefile | ||
make | make | ||
make install | make install | ||
Linha 31: | Linha 27: | ||
cp /usr/local/src/php5-build/php-5.3.29/php.ini-production /opt/php-5.3.29/lib/php.ini | cp /usr/local/src/php5-build/php-5.3.29/php.ini-production /opt/php-5.3.29/lib/php.ini | ||
cp /opt/php-5.3.29/etc/php-fpm.conf.default /opt/php-5.3.29/etc/php-fpm.conf | cp /opt/php-5.3.29/etc/php-fpm.conf.default /opt/php-5.3.29/etc/php-fpm.conf | ||
− | wget http://pub.nkosi.org/php-5.3.29 | + | wget http://pub.nkosi.org/php-5.3.29/php-5.3.29.service |
− | + | mv php-5.3.29.service /lib/systemd/system | |
− | + | systemctl enable php-5.3.29.service | |
− | + | systemctl start php-5.3.29.service | |
− | |||
</source> | </source> | ||
− | |||
== Referências == | == Referências == | ||
+ | * [[Compilando PHP 5.3 em Debian Wheezy]] | ||
* http://searchengines.guru/showthread.php?t=895365 | * http://searchengines.guru/showthread.php?t=895365 | ||
+ | * [https://gist.github.com/magnetikonline/c1a214e12cdbc65df7c620bbbc3af6e8 Example Nginx & PHP-FPM systemd service configs] |
Edição atual tal como às 11h08min de 15 de novembro de 2016
baixando dependencias
apt-get build-dep php5
compilando
mkdir -p /opt/php-5.3.29/etc/pool.d
mkdir /usr/local/src/php5-build; cd $_
wget http://pub.nkosi.org/php-5.3.29/php-5.3.29.tar.bz2
tar jxvf php-5.3.29.tar.bz2
cd php-5.3.29/
./configure --prefix=/opt/php-5.3.29 --with-zlib-dir --enable-mbstring --with-xmlrpc --with-xsl \
--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 --enable-exif --enable-bcmath --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 \
--with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --enable-fpm \
--with-kerberos --with-gettext
sed -i '107s/-lcrypt/-lssl -lcrypto/g' Makefile
make
make install
configurações
cp /usr/local/src/php5-build/php-5.3.29/php.ini-production /opt/php-5.3.29/lib/php.ini
cp /opt/php-5.3.29/etc/php-fpm.conf.default /opt/php-5.3.29/etc/php-fpm.conf
wget http://pub.nkosi.org/php-5.3.29/php-5.3.29.service
mv php-5.3.29.service /lib/systemd/system
systemctl enable php-5.3.29.service
systemctl start php-5.3.29.service