This is a brief overview and does not cover anything in the way of performance tuning, security, or any other form of optimization.
Your initial setup:
- sudo passwd followed by prompt for new root password
- aptitude install apache2 mysql-server php5 php5-mysql curl php5-curl phpmyadmin libapache2-mod-proxy-html
- For mod_rewrite to work go to “/etc/apache2/sites-available” and in “default” change “AllowOverride None” to “AllowOverride All” for any directory you want to allow mod_rewrite to work. You’ll also want to run “a2enmod rewrite” to load the rewrite module.
- Restart apache: “/etc/init.d/apache2 restart”
- Not required, but I’ll install libapache2-mod-security2 as well.
- Not required either, but it’s also a great idea to increase your memory limit in your “php.ini” to a higher number. For most sites 32M is fine. I typically set it to around 96M for my Drupal sites.
- Adding mod_deflate will decrease processing and load time to your sites’ pages. Here’s how: ”
a2enmod deflate”. Then restart Apache again. On Apache2, all we need to do is load the module since it should already be installed on the system.