centos 7 php memcache

Install memcached on CentOS 7

To install memcached on CentOS 7, run

Set memcached to start on boot

Start memcached with

Installing PHP Module

You need remi repository installed, that provide memcached module for all versions of php they support.

For PHP 5.6, run

Now phpinfo() will show

centos 7 php memcache

See memcached

Adding IP Range in CentOS 6

To add an IP range in CentOS 6 server, create file


Replace IP with your actual start and end IP.

Restart network service with


Install MySQL 8 on CentOS, RHEL 6/7

To Add MySQL yum repository to your server, go to


Download the rpm file available.

For RHEL/CentOS 7

For RHEL/CentOS 6

Installing MySQL Server

Stop/Start MySQL

To stop/start MySQL, use service name “mysqld”.

MySQL 8 root Password

When MySQL first starts, it create a random password and store in MySQL log file. To find the MySQL root password, run

This default password don’t allow you to do anything, so login to MySQL with this password and set a secure password for root.

MYSQL_ROOT_PASSOWRD – replace it with you secure new MySQL root password.

Installing Older Version of MySQL

When you add MySQL repository, it activate latest version by default. If you want older version, say 5.7, you need to activate it.

To see available repository, run

To disable MySQL 8 repository, run

To enable MySQL 5.7 repository, run

Now installing MySQL server will install MySQL 5.7 instead of latest version.



chkconfig is a command available in CentOS 6 to set a service start on boot.

To start lighttpd on boot run.

chkconfig command list all services and its run levels.

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

ISPConfig Add New PHP Version

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 https://rpms.remirepo.net

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.


ioncube php version

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 ioncube_loader_lin_5.6.so

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