you need to share the basics of your configuration and incoming hits for
people to get an idea of what you really have or could be the problem.
The way you describe it sounds like you have the typical quick to deploy
but slow to scale combo: httpd with prefork mpm + mod_php plugin loaded.
httpd
List,
I am facing a slow response for a hosted PHP8 web site.. It takes 30
seconds to load the website fully . The application and database(
postgresql ) both are separately running on two Virtual Machines in
OpenStack cloud. in two 10.184.x.221 and 10.184.y.221 networks
respectively.