How To Install Wordpress On Ubuntu 6.06 LTS

My VPS is hosted with Slicehost running on 256MB of RAM, 10GB HD, and Ubuntu its all a miracle. In this guide I will assume the server is freshly installed and you wish to set up Wordpress (can change). I don’t want to sound mean but securing and optimizing the box to use less processes is up to you after all we are running Linux get use to it .The server will run. Apache2 PHP5 MySQL PHPMYADMIN (makes things easy) VSFTPD wp 1. Basic Server install, this will install necessary and useful packages to run Wordpress. The first step will be to update and upgrade the server using apt-get, failure to update and upgrade will result in LAMP not installing. $sudo apt-get update $sudo apt-get upgrade The next step will be installing LAMP using apt-get. The beauty of this step is in bringing together different modules and reducing the time spend on each component. $sudo apt-get install mysql-server mysql-admin apache2 php5 libapache2-mod-php5 libapache2-mod-auth-mysql php5-mysql phpmyadmin After the install of LAMP is complete we need to set the root password for MySQL. For your own safety try to make the password long and difficult. $sudo mysqladmin -u root password newrootsqlpassword When the root password is set restart MySQL. $/etc/init.d/mysql restart We need a way to get our files to the server after the blog install, the solution is VSFTP very easy to configure use Google if you need further help. $sudo apt-get install vsftpd 2. Setting up the webserver for Wordpress. I hope that you have an understanding of the Linux file system (not necessary but it helps), on our home directory we are going to create a series of folders for logs, public data, private data, cgi, backup and one VirtualHost file for our domain. The domain will be and username demo. 1. In the home directory we create a folder dedicated to hosting our site file. $mkdir public_html 2.A series of folders will be create to host logs, backups, public files, etcetera. $mkdir -p public_html/{public,private,logs,cgi-bin,backup} 3. For basic testing of the webserver we create a simple .html file in the public folder using the nano editor. $nano public_html/ VirtualHosts are pretty cool they allow you to run multiple sites from one server, we need to create one for our site $sudo nano /etc/apache2/sites-available/ After the nano opens the new files copy and paste the text below change as you see fit for your site.

# Try to place notes here, they are useful later # domain: # public: /home/demo/public_html/ # Admin email, Server Name (domain name) and any aliases ServerAdmin ServerName ServerAlias # Index file and Document Root (where the public files are located) DirectoryIndex index.php DocumentRoot /home/ldemo/public_html/ # Custom log file locations LogLevel warn ErrorLog /home/demo/public_html/ CustomLog /home/demo/public_html/ combined

The text has been pasted in our VirtualHost file, lets activate our website using. To disable a site use “a2dissite”. $sudo a2ensite Lets restart Apache. $sudo /etc/init.d/apache2 reload 3. Lets install Wordpress. Now lets download Wordpress using the wget command. $wget Then unzip $tar -xzvf latest.tar.gz The contents have been uncrompressed and a directory named Wordpress has been created. I will now direct you to the official Wordpress website they provide instructions on how to use PHPMYADMIN to create a database using MySQL.\_WordPress#Using\_phpMyAdmin After the database is set I recommend you keep reading the remaining instructions on their website.\_WordPress#Detailed\_Instructions Step 3: Set up wp-config.php Step 4: Place the files Step 5: Run the Install Script This set of instructions has help me set up Wordpress on my server, you will have to make some changes to fit you configuration. Good Luck.