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

OpenLiteSpeed

OpenLiteSpeed Benchmark

OpenLiteSpeed is an open-source version of the popular commercial web server LiteSpeed. OpenLiteSpeed contains all of the essential features found in LiteSpeed Enterprise. You can get OpenLiteSpeed from https://openlitespeed.org Here is a benchmark from the OpenLiteSpeed website that compares OpenLiteSpeed with Nginx. OpenLiteSpeed configuration file To start/stop/restart, use OpenLiteSpeed web server stores cache in directory … Read more

Linux whois command

Linux whois command is used to find who owns a domain or IP address. To see information about a domain, use whois DOMAIN_NAME_HERE Example To find information about an IP address, use whois IP_ADDR_HERE Example Related Posts Linux Commands

Set hostname in 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 echo HOSTNAME.yourdomain.com > /etc/hostname Example echo server32.serverok.in > /etc/hostname Run /bin/hostname -F /etc/hostname Edit file vi /etc/sysconfig/network Edit or add HOSTNAME entry NETWORKING=yes HOSTNAME=HOSTNAME.yourdomain.com Reboot the server with reboot You can verify hostname … Read more

Check if HTTP/2 enabled using curl

To see if a web site have HTTP/2 enabled, you can run curl -sI SITE_URL_HERE -o /dev/null -w ‘%{http_version}\n’ If you see 2, the site have HTTP/2 enabled. Example boby@sok-01:~$ curl -sI https://serverok.in/ -o /dev/null -w ‘%{http_version}\n’ 2 boby@sok-01:~$ Here is a site with no HTTP/2 boby@sok-01:~$ curl -sI http://ok.serverok.in/ -o /dev/null -w ‘%{http_version}\n’ 1.1 … Read more

wget print content to screen

wget is used to download files. When you use wget to run cronjob, it creates a lot of files. To avoid this, you can use the wget option -qO- If you want to use wget, you can use -O option, that speicify file to save. You can use -O /dev/stdout, so downloaded file content will … 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

Squid Proxy Server allow connection to all ports

By default Squid proxy only allow out going connection to white listed ports that are used commonly. When you visit a site with non standard ports with Squid proxy, it won’t work. To fix this, edit squid configuration file vi /etc/squid/squid.conf Find acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port … Read more

Elasticsearch

ElasticSearch Install Install Elasticsearch 7 on Ubuntu for Magento 2.3 Install Elasticsearch on Debian for Magento Install elasticsearch on CentOS 7 How to Install Elasticsearch in Docker ElasticSearch Errors How to auto restart ElasticSearh service on failure Elasticsearch failed to start on CentOS 7 elasticsearch insufficient memory Auto restart elasticsearch with monit The vm.max_map_count kernel … Read more

Install Elasticsearch 6 on Debian for Magento

To install Elasticsearch for Magento on Debian, install Java 1.8 and apt-transport-https apt install -y openjdk-8-jdk-headless apt install -y apt-transport-https Add key wget -qO – https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add – Add repository echo “deb https://artifacts.elastic.co/packages/6.x/apt stable main” | tee -a /etc/apt/sources.list.d/elastic-6.x.list Install Elasticsearch apt update apt install -y elasticsearch Enable and start Elasticsearch systemctl enable … Read more