Upgrade to PHP 5.6 in VestaCP CentOS

Default VestaCP instillation for CentOS 6.7 comes with PHP5.4 . 1. Install the REMI and EPEL RPM repositories wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && rpm -Uvh remi-release-6*.rpm 2. Edit /etc/yum.repos.d/remi.repo vi /etc/yum.repos.d/remi.repo Under the section that looks… Continue Reading

How to Fix error: realpath(): open_basedir restriction in effect

Fix error: realpath(): open_basedir restriction in effect   During Magento installation on VestaCP CentOS you may have problem: [error] PHP Warning:  realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/admin/web/mydomain.com/public_html:/home/admin/tmp) in /home/admin/web/mydomain.com/public_html/vendor/magento/framework/Filesystem/DirectoryList.php on line 99 For… Continue Reading

How to Remove CentOS Old Kernels

How to Remove CentOS old kernels or  CentOS freeing up disk space 1. Check currently list of  installed Linux kernels with RPM command #rpm -q kernel kernel-2.6.32-573.12.1.el6.i686 kernel-2.6.32-573.18.1.el6.i686 kernel-2.6.32-573.22.1.el6.i686 kernel-2.6.32-573.26.1.el6.i686 kernel-2.6.32-642.1.1.el6.i686   2. Install Install YUM Utilities Package #yum install… Continue Reading