Install OpenLiteSpeed on CentOS
To install OpenLiteSpeed web server on CentOS, install repository for your CentOS version For CentOS 6 rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm For CentOS 7…
To install OpenLiteSpeed web server on CentOS, install repository for your CentOS version For CentOS 6 rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm For CentOS 7…
Hostname is a sub domain. To set hosting, edit file vi /etc/hosts Add SERVER_IP_HERE HOSTNAME.yourdomain.com HOSTNAME Example 72.21.51.194 server32.serverok.in server32 Now run…
On CentOS 7 VestaCP install PHP 5.6 by default. This is very old version of PHP. To upgrade PHP to latest version…
To regenerate grub config on CentOS 7, run grub2-mkconfig -o /boot/grub2/grub.cfg If you use UEFI, run grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg OVH CentOS 7…
To reinstall a package with yum, run yum reinstall PKG_NAME Example yum reinstall kernel
To install Nginx web server on CentOS 8, create repo vi /etc/yum.repos.d/nginx.repo Add [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 Install nginx with…
To install PHP 7.4 on CentOS 7, first install remi repository. yum install epel-release -y rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm Set PHP 7.4 as…
CentOS 8 comes with PHP 7.2. To install PHP 7.3, you need to enable remi repo. You can download remi-release rpm file…
First disable SELinux by editing file vi /etc/selinux/config Find SELINUX=enforcing Replace with SELINUX=disabled Now restart the server. reboot Verify SELinux is disabled…
Create a directory for Vagrant project mkdir -p ~/vagrant/centos8 cd ~/vagrant/centos8 vagrant init generic/centos8 This will create a file with name “Vagrantfile”…
When login to CentOS 8 using SSH, you get a message asking you to enable web console. Activate the web console with:…
dnf is package manager for RHEL/CentOS 8. This is improved version of yum. To search for a package, use dnf search PACKAGE_NAME…