Problems activating your account? Send notification email to: admin@post4vps.com
Host4Fun Budget VPS Hosting
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to optimize Apache web server?
#1
Thumbs Up 
Apache web server is probably too restrictive when not optimized. You can follow below steps to tweak the Apache directives for maximum performance.
1) Login to WHM as a root user.
2) Once you are logged in, search for Service Configuration and click on it.
3) In the new menu, click on Apache Configuration.
4) In Apache Configuration, select Global Configuration.
5) In Global Configuration menu, we will need to make changes in different fields as below and click on save.
StartServers = 5
MinSpareServers = 5
MaxSpareServers = 10
ServerLimit = 500
MaxRequestWorkers = 500
MaxRequestsPerChild = 4000
Timeout = 20

That's it! enjoy the optimized Apache configuration to load your website faster without impacting your server resources like CPU/RAM.
Reply
#2
This can be quite useful. But could you explain little bit more about these functions and What these things do ? Also what you have posted are the best parameters for these ?


Be yourself everybody else is taken ~



Reply
#3
there is no best parameter or value for the ones posted above. good values vary from case to case or else the guys would mention these so called best values in comments of the associated settings file. a totally silly thread in my opinion. no explanation nothing. please explain and give source reference. thanks
Thanks to cubedata.net and post4vps.com for my awesome vps8.
Reply
#4
I think you can make something more complete than this?
That's quite helpful
Thank To Hostlease And Post4Vps For VPS15
-------------------------------------------------------------------------
Art
Reply
#5
@harry_v

Moved from VPS Support to Tutorials Forum as it isn't a VPS support request

Looks as though this "tutorial" is specifically relevant to a VPS with cPanel? Agreed with other contributors content is very sketchy. For example, why did you find Apache too restrictive? How does Apache work (or not work) when it is too restrictive? And "yes", please provide source where you got the code from. Otherwise it may have to be considered a copy paste article.
[Image: 4ax8Kok.png]
Thank you to Post4VPS and VirMach for my super fast VPS 9!
- DH Blog




Reply
#6
Yeah. I wondered that too What makes Apache too restrictive ? I thought it has way too many functions by default. Usually I tone it down a bit to same RAM. In most cases I prefer to use lighttpd over Apache. But these days the trend seems to be using Nginx.


Be yourself everybody else is taken ~



Reply
#7
also those min and max numbers and limit values he mentioned have no best value. just optimum value depending on use case and system specs. so this is not a tutorial.
at best it could be a reply to someone asking for a recommended config for his use case (or the op gives us that context). but i dont see anyone asking for that. without that , some explanations would save the day. but no. they are nowhere to be found either...

sorry.. way too much rant today..
Thanks to cubedata.net and post4vps.com for my awesome vps8.
Reply
#8
1.apt-get install nginx
2.apt-get purge apache2

that should work

thats just sarcasm . you can try use opcache to make the website faster espescially with dynamic content that use lot of php processing . nginx have faster static content speed but for the dynamic speed it almost same
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
Reply
#9
(02-05-2019, 04:08 PM)humanpuff69 Wrote:  1.apt-get install nginx
2.apt-get purge apache2

that should work

thats just sarcasm . you can try use opcache to make the website faster espescially with dynamic content that use lot of php processing . nginx have faster static content speed but for the dynamic speed it almost same

If so, why don't you use litespeed?
Because it's faster than nginx
Thank To Hostlease And Post4Vps For VPS15
-------------------------------------------------------------------------
Art
Reply
#10
(02-06-2019, 09:22 AM)chanalku91 Wrote:  If so, why don't you use litespeed?
Because it's faster than nginx

litespeed isnt free and i am more familiar with nginx but from the benchmark that i show litespeed is the fastest espescially with the opcache enabled but still it isnt free . i use nginx because it the balance beetwen apache and litespeed so the best of the world and the margin of speed isnt that differ from nginx to litespeed unlike apache to nginx
Terminal
humanpuff69@FPAX:~$ Thanks To Shadow Hosting And Post4VPS for VPS 5
Reply
 


Possibly Related Threads...
Thread Author Replies Views Last Post
  How to move a phpBB forum from one server to another - the easy way! deanhills 7 223 02-16-2019, 10:01 PM
Last Post: rudra
  How to Backup MSSQL Database From SQL Server Management Studio? harry_v 5 213 01-15-2019, 09:28 AM
Last Post: rudra
  How to change minecraft server version through control panel Honey 0 143 12-11-2018, 02:52 PM
Last Post: Honey
  Install MTA:SA Server with single command(Auto Installer) Lampard 11 2,466 09-18-2018, 07:56 AM
Last Post: AmirGT
  Installation of Peerflix on Ubuntu 16.04 LTS Server Hidden Refuge 8 781 08-25-2018, 09:39 PM
Last Post: K1r1k4z3

Forum Jump:


Users browsing this thread: 1 Guest(s)

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - SSDBlaze - VPSlices - Abc-Hosters - Hyper Expert - Shadow Hosting - Bladenode - HostDoc - Hostlease


About Post4VPS

Post4VPS is a forum/destiny where you can Delploy Your Free VPSs just by the Power of Posts.

We Provide VPSs of many locations like Germany,US,Canada,France,London,etc.

We also Provide VPSs of Both Linux and Windows OS.