PHP-FPM Limit Tuning Basics for Max Children
Posted by Cătălin on Fri, 10 Mar 2023This resource provides information about tuning the Max Children limit for PHP FPM.
Checking the PHP-FPM Logs for Max Children Limit Hits Access your server as the root user via Terminal or SSH Run the following command to find the FPM logs: find /opt/cpanel/ea-php*/root/usr/var/log/php-fpm/...
Read More...code
CSF SSH Command Line Commands
Posted by Cătălin on Fri, 3 Jan 2020ConfigServer Firewall (CSF) SSH command line commands in a "cheat sheet" format.
Command Description Example csf -e Enable CSF ...
Read More...code
Renew Let's Encrypt certificate
Posted by Cătălin on Wed, 27 Nov 2019Let's encrypt error certificate install error - “Client with the currently selected authenticator does not support any combination of challenges”
certbot --authenticator standalone --installer apache -d your-domain.com \ --pre-hook "systemctl stop apache2" \ --post-hook "systemctl start apache2"
Read More...code
How to add $PATH variable value to Debian
Posted by Cătălin on Mon, 2 Sep 2019How to place composer's system-wide vendor bin directory in your $PATH, so the laravel executable can be located by your system.
To set the $PATH permanently, set the path in your startup file. This directory exists in different locations based on your operating system; however, here is how you can do it in Debian. Edit the...
Read More...code
Bash Script Check is Apache is Down
Posted by Cătălin on Wed, 25 Apr 2018Bash script to check if Apache server is up and running. If server is down, we will do a restart
#!/bin/bash if curl -s --head 'https://your-domain.com/' | grep "200 OK" > /dev/null then echo "Apache server is up!" > /dev/null else echo "Apache server is down!" /etc/init...
Read More...code
Install mod_pagespeed on EasyApache4
Posted by Cătălin on Sat, 14 Apr 2018How to install google mod_pagespeed on EasyApache4 - WHM/Cpanel
Installation Procedure (CentOS): yum install rpm-build cpio ea-apache24-mod_version wget https://github.com/pagespeed/cpanel/raw/master/EA4/ea-apache24-mod_pagespeed-latest-stable.src.rpm rpmbuild...
Read More...code