Score:0

Apache2 timeout

jp flag

For several weeks now, I've been experiencing timeout problems with Apache2 making my application inacessible. It's an e-commerce website developed in PHP (stack : PHP7.2-FPM, PostgreSQL, Apache2.4.25, Debian 9). When the site does not respond, it takes a good twenty seconds before displaying the timeout on the browser side. The service status are all good: apache2, database and I have no logs that could help me.

The only leads I have :

  • Apache2/PHP configuration, I increased the timeout value bit it didnt't change anything

    <Proxy "unix:/var/run/php/php7.2-fpm-app.sock|fcgi://localhost">
        ProxySet timeout=1200
    </Proxy>
    
  • Apache2 version. I have the same problem on another site (basic wordpress) with exactly the same behavior (timeout without specific logs behind, all services UP etc). And Apache2 version of this website is Apache2.4.25

I have a lot of other sites with the same Apache2 configuration, on more recent versions and no problem.

Does this speak to anyone ? Any ideas or anything ? :)

Michael Hampton avatar
cz flag
Check the PHP slow log.
Supras avatar
jp flag
Hello, this is already in place. And there is no link between slow logs and apache. When the timeout occurs, I have nothing in the slow logs. Which makes me think that the apache layer is the problem
sridhar pandurangiah avatar
aq flag
What is the entry for the "listen" variable in the www.conf file for PHP-FPM. Is it listening on socket or a port?
Supras avatar
jp flag
Hello, PHP-FPM pool listen on an UNIX socket.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.