Monday, June 13, 2011

How to Install Wordpress 3


1) Proceed to Create your MySQL Database
sudo mysql -uroot -p
>create database wordpress;
2) Create you Wordpress Virtualhost
sudo pico /etc/hosts
Insert:   wordpress

sudo pico /path/to/apache2/conf/extra/httpd-vhosts.conf

<virtualhost *:80>
   DocumentRoot "/path/to/wordpress"
   ServerName wordpress
   <directory path="" to="" wordpress="">
     Allow from all

To activate this newly created Virtualhost you need to Restart Apache
3) Download Wordpress, Unzip it
cd /path/to
sudo unzip wordpress*zip
4) Give it the Right Permissions
To set permissions for Directories:
sudo find /path/to/wordpress -type d | xargs chmod 755
To set permissions for Files:
sudo find /path/to/wordpress -type f -exec chmod 744 {} \;
5) Generate yours API Keys
Open a Browser's Window and type in the Address:
Copy all the Output Given in the Window.
6) Create and Edit your Configuration script
cd wordpress
sudo mv wp-config-sample.php wp-config.php
Next you need to Edit wp-config.php
Select the lines containing:
define('AUTH_KEY',        'Abracadabra1');
define('SECURE_AUTH_KEY', 'Abracadabra2');
define('LOGGED_IN_KEY',   'Abracadabra3');
define('NONCE_KEY',       'Abracadabra4');

Paste in the API's Keys of Step 5);

Next you Need to Substitute the Right Values for:
define('DB_NAME', 'yourDBName');
define('DB_USER', 'yourDBUser');
define('DB_PASSWORD', 'yourDBPass');
define('DB_HOST', 'yourHostName');


7) Start Wordpress Installation
Open a Browser's Window and type in the Address:

Good Luck!

No comments:

Post a Comment