PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 57134520 bytes) If you see the following line in your Nginx error log, it means PHP reached the 128MB memory limit. You can try restarting PHP-FPM to fix the error temporarily, but it’s better to start tuning PHP-FPM/MySQL/MariaDB for faster performance. This means the upstream like PHP-FPM/MySQL/MariaDB isn’t able to process the request fast enough. If you have set up a page cache such as Nginx FastCGI cache, you need to clear your server page cache. For example, you may have added an unnecessary return 301 directive in the https server block to redirect HTTP to HTTPS connection. This means you have configured Nginx redirection too many times. It might tell you that “secure connection failed”, while the cause is the same. Some web applications may show a different error message when 403 forbidden happens. The website could be using a web application firewall like ModSecurity, which detected an intrusion attack, so it blocked the request.The website administrator blocks public access to the requested resources with an IP whitelist or other methods.This error means that you are not allowed to access the request resources. You can use the ncdu utility ( sudo apt install ncdu or sudo dnf install ncdu) to find out which directories are taking up huge amount of disk space. This directive is needed to process PHP code. You forgot to include the try_files $uri /index.php$is_args$args directive in your Nginx server config file.You can check PHP-FPM status with sudo systemctl status php7.4-fpm (Debian/Ubuntu) or sudo systemctl status php-fpm. Make sure your website files (HTML, CSS, JavaScript, PHP) are stored in the correct directory. In Nginx, the web roor directory is configured using the root directive, like this: root /usr/share/nginx//. The web root directory doesn’t exist on your server.404 not found means Nginx can’t find the resources your web browser asks for.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |