• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Apache loading files randomly

green3d

New Pleskian
Good day, what can be caused by Apache loading files randomly? I am posting the logs below. The problem has recently appeared on new pages, and the browser is displaying the message "No input file specified."
2023-10-24 18:08:01 Error 194.33.77.249 404 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 1.49 K Apache access 2023-10-24 18:08:02 Error 194.33.77.249 404 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 1.49 K Apache access 2023-10-24 18:08:03 Error 194.33.77.249 404 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 1.49 K Apache access 2023-10-24 18:08:13 Access 194.33.77.249 200 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 32.4 K Apache access 2023-10-24 18:08:14 Error 194.33.77.249 404 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 1.49 K Apache access 2023-10-24 18:08:16 Access 194.33.77.249 200 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 32.4 K Apache access 2023-10-24 18:08:17 Access 194.33.77.249 200 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 28.3 K Apache access 2023-10-24 18:08:18 Access 194.33.77.249 200 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 28.3 K Apache access 2023-10-24 18:08:19 Error 194.33.77.249 404 GET /php2.php HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0 5.62 K Apache access
 
In your example, Apache loads the same file php2.php (and fails as that does not exist). Could you please provide a more accurate description what you mean by "random"? Exact steps to reproduce would help to understand this better.
 
As you can see in the logs I reload this page in the browser and sometimes it does not load which manifests itself in the browser with the message "No input file specified." The same thing happens when I load a simple text file such as test.txt. However, if I force Ngnix to load this text file in the Plesk settings, it loads every time. Could this be due to some limits? There are more than 1700 domains on this server.
 
2023-10-26 09:47:01Accessx.x.x.x304GET /test.txt HTTP/1.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
297 Apache access
2023-10-26 09:47:03Accessx.x.x.x304GET /test.txt HTTP/1.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
4.42 KApache access
2023-10-26 09:47:03Errorx.x.x.x404GET /test.txt HTTP/1.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
4.54 KApache access
2023-10-26 09:47:05Errorx.x.x.x404GET /test.txt HTTP/1.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
425 Apache access
2023-10-26 09:47:05Accessx.x.x.x200GET /test.txt HTTP/1.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
492 Apache access
 
- Are you using Nginx "Proxy mode", so that Apache always delivers the file (should always deliver it)?
- Do you have enough disk space an inodes on the server?
- Is this a dedicated server or a virtual server?
- Do you have a physical file system or is the file system provided by the virtualization?
 
- Are you using Nginx "Proxy mode", so that Apache always delivers the file (should always deliver it)?
- Do you have enough disk space an inodes on the server?
- Is this a dedicated server or a virtual server?
- Do you have a physical file system or is the file system provided by the virtualization?
- Yes
- There is over 2TB of disk space free.
- Dedicated server.
- Physical file system
 
"Web server Configuration Checker" reports the following warning
Code:
Checking for nginx ULIMIT value

  1763 domains have been found on server. Problem with nginx default
  limit for open files is possible.
  Please check https://support.plesk.com/hc/articles/213938485 for
  details ........................................................... [WARNING]
On my server it looks like this:
Code:
grep 'Max open files' /proc/$(cat /var/run/nginx.pid)/limits
Max open files            131072               131072               files
I don't understand where this warning from Plesk comes from
 
The number of allowed file handles can indeed cause problems. However, it is not enough to just set a high maximum in Nginx. You also need to tell the system about it and maybe other services like Apache.
 
What settings do you suggest to change, and what are your recommendations is such a number of domains?
 
Back
Top