How to harden and optimise whm/cpanel

Cpanel website provides some good tips to harden your server

After login to whm, go to configserver security & firewall and add your IP to the “allow ip” list.

https://documentation.cpanel.net/display/CKB/How+to+Prevent+Email+Abuse

WHM > Server Configuration > Tweak Settings, Mail -> Set Initial default/catch-all forwarder destination to false

https://documentation.cpanel.net/display/CKB/Tips+to+Make+Your+Server+More+Secure

go to security center -> security advisor and follows the advise from there.
-> Allow modsecurity and rebuilt apache.
-> Update password strength to something greater than 70
-> disable ssh password authentication
-> run security advisor and update as necessary

go to service configuration -> service manager and disables unused services like mailman.

if php is showing ini_set error, go to home -> service configuration -> php configuration editor and remove ini_set under safe_mode. might as well allow proc_open for composer. restart apache

If cannot access files after updating or transferring cpanel accts, try changing permission for all files. suphp means owner and group user must be acct user and all dir must be 755 and file 644.

find /home/user/public_html -type d -exec chmod 755 {} \;
find /home/user/public_html -type f -exec chmod 644 {} \;

To optimise php, use apc cache with fcgi

http://virtualhosts.dk/centos-6-with-cpanel-and-whm-using-litespeed-webserver-and-php-apc/step-6-install-php-apc-alternative-php-cache

or better still go for hhvm (but cpanel doesnt yet support this)

https://codeable.io/community/speed-up-wp-admin-redis-hhvm/

Best Dedicated or Cloud Server for Startups

If you are a small business or a startup and are unsure of investing in server hardware, the best strategy is to go for cloud server hosting. In cloud hosting, you can manage your own server and scale up when the need arises.

I’ve been looking around and I think the best option out there is digital ocean. The cheap upfront cost and dead easy GUI makes them the best value for money among their competitors.

BlueHost Hosting Review – My Experience

updated on 17 April 2010

Website hosting nowsadays is very competitive. Many web hosting companies offer tonnes of features at very competitive rates. With so many choices in mind, how do you choose the right host? I have tried many hosts over the years and finally landed on one that I feel has the most complete features that I need at a reasonable price, ie Visit Bluehost.com.

Features
BlueHost provides hosting features that surpass the needs of large websites:

UNLIMITED Hosting Space (NEW!)
UNLIMITED File Transfer (NEW!)
web hostingHost UNLIMITED Domains!!!
2,500 POP/Imap Email Accounts
SSH (Secure Shell), SSL, FTP, Stats
CGI, Ruby (RoR), Perl, PHP, MySQL
2000/2002 Front Page Extensions
Free Domain Forever!
Free Site Builder (NEW)
24/7 Superb/Responsive Sales/Support
and alot more…

Reliability and Performance
So far, I have no problems with the speed and reliability of the server. Most of my sites hosted by them were never down. If you have google toolbar installed, just take a look at their page rank. Bluehost has a page rank of 8 which is rare for a web hosting company. This just shows how popular they are in the web. If you look at their awards page, you will realized that they have a long history of awards. This is a plus point because it shows that they care about their customers and more importantly, their performance is consistent.

Support
They have a good support section in the website. Based on my experience, most of their emails are answered within 1 working day. Though not the fastest around, their replies are honest and professional. Some hosts will answer you in such a way that you need to pay them more money to get your problems solved… This is when I think honesty is important.

Conclusion
In conclusion, BlueHost offers quality and reliable hosting for $6.95 a month with no hidden charges (There are a lot of cheaper ones out there but you pay for what you get). With generous disk space and bandwidth, it is unlikely that you will exceed the quota every month. I don’t usually promote web hosting companies or anything that I don’t have confidence with… We are happy with bluehost since 2004. The many good reviews of bluehost in the web speaks for itself.

Visit Bluehost.com