Nginx Proxy WordPress Configuration

If you need to proxy your WordPress blog via Nginx. This is the configuration I have recently used. Update <server-name> with your intended domain name. <ip-address> and <port> with the WordPress servers details. server {         server_name <server-name>;         gzip on;         gzip_min_length 10240;    …

Test Nginx Configuration

To test your Nginx configuration files, run the following command: It will indicate if your configuration file syntax is correct. Configuration Check Failure root@proxy:/etc/nginx/sites-enabled# nginx -c /etc/nginx/nginx.conf -t nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/test01:2 nginx: configuration file /etc/nginx/nginx.conf test failed Configuration Check Success root@proxy:/etc/nginx/sites-enabled# nginx -c /etc/nginx/nginx.conf -t nginx: the configuration…

CloudLinux LVE Manager displays no statistics (lveinfo)

Another little fix for a issue I came across this week relating to CloudLinux’s LVEstats2 I had a server running 100% CPU, and doing an huge amount of read/write I/O – causing issues with the SAN shelf. After looking at top, I noticed the LVE process (which collects usage data on users) was consuming most…

npm install : Killed (Ubuntu 16.04)

While installing packages via npm, it failed with just the message “Killed”. Automatically this triggers me to believe it is memory related. I was after all running the VM with only 1G memory. Fix npm install Killed So to resolve this, you need to create and extend a swap file. You can do this in…

cPanel Error:The system experienced the following error when it attempted to install the “OWASP ModSecurity Core Rule Set V3.0” vendor

I’ve noticed that since upgrading cPanel to v68.0.28 our ModSecurity Vendors have dropped off, and no longer available in the interface, and the rules are no longer available for Apache. When trying to add the OWASP Ruleset (Vendor) back, I get the following error message. Error:The system experienced the following error when it attempted to install…

OpenVZ – Hostnames & Systemd (ovzhostname.service)

The problem? For weeks, I’ve been battling with an issue with a new CentOS 7 template for cPanel and Plesk, I built for the OpenVZ hypervisor. Even when setting the HOSTNAME=<hostname> in the /etc/vz/<CTID>.conf the container still rebooted with the hostname which was used when the template was created. Meaning the new and correct hostname…

Comodo WAF: mod_security2: Failed to write to DBM file “/var/cache/modsecurity/ip”: Invalid argument

After seeing apache using all it’s threads, and connections not timing out as they should, I looked at the apache error_log and found the following error. Message: collection_store: Failed to write to DBM file “/var/cache/modsecurity/ip”: Invalid argument I not only saw this on cPanel servers, but on Plesk and plain LAMP (with mod_security and comodo…

Dovecot modseq_hdr.log_offset too large (Plesk)

Another quick fix post! Problem A mailbox for a specific user was not receiving mail on a postfix & dovecot on a Plesk server which I managed. The following error messages were being shown in the mail log: $ tail -f /var/log/maillog Apr 25 15:04:34 server01 dovecot: service=imap, user=dan@example.com, ip=[192.168.0.1]. Error: /var/qmail/mailnames/exampledomain.com/dan/Maildir/dovecot.index: modseq_hdr.log_offset too large…