Ubuntu/webserver/apache
Jump to navigation
Jump to search
This Page was written with Ubuntu 12.04 LTS in mind, and may not work correctly with other versions or distributions.

Installing Apache on Ubuntu
apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade && reboot
apt-get -y install git subversion vim multitail htop apache2 mysql-client \ php5 php5-mysql php5-gd openssl
git config --global user.name "Matt Rude" git config --global user.email "matt@mattrude.com" ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ service apache2 restart
Installing WordPress from Subversion under Apache
rm -rf /var/www/* /etc/apache2/sites-enabled/* svn co http://core.svn.wordpress.org/trunk/ /var/www/wordpress chown -R www-data:www-data /var/www/wordpress echo "<VirtualHost *:80> ServerAdmin webmaster@example.com DocumentRoot /var/www/wordpress <Directory /> Options FollowSymLinks AllowOverride all </Directory> ErrorLog /var/log/apache2/error.log LogLevel warn CustomLog /var/log/apache2/access.log combined </VirtualHost>" > /etc/apache2/sites-enabled/wordpress service apache2 restart