For PHP 7.1 : (on Centos 7) rpm -Uvh Īfter that you are ready to install PHP : yum install php71w-fpm php71w-opcache php71w-mysqlnd php71w-mcrypt php71w-gd php71w-xml Configure php-fpmĪfter the installation its time to finetune our setup a bit. I use webtatic as repository and have found no issue’s so far. Whatever version you chose, either should work. This version is no longer supported, on top of that, its pretty clear that PHP 7+ is faster and less resource hungry. Installing PHP (lem P) is done using the php-fpm package (PHP FastCGI Process Manager) now sadly in the epel-release the version is super outdated at this writing : PHP 5.4. You could use webtatic to install nginx This is similar to how I am going to install php-fpm : rpm -Uvh įor more detailed instructions, and dynamic modules, see there blogpost. Make install 4) Install Nginx from external repo Yum install gcc pcre-devel zlib-devel openssl-devel Notice that there is a difference between mainline and stable version cd /opt Yum install nginx 2) Install Nginx from binary packages (recommended method) yum install epel-release All methods will result in a working setup. A third option is to use external repository’s. However if you wan’t the newest features this is the better option. So you need to install epel-release if you wish to go that route, at the time of writing, the available package is 1.10.2.This is the fastest option and large chance it will be updated more frequently then when you manually download and compile it. First option is to use packages from the vendor, this however leaves you with a older version of _Nginx. _In the base repository’s of Centos 7, _Nginx _is not included. There are generally three options to install Nginx. I however never made an article about it, so here it is, long overdue. (pronounced Engine X, hence the E in LEMP). Enough articles have been written on why Apache or Nginx are better in certain situations, but I like the clean way of configuration that Nginx uses. The well known, good’ol LAMP stack has slowly made place for a LEMP stack in many of my configurations.
0 Comments
Leave a Reply. |