Install FFmpeg on CentOS using yum

Install epel repository using

Method 1

Install scrpms repo

On CentOS 7

On CentOS 6

Install ffmpeg with

Method 2

On CentOS 7

Install ffmpeg with

See ffmpeg

Install PHP 7.2 in CentOS ISPConfig Server

First you need to install EPEL repo and REMI repo.

To install EPEL, run

To Install REMI repo, download RPM file for your OS from

For CentOS 6, run

For CentOS 7

Install PHP 7.2 with

Configure PHP-FPM


Replace 9000 with unused port, i used

Restart/Enable PHP-FPM

For CentOS 7

For CentOS 6

Add PHP Version in ISPConfig

Login to ISPConfig, go to

System > Additional PHP Versions > Add new PHP version

ISPConfig Add New PHP Version

On Next Page, enter name.

In “FastCGI Settings” tab, fill following details

In “PHP-FPM Settings” tab, add

Changing a Sites PHP Version in ISPConfig

Go to sites, click on site you need to change PHP version.

On this page, you need to select value for “PHP” and “PHP Version”. Once changed, you need to wait a minute for the version change to happen. This is done by cronjob, that run every one minute.

You can manually execute the script if you want.


Install ionCube Loader on CentOS 7

Go to

Download latest version of ionCube Loader

Find out PHP version you are using with command

ioncube php version

Here we have PHP version 5.6, now you need to find the available loaders for PHP 5.6 with command

The one we needed is

You need to copy it to PHP extension_dir directory.

To find location of extension_dir, run

For default php installation, it will be /usr/lib64/php/modules

So copy it the loader with command

Edit php.ini


At this point, php -m will show ionCube loader.

ioncube php module

Now restart web server with


Install PHP 7 on CentOS 6

Install EPEP repo with command

Next you need REMI repo, you can get it form

Install it with

You can search for PHP versions with command

Select PHP version

First install yum-utils

Now you can select required PHP version with command

Use remi-php70 for PHP 7.0, remi-php71 for PHP 7.1

Install PHP

To install PHP 7.2, run

PHP binary will be installed as php72, you can create a synlink if you need.

Enable PHP in Apache

Now restart apache

CentOS 6

Install GeoIP Apache Module in CentOS

To install GeoIP Apache module on CentOS 7, run

Now you need to configure Apache VirtualHost.

To block traffic, add following to your VirtualHost entry

In this example, traffic from CN, RU and A1 (stands for proxy IP) get redirected to specified URL.



firewall-cmd is used to manage firewall (iptables) in CentOS 7.

To allow HTTP and HTTPS traffic, run


Install PHP 7.2 on CentOS from yum

First you need to install Remi repository

Enable epel repo with

On CentOS 7

On CentOS 6

Enable PHP 7.2

To install PHP, run

Downgrading PHP version

if you ever want to change PHP version, lets say PHP 7.0, do the following. Remove current PHP

Disable PHP 7.2 repo.

Enable PHP 7.0 repo

Now install PHP as above.

PHp Binary

PHP cli will be installed in /usr/bin/php72, you can create a symlink if you want.


To install php-fpm module, run

To start php-fpm, run

See CentOS, php