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

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

Monitor Server with Prometheus and Grafana

grafana dashboard

Prometheus is used an open source software, that can collect metrics and alerting. You can download latest version oof Prometheus from https://prometheus.io/download/ Create a user useradd –no-create-home –system –shell /bin/false prometheus Download and Install prometheus cd /usr/local/src wget https://github.com/prometheus/prometheus/releases/download/v2.31.0-rc.1/prometheus-2.31.0-rc.1.linux-amd64.tar.gz tar xvf prometheus-2.31.0-rc.1.linux-amd64.tar.gz cd prometheus-2.31.0-rc.1.linux-amd64 mv prometheus /usr/local/bin/ mv promtool /usr/local/bin/ mkdir /etc/prometheus mkdir /var/lib/prometheus mv … Read more

PHP Script to monitor Apache/php-fpm

I moved a web site to new dedicated server. But for some reason, php-fpm crashed. I increased the max_children settings, but it happend again. I do not want down time while i am investigating the problem. So i created a PHP script, that will check if site is working or not. Script have 2 part. … Read more

Install SSL for ISPConfig Control Panel

ISPConfig

To add SSL for ISPConfig control panel, add the server hostname as a website in ISPConfig and enable the LetsEnrypt checkbox. You can find the server hostname with the command hostname -f That will get SSL installed for your hostname. You need to point the server hostname to the server’s IP address to get SSL … Read more

Apachectl

apachectl command is used to interact with Apache web server. To see Apache status apachectl status To list virtualhost info, run apachectl -t -D DUMP_VHOSTS List VirtualHost + server config. apachectl -S To list loaded apache modules, run apachectl -M Related Posts Apache Web Server apachectl status www-browser not found

VestaCP SSL for mail server

VestaCP Free Hosting Control Panel

VestaCP install self signed SSL for mail server by default. To install valid SSL, login to VestCP, go to sites. You will see a site with your sites hostname. If you don’t see it, create a site with your server hostname. Make sure DNS edited so hostname resolve to server IP. Now you should be … Read more