What steps would you follow to optimize your web hosting?

tlhIngan

Member
Registered
Joined
Jul 12, 2016
Messages
49
Points
8
For an unmanaged VPS, after installed LAMP or LEMP on your OS, What steps would you follow to optimize your web hosting? What addons or tools would you recommend to install to optimize for a web hosting? I would hear advice from experienced people here.
 

Optimidia

Member
Registered
Joined
Oct 5, 2016
Messages
42
Points
8
You should go through your Apache configuration (httpd.conf), PHP configuration (harden PHP in php.ini), install the right modules for both Apache/PHP (Opcache, CloudFlare, etc), if you prefer to use something more modern, you can try switching Apache for a premium option like LiteSpeed to run your webserver. Maybe add Varnish and Memcached, all of these are some of the things you can take a look at in order to optimize your server for speed, performance and security.

Make sure you do take the time to read throughly how each setting affects your server and try to start with some examples that have safe values, work from there to see how your sites perform better. A lot of the times you can't really suggest one configuration for one server since they are all different.
 

Localnode

Well-known member
Registered
Joined
Dec 15, 2015
Messages
333
Points
43
Can you give me more details on how to switche Apache to LiteSpeed? What are the benefits after that?
LiteSpeed is faster than Apache - not as much as it was a while back - but still faster. LiteSpeed is a drop in replacement for Apache - meaning it's much easier switching to LiteSpeed from Apache than switching to NGINX (from Apache as well).

I'll quote from LiteSpeed's page:
Faster, more stable servers in 15 minutes

LSWS can be installed and switched with Apache in less than 15 minutes with no downtime. Once installed, LiteSpeed Web Server takes your Apache settings and processes them with its event-driven architecture, allowing for lightning fast responses and consistent, efficient memory usage. You're only one installation script from increasing your performance and saving money on hardware and support.
It's super easy to install LiteSpeed. However, LiteSpeed does cost money. An alternative is OpenLiteSpeed (http://open.litespeedtech.com/mediawiki/).
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Litespeed seems very expensive and less efficient than nginx.
My basic setup : Nginx - php7 - Mariadb - redis-server.
For the settings, you can tweak php.ini file to allow more cache for opcache and also the my.cnf to use multi threaded process with Mariadb.
 

EpicGlobalWeb

Well-known member
Registered
Joined
Jan 24, 2016
Messages
180
Points
0
^^ Definitely agree with VirtuBox, MariaDB (have been learning it over the last week) is a much faster DB processing speed than MySQL. It's not even a comparison how much better it is.
 
Older Threads
Replies
0
Views
2,270
Replies
4
Views
2,778
Replies
2
Views
1,961
fwh
Replies
13
Views
8,051
Latest Threads
Replies
0
Views
120
Replies
0
Views
65
Replies
0
Views
57
Replies
1
Views
87
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top