How to install or upgrade to PHP 7 on CentOS 7

Instructions The following guide will either upgrade your current PHP 5 to PHP 7 or will  install new PHP 7 on your CentOS system. Check your current PHP version ( if applicable ): # php –version PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) … Read more

Removing unused kernels on CentOS Linux

Foreword Under a normal execution of the OS, the number of installed and unused kernels does not affect server’s performance. However, removing old unused kernels will free some disk space. If your server is configured with a separate /boot partition and you run into a issue with low disk space, removing unused kernels will give … Read more

Installing postfix on CentOS

Install sasl: yum install cyrus-sasl-plain -y Install Postfix with the following command: yum install postfix Open or create the /etc/postfix/sasl_passwd file, using your favorite text editor vi /etc/postfix/sasl_passwd modify with the following [mail.isp.example]:587 username:password create the hashed file with the following command postmap /etc/postfix/sasl_passwd give the right permissions chown root:root /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db chmod 0600 /etc/postfix/sasl_passwd /etc/postfix/sasl_passwd.db … Read more

Addons to CentOS 7 minimal

Provides ifconfig with yum install net-tools* Provides mail command yum install mailx Provides mutt mail agent yum install mutt Provides midnight commander yum install mc Provides wget yum install wget    

Reset the MariaDB Root Password

If you forget your root MariaDB password, don’t worry and be sad because it can be reset easily with this tutorial. Stop the current MariaDB server instance, then restart it with an option to not ask for a password: systemctl stop mariadb mysqld_safe –skip-grant-tables & Reconnect to the MariaDB server with the MariaDB root account: … Read more

Installing httpd on centos 7

Install Apache: First, clean-up yum: yum clean all As a matter of best practice we’ll update our packages: yum -y update Installing Apache is as simple as running just one command: yum -y install httpd Allow Apache Through the Firewall Allow the default HTTP and HTTPS port, ports 80 and 443, through firewalld: firewall-cmd –permanent … Read more

Installing MariaDB on CentOS 7

The version of the MariaDB server provided in default CentOS repositories is version 5.5. Follow the steps below to install and secure MariaDB 5.5 on CentOS 7: Install the MariaDB package using the yum package manager: yum install mariadb-server 2. Once the installation is complete, start the MariaDB service and enable it to start on … Read more

Installing php 5.6 on CentOS 7

enable EPEL and Remi repository to your CentOS 7 system using the commands below. # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm install yum utils # yum install yum-utils The most important program provided by yum-utils is yum-config-manager, which you can use to active Remi repository as the default repository for installing various PHP versions. For example, if you want to install PHP … Read more