mirrorgift.blogg.se

Install php fpm
Install php fpm






install php fpm
  1. INSTALL PHP FPM HOW TO
  2. INSTALL PHP FPM INSTALL
  3. INSTALL PHP FPM ARCHIVE

The current version of this tutorial is for php-7.1.14. Please note: The screenshot is from PHP 7.1.14, the tutorial gets updated continuously for new PHP versions but we don't take new screenshots each time, so the PHP version that you will see on your server might be newer. The output should be similar to this screenshot. Test the PHP version: cd /opt/php-7.1/bin Then edit the php.ini file with an editor: nano /opt/php-7.1/lib/php.iniĪnd add the following line at the end of the file: zend_extension=/opt/php-7.1/lib/php/extensions/no-debug-non-zts-20160303/xdebug.soįinally, restart the php-fpm daemon: systemctl start The xDebug module is a debugging extension for PHP. To enable the Memcache extension, open /opt/php-7.1/lib/php.ini. opt/php-7.1/bin/phpizeĬonfigure and build the PHP memcache extension./configure -with-php-config=/opt/php-7.1/bin/php-config Prepare he sources by running the phpize command from PHP 7.1. mkdir /usr/local/src/php7.1-build/php-memcacheĬd /usr/local/src/php7.1-build/php-memcache

INSTALL PHP FPM ARCHIVE

Then create a diretory, download the PHP memcache extension from Github, unpack the archive and enter the directory that contains the unpacked files.

install php fpm

INSTALL PHP FPM INSTALL

The first step is to install the libmemcached-dev package from Debian. In this chapter, I will compile and enable the PHP Memcached extension. To enable the Zend OPcache, open /opt/php-7.1/lib/php.ini. nano /lib/systemd/system/ĭescription=The PHP 7.1 FastCGI Process ManagerĮxecStart=/opt/php-7.1/sbin/php-fpm -nodaemonize -fpm-config /opt/php-7.1/etc/nfĮnable the service and reload systemd: systemctl enable įinally, start PHP-FPM. Next, we'll create the system unit file which is used to start and stop the PHP-FPM daemon. Then open /opt/php-7.1/etc/php-fpm.d/8999 port 9000 might be in use by Debian's default PHP-FPM already): Open /opt/php-7.1/etc/nf and adjust the following setting (remove the in front of the pid line): nano /opt/php-7.1/etc/nf makeĬopy php.ini and nf to the correct locations: cp /usr/local/src/php7.1-build/php-7.1/php.ini-production /opt/php-7.1/lib/php.iniĬp /opt/php-7.1/etc/ /opt/php-7.1/etc/nfĬp /opt/php-7.1/etc/php-fpm.d//opt/php-7.1/etc/php-fpm.d/www.conf The last switch (-enable-fpm) makes sure this PHP version will work with PHP-FPM. configure -prefix=/opt/php-7.1 -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-pdo-mysql -with-mysqli -with-mysql-sock=/var/run/mysqld/mysqld.sock -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 configure command, it is possible that additional libraries are required, or the build process will fail). To see all available options if you use a different. configure command to your needs, take a look at. Please check your c-client Compile PHP 7.1 as PHP-FPM and Fastcgiĭownload and extract PHP archive: mkdir -p /opt/php-7.1Ĭonfigure and build PHP 7.1 as follows (you can adjust the. yesĬonfigure: error: Cannot find imap library (libc-client.a). configure will stop with the following error: checking for crypt in -lcrypt.

install php fpm

(The last command is needed if you build PHP with -with-imap, because otherwise. Ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a Install the prerequisites for building PHP and the nano editor that I will use to edit the config files: apt-get install build-essential nanoĪpt-get install libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dev libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev libxml2-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libfreetype6-dev libkrb5-dev libpq-dev libxml2-dev libxslt1-dev Please note that PHP-FPM can be used on both Apache and Nginx servers while FastCGI is available only for Apache servers. The additional PHP versions are installed in the /opt folder, so their installation does not affect the default PHP version

INSTALL PHP FPM HOW TO

This tutorial shows how to install PHP 7.1, 7.2, and 5.6 as FPM and FCGI mode alongside PHP 7.0 on a Debian 9 server. ISPConfig supports it to use multiple PHP versions on the same server, the PHP version can be selected for each website individually in the website settings. Major PHP versions are not 100% compatible with each other, so a website might require a newer or older PHP version to work. Debian 9 ships with PHP 7.0 as default PHP version.








Install php fpm