Install OpenLiteSpeed on CentOS

OpenLiteSpeed Benchmark

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 rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm For CentOS 8 rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm To install OpenLiteSpeed, run yum install openlitespeed Before you can install PHP, you need epel repository enabled with yum install epel-release Install PHP with … Read more

CentOS 7 VestaCP Upgrade PHP to 7.x

On CentOS 7 VestaCP install PHP 5.6 by default. This is very old version of PHP. To upgrade PHP to latest version 7.x, you can install remi repo. Install EPEL repo yum install -y epel-release Install yum-utils yum install -y yum-utils Install remi repo rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-7.rpm Select PHP version you need yum-config-manager –enable remi-php73 … Read more

CentOS 7 Grub 2

CentOS

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 server grub rescue prompt Back to grub

CentOS 8

CentOS 8 is a short-lived Linux distribution based on Red Hat Enterprise Linux (RHEL). Due to a change in policy, CentOS 8 had an early end of life on December 31, 2021. If you are using CentOS 8, you can easily migrate to other RHEL based distributions like Alma Linux, RockyLinux or Oracle Linux. CentOS … Read more

Run Apache from command line

To start Apache from command line with out using a systemd service file or init script, run /usr/sbin/httpd -DFOREGROUND To stop Apache, press CTRL+C. You can keep it running by running it inside screen or tmux. See Apache

Apache Increase FD limit

On CentOS 7 sevrer running apache, when try to install plugin in WordPress admin area, i get error Installazione fallita: Il download non รจ andato a buon fine. cURL error 35: Process open FD table is full This is due to Apache File Descriptor Limits. To see current Limits, use following PHP script

Download RPM package from yum repository

To download RPM file from yum repo, you need to install yum-utils package. yum install -y yum-utils Now you can use command yumdownloader –resolve –destdir=/path/ PACKAGE_NAME Example yumdownloader –resolve –destdir=/root/yum/ nginx This will download and store all rpm files in /var/yum folder. –resolve will resolve dependency and download them. This will be helpful if you … Read more

Zimbra Mail Server CentOS firewall settings

On CentOS 7 server with firewalld running, used following command to open ports used by Zimbra Mail Server. firewall-cmd –zone=public –permanent –add-service=http firewall-cmd –zone=public –permanent –add-service=https firewall-cmd –zone=public –permanent –add-service=ssh firewall-cmd –zone=public –permanent –add-port=110/tcp firewall-cmd –zone=public –permanent –add-port=11211/tcp firewall-cmd –zone=public –permanent –add-port=143/tcp firewall-cmd –zone=public –permanent –add-port=25/tcp firewall-cmd –zone=public –permanent –add-port=443/tcp firewall-cmd –zone=public –permanent –add-port=465/tcp firewall-cmd … Read more

CentOS add IP Address

To add IP address on a Linux server, first find name of your network interface. This can be done with command ip link In most case, it can be enp3s0 or eth0, if you have more than one network card, this may be differnt, in such case, you need to identify which network interface you … Read more

Install CentOS Web Panel (CWP)

CentOS Web Panel (CWP) is a free hosting control panel for CentOS servers. To install CentOS Web Panel, run CWP use same Ports as popular Cpanel control panel. Admin Panel CWP Admin Panel available on following URL. You can login with system user “root” and its password. User Panel Webmail On CWP server, you can … Read more