Categories
Linux Servers Useful

Solved! WARNING: [pool ***] server reached max_children, consider raising it

If you encounter such an error in the php logs, then it is time to modify max_children. The php logs are usually located in /var/log/,  and in my case they are in /var/log/php7.4-fpm.log WARNING: [pool ********] server reached max_children setting (8), consider raising it Search for the file where the max_children variable is located, in my case […]

Categories
Linux Servers Useful Wordpress

Automatically Kill php-fpm or apache2 process with the High CPU in Linux

Once again I needed a solution to kill php-fpm or apache2 process with the high CPU usage and considering that I am not at the first similar problem I said that it is good to write it again somewhere, not to forget it. And this time the problem appeared with sites in Wordpress, it is a […]

Categories
Linux Servers Tools Useful

Disk Partitions Commands in Ubuntu/Debian Server – LINUX Tools

1. fdisk The fdisk command can display the partitions and details like file system type, model, zise. In Ubuntu 20.04 report the size of each partitions, but not in all Linux distributions! @ sudo fdisk -l Disk /dev/nvme0n1: 232.91 GiB, 250059350016 bytes, 488397168 sectors Disk model: Samsung SSD 970 EVO 250GB Units: sectors of 1 […]

Categories
Linux PHP Servers

Where is the php.ini configuration and enabled PHP modules? – Ubuntu Server

PHP configuration folders is usually in /etc/php/ and the installed version, in my case is in /etc/php/7.4/ The active version can be found with the following command in Ubuntu (ubuntu 20.04 for my case): @ php -version PHP 7.4.13 (cli) (built: Dec 10 2020 08:08:23) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) […]

Categories
Linux Security Servers Useful

Delete UFW Firewall Rules on Ubuntu & Debian Server – Linux

If you want to delete active rules (filters) from UFW – Uncomplicated Firewall – , find out that it is very simple and there are two methods to do this, but first of all you have to make sure that UFW is installed and active (enabled): @ sudo ufw status If the displayed result is […]

Categories
Servers Useful

HTTP headers used by Cloudflare when operating as a Reverse Proxy

CF-IPCountry – This header contains the country code of the home visitor, it is a two-character value that will contain the country code, if the country is unknown, it will be “XX” True-Client-IP – Provides the IP address of the client (visitor) for each request to the source, CloudFlare adds the True-Client-IP header. Cloudflare always […]

Categories
Servers Useful

Automatic HTTPS redirection for HTTP – htaccess,php,html or javascript

1). How to redirect HTTP to HTTPS from .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> The above code redirects any subdomain not just the base domain. A 301 redirect is a permanent redirect that tell search engines that URL has moved permanently. 2). How to Redirect With PHP if (empty($_SERVER[‘HTTPS’])) { […]

Categories
Servers Useful

How to use Cloudflare CF-IPCountry Hader in .htaccess !

The CF-IPCountry header is specific only to those who use Cloudflare in “Proxied” mode, so if you do not use Cloudflare, then this article is not useful! 1). How to block traffic from specific countries using CloudFlare If for any reason you want to block visitors from any country, the solution is extremely simple and […]

Categories
Apps Linux Servers Wordpress

Add ClassicPress WebApp to HestiaCP Control Panel – Ubuntu 20 Server

Recently I set up a VPS, and for the Control Panel I initially chose VestaCP, but after researching the forums a bit I came to the conclusion that it is preferable to use HestiaCP, a fork of VestaCP. I do not go into detail for all the reasons, but from online reviews it seems that […]

Categories
Apps Linux Servers

BitTorrent Clients on Linux Server – qBittorrent vs Transmission

Because I like to use programs that are open source I used Transmission BitTorrent client for almost 2 years and apparently I had no problems with it, everything went smoothly. I recently upgraded my NAS server for multimedia and instead of Transmission and I installed qBittorrent, I said to try something else, to see how […]