Serving The Planet

My Best Practices Ubuntu 14.04 LTS Server Configuration at TransIP VPS

ubuntu-server-14-ltsRight ... thus far things seem to work rather stable. Time for a little update how exactly I solved the WordPress Internal Server Error"-issue on my own self-hosted blog, as I dare to write a blogpost about it without the platform crashing Long answer very short: set up my own Linux webserver to bypass RAM limits of IC hosting. As running a WordPress site with 90+ plugins requires a different strategy

My Best Practices Server Configuration

And this is *not* a step-by-step guide, but rather a Best Practices log for personal purposes. Although other people might benefit from it too. As it took me 3 weeks to compile and get to the bottom of certain interesting issues.


correct file permissions:

File System Tweaks

  • swap file tweak: vm.swapiness=10 /etc/sysctl.conf
  • SSD tweaks: noatime in /etc/fstab
    tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0

Webmin installation

Firewall configuration

Simple iptables script

Create firewall configuration script

Additional notes:

You might also like:   My Projects Progress (ToDo List and Changelog): January 2018
  • Don't bother to hack into port 22 of 10000. Obviously changed those to custom ports that I'm not going to disclose.
  • when you're not using CloudFlare? You might want to add in these:
  • don't forget to save your iptables, otherwise at a server reboot you will lose all settings.


Double check:


Enable Curl

Required by many Apps & WP Plugins

EWWW image optimizer required apps:

also checkout:

Monitoring apps

Install PHP cache

(might cause conflicts with W3 WP cache)

edit /etc/php5/apache2/php.ini

and change: ";opcache.enable=0" to "opcache.enable=1"

Install PECL / Pear

Required for WordPress SSH FTP:

mind you! not /etc/php5/apache2/php.ini ... or do both when in doubt. I know phpinfo uses apache2 but for this to work properly it has to be /etc/php5/cli/php.ini at first.

Restart apach again to make php5 loads properly. Then add the same lines to /etc/php5/apache2/php.ini


  • “upload_max_filesize=2MB” to 32MB … affects other uploads
  • “post_max_size=8M” to 32MB .. affects wordpress xml uploads
  • “zlib.output_compression = off” to on
  • “zlib.output_compression_level = -1” to 9
  • upload_tmp_dir = /tmp

Tune MySQLd

Troubleshooting commands

mod_cloudflare for apache:

NTP: Synchronize system clock

Leap second bug:

Security Hardening Best Practices

Speed up static resources:

Troubleshooting Bibliography

PhpMyAdmin 404

Server load / Browser Socket issues

W3TC issues

and might add upon this article later ...

About Earnie Rhyker

tech pioneer | intellectual BadAss | ethical lifehacker | wordpress developer | information activist | blogger | added value services provider | multimedia enthusiast | senior linux server administrator | geek | bitcoin investor | laptop entrepreneur | tech support guru | open source contributor | hackintosh fanatic | charity donator | accredited top MLM networker & internet marketer 2014-2016 @ BFH | social networker ... actively documenting (again; since March 2018) about my geeky journey through life.
View All Posts

Communities I have been 'hanging out' regularly over the past two decades. 

picture coming soon!

Note: links go to my profile on those respective sites. Connect with me if you like.

Content Protection by

, , ,

No comments yet.

Leave a Reply

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Home Business Ideas and Opportunities
%d bloggers like this: