Mudanças entre as edições de "Compilando PHP 5.3 em Debian Wheezy"
De MochilaWiki
Ir para navegaçãoIr para pesquisar (Criou página com 'apt-get install build-essential apt-get build-dep php5 apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev l...') |
|||
Linha 1: | Linha 1: | ||
+ | == baixando dependencias == | ||
+ | <source lang="bash"> | ||
apt-get install build-essential | apt-get install build-essential | ||
apt-get build-dep php5 | apt-get build-dep php5 | ||
apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev | apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev | ||
ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a | ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a | ||
+ | </source> | ||
+ | |||
+ | == compilando == | ||
+ | <source lang="bash"> | ||
mkdir -p /opt/php-5.3.29/etc/pool.d | mkdir -p /opt/php-5.3.29/etc/pool.d | ||
mkdir /usr/local/src/php5-build; cd $_ | mkdir /usr/local/src/php5-build; cd $_ | ||
Linha 8: | Linha 14: | ||
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-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring \ | ./configure --prefix=/opt/php-5.3.29 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring \ | ||
--with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql \ | --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql \ | ||
Linha 16: | Linha 21: | ||
--with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap \ | --with-fpm-user=www-data --with-fpm-group=www-data --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-imap \ | ||
--with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-fpm | --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-fpm | ||
− | |||
make | make | ||
make install | make install | ||
+ | </source> | ||
− | + | == configurações == | |
+ | <source lang="bash"> | ||
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/fpm | wget http://pub.nkosi.org/php-5.3.29/fpm | ||
mv fpm /etc/init.d/php-5.3.29-fpm | mv fpm /etc/init.d/php-5.3.29-fpm | ||
chmod 755 /etc/init.d/php-5.3.29-fpm | chmod 755 /etc/init.d/php-5.3.29-fpm | ||
insserv php-5.3.29-fpm | insserv php-5.3.29-fpm | ||
− | |||
/etc/init.d/php-5.3.29-fpm start | /etc/init.d/php-5.3.29-fpm start | ||
+ | </source> |
Edição das 18h59min de 24 de setembro de 2015
baixando dependencias
apt-get install build-essential
apt-get build-dep php5
apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev
ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a
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-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring \
--with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql \
--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 --with-imap \
--with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-fpm
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/fpm
mv fpm /etc/init.d/php-5.3.29-fpm
chmod 755 /etc/init.d/php-5.3.29-fpm
insserv php-5.3.29-fpm
/etc/init.d/php-5.3.29-fpm start