Install REDIS with Plesk Onyx

This is a quick guide on how to install both the Redis PHP extension as well as the daemon via SSH on a Plesk Onyx webserver.

REDIS provides memory caching for frequently accessed objects.


How to install the plugin:

Log in to the command line via SSH as the ROOT user and run the following commands line-by-line.


yum groupinstall 'Development Tools'
yum install tcl wget

Debian and Ubuntu

apt-get install build-essential
apt-get install tcl wget

Download and Compile latest Redis 4:

tar xvzf redis-stable.tar.gz
cd redis-stable/
make distclean
make test
make install

Install your Redis-server Service:

cd utils/

Allow memory overcommit

This will allow REDIS to use more memory than it has been allocated by Plesk if required.

echo "vm.overcommit_memory = 1" >>  /etc/sysctl.conf  && sysctl  -p

Disable transparant_hugepage

echo never > /sys/kernel/mm/transparent_hugepage/enabled

Start and test your Redis service

This will ensure REDIS starts when your server boots and checks to ensure the installation completed successfully.

systemctl start redis_6379
systemctl status redis_6379

Install Webmin on CentOS 7


To get started, login your remote server and follow the steps below:

First, create a new file webmin.repo in /etc/yum.repos.d/ :

vi /etc/yum.repos.d/webmin.repo

and paste below line:

name=Webmin Distribution Neutral

Install webmin GPG key using below command.

rpm --import

Now, update the repositorys:

yum check-update

Install webmin:

yum install webmin -y

Start the service and make it start automatically

chkconfig webmin on
service webmin start

By default, Webmin will listen on port 10000. Enable webmin Port:

firewall-cmd --add-port=10000/tcp

Now, open in your browser and enter yor root username and password



Let’s login to webmin.

This can be done from http://yourserverIP:10000 or https://yourserverIP:10000 (add a security exception)

First create a directory for each site.

Let’s create the folder with the website domain name.

From webmin is pretty fast. Just go to: Others/File Manager (This require java in your browser) and create the folder under /var/www/html using the “” .

mkdir -p /var/www/html/

Once you have the folder created. Go to Servers/Apache Web Server (please make sure you “Start Apache” at the top right corner) and click on the tab named “Create Virtual Host”.

– You can leave it at “Any address” for now.

 – Leave the next boxes checked.

 – Set the port number to 80.

 – In “Document  Root” click on the button at the right of the box and it will open a pop up windows for you to browse the server’s folders. Make sure you browse to /var/www and the folder you created. Click OK to return to the “Create Virtual Host” screen and there you must see the path to the folder you created for this website.

 – Check “Allow access to this directory”

 – Set the server Name to the domain you are creating this host to without the “www”

 – Add virtual server to file. Leave it on “New file under…”.

 – Click on “Create Now”

 It the Virtual Host has been created then we need to make a little more changes to finish this.

Click on the Virtual Host you just created. This will open the “Virtual Server Options page.

Click on “Edit Directives” and under the line “ServerName”, insert a line that says the following:


This is an example of how this file must be:

“DocumentRoot /var/www/
<Directory /var/www/>
allow from all
Options +Indexes

You will be taken back to the “Virtual Server Options page”

At the top right corner click on “Apply Changes”.


Go to Servers, and then click on “BIND DNS Server”. If you can’t see it then it needs to be installed .

Start BIND by clicking at the top right option on your browser.

Creating a Master Zone.
1) Click on “Create master zone”
2) Enter the domain without the www into the “Domain name / network” box.
3) For the master server, type in the domain name as well.
4) You can check the “Create NS record” box if you’d like.
5) Enter your email address in the appropriate box.
6) Type in the IP address of the server (The external IP address provided by your ISP).
7) Click “Create”

Creating A records.
1) Click on “Address”
2) Leave the name field blank, and type in the IP address.
3) Click Save.
(The following is dependent on what you want to run the server for.)
4) Type in www for the name, and type in the IP address.
5) Click Save.
6) Type in mail for the name, and type in the IP address.
7) Click Save.
8) Type in ftp for the name, and type in the IP address.
9) Click Save.
10) Type in ns1 for the name, and type in the IP address.
11) Click Save.
12) Type in ns2 for the name, and type in the IP address.
13) Click Save.
14) At the bottom, click “Return to Record Types”

Creating NS records.
1) Click on Name Server
2) For the zone name, type in the domain name (Put a . at the end; for example:
(Notice the ending period… DO Not Forget that)
3) For the name server, type in
(Also notice the period)
4) Click Save.
5) Type in
6) Click Save.
7) Click “Return to Record Types”

Creating an MX Record.
1) Click Mail Server (If you want a mail server).
(Make sure you put the period at the end;
2) For the name, type in the domain.
3) For the mail server, type in
4) Set the priority to what you like… 10 is usually default.
5) Click “Return to Record Types”


Install proftpd  via Un-used Modules in Webmin

After that go to  System/Users and Groups, and select “Create a new user.

Provide a username for what is to be the FTP account.

As “Home directory” select “Directory” and press the button to show the folders in your server.
Select the /var/www//html/ folder you previously created or whatever folder you want the ftp account to login into.

Select the “Shell” /bin/false

Select “Normal Password” and provide a unique, complex password for the account

Select “New Group” and write down the same name as the user you’re creating


Create home directory
Copy template files…
Create user in other modules
Click on “Create”

It will complete the process and take you back to the users list page.

Go back to the SSH console and run the following:

#chown username /var/www/html/ 

(folder you previously created )

Now start your favorite FTP Client en try your new user.

Install mcrypt and PHP upgrade to 5.3.3

On CENTOS5 upgrade php to 5.3.3 and installed mcrypt for the use of Magento.
Here are the commands to install it all

sudo yum update

upgrade PHP 5.3:

php -v

list command to quickly get information:

yum list installed | grep php | cut -d' ' -f1

checked to make sure that those packages were available for php53:

yum search php53 | cut -d' ' -f1 | grep php

Stop webserver

sudo service httpd stop

remove the old PHP packages:

sudo yum remove php php-cli php-common php-devel php-gd php-mbstring \
 php-mysql php-mcrypt php-pdo php-pear php-pgsql php-xml php-xmlrpc

Installed the available replacement packages:

sudo yum install php53 php53-cli php53-common php53-devel php53-gd \
 php53-mbstring php53-mysql php53-pdo php53-pgsql php53-xml php53-xmlrpc

Install PHP mcrypt

 sudo yum install php53-devel libmcrypt-devel
 tar xf php-5.3.3.tar.gz
 cd php-5.3.3/ext/mcrypt/
 make test
 sudo make install

Now all we have to do is set up the mcrypt.ini file so that the mcrypt extension loads with PHP. This file needs to reside at /etc/php.d/mcrypt.ini.

 echo -e "; Enable mcrypt extension module\" | \
 sudo tee /etc/php.d/mcrypt.ini

Install PHP Pear

sudo php go-pear.phar 
sudo service httpd start

Problems: warning: LT_AC_PROG_SED is m4_require’d but is not m4_defun’d LT_AC_PROG_SED is required by…
acinclude.m4:2683: PHP_CONFIG_NICE is expanded from… the top level

Files & libtool.m4 missing from /usr/share/alocal

Find the files of the server

$ find / -name

result: /usr/lib/php/build/

$ find / – name libtool.m4

result: /usr/lib/php/build/libtool.m4

Navigate to the alocal

cd /usr/share/alocal

Create symlinks for the found files

ln -s /usr/lib/php/build/
ln -s /usr/lib/php/build/libtool.m4 libtool.m4

all done

Resume process with alocal command