Tag: apache | Tutorial Depot

Optimize Apache and MySQL for a 256MB VPS

September 1, 2011 at 7:09 am Tags: | | | |

For small websites or not so popular WordPress blogs a small VPS with only 256MB of RAM should be enough. If you’ve followed this guide to install a Ubuntu web server you need to optimize your server a little bit.

Start installing MySQLtuner

Download the Perl script to your (admin) home directory:


wget http://mysqltuner.pl/mysqltuner.pl

Create also a file nano .my.cnf and add this code:


[client]
user=someusername
pass=thatuserspassword

After running MySQLtuner script perl mysqltuner.pl you should get this warning:

Reduce your overall MySQL memory footprint for system stability

To resolve this an other memory related issues we need to optimize the MySQL database settings. Read More…

WordPress Hosting Configuration and Optimization Guide

August 23, 2011 at 7:22 am Tags: | | |

codex.wordpress.orgThis is the most complete and impressing guide I have ever seen! While many optimization methods are not only for WordPress websites, you will find many ways to fine-tune your server to get most out your website. I like the part about how-to tweak the Apache MPM-worker, the instructions are very clear and understandable for non Linux Pros. I’m sure I will use these tips for all of my servers.

Source…

How-to create a virtual host in Apache (Ubuntu)

July 25, 2011 at 9:21 pm Tags: | | |

You will find on most Linux based web hosts a directory which is called “sites-available” (inside /etc/httpd/ or /etc/apache2/). Create a configuration file with the name “domain.com” for your host and add this code:



ServerName domain.com
ServerAlias www.domain.com
ServerAdmin webmaster@localhost
DocumentRoot /home/user/domain.com/public_html/
ErrorLog /var/log/apache2/domain.com-error.log
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg
LogLevel warn
CustomLog /var/log/apache2/domain.com-access.log combined

Create the directory for your web host and activate the host with a2ensite domain.com and reload your apache engine.

Ubuntu run PHP 5.2 and 5.3 together

June 9, 2011 at 6:23 am Tags: | |

webpagedeveloper.meGreat tutorial! It works for 95% on my Ubuntu 11.04 machine, will say I needed to add a symbolic link for the jpeg/png libs (check http://pastebin.com/bh87r5Lw). I used php5.3 in cgi mode and for this example I needed to switch to the php apache module first. I replaced also “–with-jpeg ” width “–with-png-dir ” (this value doesn’t exists and the png lib was missing).

Source…

Install Subversion with Web Access on Ubuntu

June 6, 2011 at 9:29 am Tags: | |

www.howtogeek.comGreat tutorial for a basic setup of SVN on Ubuntu. Works like described, tested on Ubuntu 11.04. Thanks and kudos for the author!

Source…

How to install mod_evasive on a DirectAdmin server

December 3, 2010 at 8:15 pm Tags: | |

solidservers.caIf your server is getting attacked the apache module mod_evasive should help. This article is a great guide for the beginning “root” and explains how-to install/compile/configure the module. The title mentions that the guide is for DirectAdmin servers, but the instructions should work for other server types too.

Source…