Coming home - the ideal blogging solution
July30
Install one or more WordPress blogs on Ubuntu, here is how.
Inspired by: http://www.jonathanmoeller.com/screed/?p=235
Also check here: http://sysadminschronicles.com/2008/05/06/ubuntu-8-04-rails-server-using-passenger
- install ubuntu 8.04
- apt-get update
apt-get upgrade - sudo apt-get install subversion apache2 mysql-server-5.0 php5 php5-mysql
- (Do sudo apt-get install sqlite3 libsqlite3-ruby1.8 if you need SQLite3)
- mysql_install_db
mysql_secure_installation
mysql -u root -p
create database yourapp;
create user yourapp;
set password for yourapp=password(’securepassword’);
grant all privileges on yourapp.* to ‘yourapp’@'localhost’ identified by ’securepassword’ with grant option;
(repeat for every blog)
exit - /etc/apache2/httpd.conf
add the following lines:
AddType application/x-httpd-php .html
ServerSignature Off
LogLevel warn - cd /var/www
mkdir yourapp
cd yourapp
svn co http://svn.automattic.com/wordpress/tags/2.6 .
(repeat for every blog) - Start WP-Installation via WP-Skript and set WordPress Adress and Blog address to wwww.yourapp.com.
- Configure Apache
In /etc/apache2/sites-available create a new virtual host file:
<VirtualHost *>
ServerAdmin blogmaster@yourapp.com
ServerName www.yourapp.com
DocumentRoot /var/www/yourapp/
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
(Repeat for every blog)
- cd /etc/apache/sites-enabled
a2ensite yourapp
(Repeat for every blog) - /etc/apache2/mods-enabled/a2enmod rewrite
Watch out for problems with Phusion passenger if you combines these modules! - /etc/init.d/apache2 reload
Hi Tom,
this worked wonders for my server, thanks! Afaik you don’t have to switch to the mods-enabled directory to enable the modules. A2enmods can be enabled from all over the place.
Shantanu