New answers tagged

0 votes

How can I fix recurring PHP 503 Errors on my Apache-mod_proxy_fcgi-PHP-FPM Server?

I had an issue similar to this and fixed it by moving the folders out of /var/lib/php/opcache/ and then restarting php-fpm. Possibly Relevant: A user was spamming a PHP URL last night, causing these ...
0 votes

Nginx error stating connection refused to PHP-FPM port

RHEL 9.1 / default install included PHP: 8.0.2.0 NGINX fails while installing WordPress Symptom: nginx[5700]: nginx: [emerg] no port in upstream "php-fpm" in /etc/nginx/default.d/php.conf:...
1 vote
Accepted

PHP8.1 FPM Crashes everyday after 12AM

Your server runs out of memory at this point. Maybe there is some scheduled task that launches multiple long-lasting and memory-intensive operations. This then triggers the Linux kernel out of memory ...
1 vote
Accepted

After setting up Apache it's not serving PHP files, but showing the contents of the files instead

I would do a Google search with the following keywords: apache server not reading php files It will show that you need to add a handler for PHP files in the Apache config file
0 votes

How to install memcashed on a LAMP stack with PHP FPM?

The error you are seeing is not related to your memcached installation at all. There is something wrong with your WordPress installation. Maybe you have installed/activated two separate cache plugins, ...
1 vote

After setting up Apache it's not serving PHP files, but showing the contents of the files instead

the "error" you pasted in justpaste.it is not a real error message, but you are seeing the whole index.php file. This means probably that PHP on your server is misconfigured.
  • 11
0 votes

Error 502, phpinfo() directing to 7.4 when 8.1 is installed (File not found)

What is causing the request to look for php7.4? The socket path in your nginx location {} configuration (part that handles php files requests) that you seem to omit completely, but that's the key. ...
  • 8,340
0 votes

php-fpm status page show listen queue length as 0

I found that this is caused by using unix socket (e.g. listen = /run/php/php8.1-fpm.sock). Switching to TCP socket (e.g. listen = 127.0.0.1:9000) fixes this.
  • 101
0 votes

stream_socket_client(): SSL operation failed with code 1

@Swisstone's answer contains the fix (using crypto method STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT), however it contains an example only for when explicitly calling stream_socket_enable_crypto. If you are ...
0 votes

Apache 2.4: ProxyPassMatch prevents mod_rewrite?

I just solved the problem: I had to change FilesMatch to: <FilesMatch .php$> SetHandler "proxy:fcgi://php:9000" Then I had to put it inside the Virtualhosts. Additionaly I had wrong ...
  • 1
0 votes

Multiple php-fpm pools and nginx

This redirects all requests to PHP files under /test to another pool: location ~*^/test/.+\.php$ { fastcgi_pass 127.0.0.1:9001; include fastcgi.conf; } To cover frameworks using front-...
0 votes

Deployment PHP with OpCache

Thanks for the answer and link above. Current solution is: Do not call opcache_reset after deploy. Set bigger value for option opcache.memory_consumption. I do opcache_reset in night as cron job. ...
  • 99

Top 50 recent answers are included