Answer the question
In order to leave comments, you need to log in
Tuning IspManager under php. How to speed up Apache?
Good day
I use ispmanager as a panel, everything is as it is
vps kvm server parameters, 8gb ram, ssd disk, 4 cores based on xeon
ddos protection against ddosguard
At the moment everything is sad
All cores under 100%
From RAM 2 GB is used
in the top is visible that a bunch of processes from
apache php works as an apache module
There is a static site on the server that is served through nginx and it works.
The Apache website cannot be opened.
the .htaccess file in the root of the site is very important, so I can’t refuse Apache in any way, and even if I refuse, the site is not static and something will change
. Perhaps there are some options for optimizing Apache and PHP?
Answer the question
In order to leave comments, you need to log in
Before Apache, you should put nginx as a reverse-proxy so that there are fewer Apache processes.
Check if the php opcode cache is installed and if enough memory is allocated to it.
If the application can run under php 7+ make sure that it is used.
See if your database server is configured for your project.
But, of course, you should not expect a miracle - using caching or optimizing an application can give much more than setting the environment, and the situation is unlikely to change radically...
Not sure if the problem is in Apache or PHP...
The problem is clearly in the logic of the code.
From personal experience: install xhprof in your local environment and look at the application execution report.
If the percentage loads like this, then it’s not Apache that’s in trouble, but some kind of bug in the code.
Take at least fastroute on github, without cache, this route puts percents in the easy (with the same providence as yours), and the cycles for building the final graph are to blame
. Plus, turn off AllowOverride and transfer everything from htaccess to the config - this is Apache upnet, he does not will climb and look for these htaccess
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question