Comments on How To Build PHP 5.6 (PHP-FPM & FastCGI) with Zend OPcache And APCu For ISPConfig 3 On Debian 7 (Wheezy)
How To Build PHP 5.6 (PHP-FPM & FastCGI) with Zend OPcache And APCu For ISPConfig 3 On Debian 7 (Wheezy) ISPConfig 3 has a builtin feature to support multiple PHP versions on one server and select the optimal PHP version for a website. This feature works with PHP-FPM and FastCGI. This tutorial shows how to build PHP 5.6 as a PHP-FPM and a FastCGI version on a Debian Wheezy server. These PHP 5.5 builds include Zend OPcache, and APCu.
14 Comment(s)
Comments
nano /etc/apt/sources.list
deb-src http://ftp.debian.org/debian ... main contrib non-free
And use checkinstall insted make install
Hi,
When I execute ./configure --prefix=/opt/php-5.6.0 --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-opcache --enable-fpm
I got an error: configure: error: xml2-config not found. Please check your libxml2 installation.
and on make: make: *** No targets specified and no makefile found. Stop.
What should I do?
Please help.
Thanks,
John
Hello, What is the procedure to follow to upgrade to version 5.6.7 php. Best Regards.
Bonjour,
Quel est la procédure a suivre pour upgrade en version php 5.6.7.
Cordialement.
Hi.
After having done all this stuff.
What should I change into NginX config tu use the new php version ?
Thank's
You change nothing in nginx conf. Login to ispconfig, go to the website settings and select the new php version in the php version select field, then press the save button.
Hi, why is there (page no 2) some duplicate content from page 1?
On page 1 you compile a php-fpm version, on page 2 a php-fcgi version of PHP.
Hi, I tried this How to for PHP 5.6.12
Everything went ok until start fpm:
/etc/init.d/php-5.6.12-fpm start
Starting php-fpm [02-Sep-2015 18:16:07] ERROR: [/opt/php-5.6.12/etc/php-fpm.conf:540] value is NULL for a ZEND_INI_PARSER_ENTRY
[02-Sep-2015 18:16:07] ERROR: failed to load configuration file '/opt/php-5.6.12/etc/php-fpm.conf'
[02-Sep-2015 18:16:07] ERROR: FPM initialization failed
failed
Problem is when this line is inserted:
include /opt/php-5.6.12/etc/pool.d/*.conf
If I comment this line, fpm starts, but PHP version in ISPconfig doesn't work.
I found this:
http://serverfault.com/questions/547394/is-there-a-limit-setting-a-php-admin-value-in-php-fpm
and used this fix:
https://github.com/DaveRandom/php-src/commit/9ad8e89d4f080626a92fc8817ab156c09b6b266a
and compiled with it. Same result.
Any clue? Please help.
I found the same error but it was some lines i add manually in "php directives" tab in ISP Config. I remove all manual directive and it works well after (then i put back my config line by line and find where was my error).
Hi, I've followed this tutorial and got PHP 5.6.16 working but I have an issue, afther choosing this version the timezone of the web using it, has 5 hours more than my actual timezone, so how can I change this and make it fit with my actual TimeZone?
Not working for me. I select the php version in the domain tab and click save. Then, open a phpinfo page that shows i'm using the default version of PHP instead the installed one.
I have the same problem but with 7.0.5 and can't find helpp ;/
could you configure this for centos 7?
Thank you. This saved my life.