Skip to main content

Posts

How to Upgrade PHP 5.6 to PHP 7.3.x Stable Release on CentOS 7 for VestaCP ?

In this tutorial I’ll show you how to upgrade from PHP 5.6.x to PHP 7.3.x , I’ve tested on production server before writing this tutorial and its just working fine without any issue.  Now go to yum repo directory and Check  remi repo is available for php73 Note: If you want use Presta 1.7.5 then use PHP 7.2 , Details : Link 1 For Apache : update to PHP 7.2.x & MariaDB 10.1 For NGINX : update to PHP 7.2.x & MariaDB 10.1 Go to Yum Directory: # cd /etc/yum.repos.d # ll Now install yum-utils, a group of useful tools that enhance yum’s default package management features. Yum-utils can be used for manipulating package repositories and additional package management operations such as enabling or disabling packages without any manual configuration by a system administrator. You can install it as follows: # yum install yum-utils In this step, you need to enable Remi repository using yum-config-manager utility, as the default repository for installing PHP. # yum...

How to Upgrade MariaDB 5.5 to MariaDB 10.1 Stable Release on CentOS 7 for VestaCP ?

By Default VestaCP will install old base version of Mariadb 5.5 when installing on Centos 7 . I am using VestaCP with Version: 0.9.8 (x86_64), Release: 23 5.5.60-MariaDB - MariaDB Server PHP version: 5.6.40 In this tutorial we are going to show you how to upgrade MariaDB 5.5 to MariaDB 10.1 latest stable version. You will need to have root access to the machine, where you will be performing the upgrade. Note that if you are running earlier version of MariaDB the recommended course of upgrading is by going through each version. For example MariaDB 5.1 -> 5.5 -> 10.1. Clean all yum cache & update yum # yum clean all # rm -rf /var/cache/yum # yum update -y Step 1: Backup or Dump All MariaDB Databases As always when performing an upgrade creating backup of your existing databases is important. You can either dump the databases with command such: # mysqldump -u root -pPassbMUs1Pbu --all-databases > /tmp/all-database.sql Or alternatively, you can stop the M...

How to Install High Performance VestaCP Hosting Panel with NGINX+php-fpm?

Vesta Control Panel (VestaCP) is an open source hosting control panel that can manage multiple websites, create and manage email accounts, create and manage FTP accounts. Also, manage MySQL database and DNS records. The Vesta Control panel can be installed on a RHEL, CentOS, Debian and Ubuntu server. For a smooth installation you will need clean system "minimal install base" . If installation fails you can force it using --force option. If you want to get full list of available options run installer with --help argument. Installer categorizes servers into 4 groups. Micro - less than 1Gb of RAM.       - Do not support phpfcgi template Small - less than 3Gb of RAM.        - Do not support phpfcgi template Medium - less than 7Gb of RAM.   - Support  Antispam and Antivirus packages Large - more than 7Gb of RAM.     - Support  Antispam and Antivirus packages Antispam and Antivirus packages are onl...

VestaCP Installation Perquisite : Part 7 Install Latest EPEL Release

At First, Update your Base Repository ,then install latest EPEL # yum check-update # yum update -y Reboot The Machine # reboot # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* # yum -y install epel-release Run Update again & Check # yum update -y # yum repolist If you have getting any error then run: # yum clean all # rm -rf /var/cache/yum # yum update -y # yum repolist By default CentOS 7 uses postfix mail server. So remove Postfix completely because Vesta uses Exim4 mail server . also remove sendmail # systemctl stop postfix # yum remove postfix -y # yum remove sendmail -y If you want use nginx web-server , then remove # systemctl stop httpd # yum remove httpd –y

How to Set or Change Time Zone in Ubuntu 16.04 LTS / CentOS 7 Linux ?

Server Time Zone is very important for any Internet Services. My Time Zone is Asia/Dhaka . Follow the steps to configure your Time Zone. CentOS 7: # timedatectl list-timezones # timedatectl list-timezones | grep Asia # mv /etc/localtime /root/localtime.old # ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime # timedatectl set-ntp yes # timedatectl set-timezone Asia/Dhaka # systemctl restart systemd-timedated.service # timedatectl Local time: Wed 2018-10-31 11:15:50 +06 Universal time: Wed 2018-10-31 05:15:50 UTC RTC time: Wed 2018-10-31 05:15:50 Time zone: Asia/Dhaka (+06, +0600) NTP enabled: yes NTP synchronized: yes RTC in local TZ: no DST active: n/a # hwclock Wed 31 Oct 2018 11:21:37 AM +06 -0.084209 seconds Ubuntu 16.04 LTS: # timedatectl list-timezones # timedatectl list-timezones | grep Asia # mv /etc/localtime /root/localtime.old # ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime # timedatectl set-ntp yes # timedatectl set-...

VestaCP Installation Perquisite : Part 5 Configure Chrony NTP server

Accurate time keeping is important for a number of reasons in IT. This setup is the best practice that helps with problem diagnosis and informal server monitoring. I am living in Asia that's why i'm using this pool. Install Chrony and Configure The NTP server . # yum -y install chrony # vi /etc/chrony.conf #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org iburst #server 3.centos.pool.ntp.org iburst server 0.asia.pool.ntp.org iburst server 1.asia.pool.ntp.org iburst server 2.asia.pool.ntp.org iburst server 3.asia.pool.ntp.org iburst add the network range you allow to receive requests allow 127.0.0.1 :x (save & quit) Reminder: We have disabled firewalld, So we will add the port 123/udp after the VestaCP installation using Iptables. Start the services and enable it  # systemctl start chronyd # systemctl enable chronyd # chronyc sources # timedatectl set-ntp yes # systemctl enable systemd-timedated.service...

VestaCP Installation Perquisite : Part 4 Disable Network Manager & Set Static IP

This Tutorial describes how to disable the Network Manager service. The Network Manager service automates the network's settings and disrupts connections to the IP addresses that reside in the ipaliases module. We recommend that you disable the Network Manager service and enable the network.service service before you install VestaCP hosting Control Panel. # systemctl stop NetworkManager # systemctl disable NetworkManager # nmcli device status # systemctl list-unit-files | grep NetworkManager # systemctl enable network.service # systemctl restart network.service Reboot The Machine # reboot I have two NIC in my VPS, So Add the below parameter in /etc/sysconfig/network-scripts/ifcfg-eXXX of interfaces that are managed by NetworkManager to make it unmanaged. NM_CONTROLLED="no“ # vi /etc/sysconfig/network-scripts/ifcfg-ens33 BOOTPROTO=static NM_CONTROLLED=no ONBOOT=yes #DOMAIN=datahead.biz HOSTNAME=host.datahead.biz :x (save & quit) # vi /etc/sysconfig/network-scri...