Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system.
The first step is to install packages:
1 2 3 4 5 |
apt-get update apt-get install mysql-server apt-get install apache2 apt-get install php5 apt-get install php5-mysql |
Now set mysql service to start automatically:
1 2 |
update-rc.d mysql defaults service mysql start |
Next create a database for wordpress:
1 2 3 4 5 |
mysql -p -u root create database wordpress; grant all privileges on wordpress.* to 'wordpress'@'localhost' identified by 'YOURNEWPASS'; flush privileges; exit; |
Next we’ll download and install wordpress:
1 2 3 4 5 6 |
cd /root wget http://wordpress.org/latest.tar.gz tar -xvzf /root/latest.tar.gz rsync -avz wordpress/ /var/www/ rm /var/www/index.html cp /var/www/wp-config-sample.php /var/www/wp-config.php |
Now set the database credentials in /var/www/wp-config.php:
1 2 3 |
replace 'database_name_here' 'wordpress' -- /var/www/wp-config.php replace 'username_here' 'wordpress' -- /var/www/wp-config.php replace 'password_here' 'YOURNEWPASS' -- /var/www/wp-config.php |
Finally point your web browser to the site and run the WordPress installer.