WordPress
WordPress is an open source and free blogging application and a
dynamic CMS (Content Management System) developed using MySQL and PHP.
WordPress currently one of the most popular blogging platform available on
the internet and used by millions of people across the globe.
LAMP
(Linux, Apache, MySQL, PHP)
Is an open source Web application platform that runs on Linux
systems.
|
Step 1:
Downloading WordPress 3.5 for Apache
[root@linux2
~]# cd /usr/local/src/
[root@linux2
~]# wget http://wordpress.org/latest.tar.gz
|
Step 2:
Extracting WordPress 3.5 for Apache
[root@linux2
src]# tar -zxvf wordpress-3.5.1.tar_2.gz -C /var/www/html
|
Step 3:
Creating MySQL Database for WordPress
Connect
to MySQL server and run the following commands to create database and grant
privileges.
[root@linux2
~]# mysql -p
Enter
password:
Welcome
to the MySQL monitor. Commands end
with ; or \g.
Your
MySQL connection id is 3
Server
version: 5.1.52 Source distribution
mysql>
CREATE USER wordpress@localhost IDENTIFIED BY "Your-Password";
Query
OK, 0 rows affected (0.00 sec)
mysql>
create database wordpress;
Query
OK, 1 row affected (0.01 sec)
mysql>
GRANT ALL ON wordpress.* TO wordpress@localhost;
Query
OK, 0 rows affected (0.00 sec)
mysql>
show grants for wordpress@localhost;
+------------------------------------------------------------------------------------------------------------------+
|
Grants for wordpress@localhost
|
+------------------------------------------------------------------------------------------------------------------+
|
GRANT USAGE ON *.* TO 'wordpress'@'localhost' IDENTIFIED BY PASSWORD
'*C260A4F79FA905AF65142FFE0B9A14FE0E1519CC' |
|
GRANT ALL PRIVILEGES ON `wordpress`.* TO 'wordpress'@'localhost'
|
+------------------------------------------------------------------------------------------------------------------+
2
rows in set (0.00 sec)
mysql>
FLUSH PRIVILEGES;
Query
OK, 0 rows affected (0.01 sec)
##
Exit ##
exit
|
Step 4:
Creating Apache VirtualHost for WordPress
Update
the virtaulHost section.
[root@linux2
~]# vi /etc/httpd/conf/httpd.conf
<VirtualHost
*:80>
ServerAdmin ranjith@test1.com
DocumentRoot /var/www/html/wordpress
ServerName wordpress
ErrorLog /var/log/httpd/wordpress-error-log
CustomLog
/var/log/httpd/wordpress-acces-log common
</VirtualHost>
[root@linux2
~]# apachectl configtest
[root@linux2
~]# service httpd restart
Edit
/etc/hosts file with the following entry.
127.0.0.1 wordpress
|
Step 5:
Configuring WordPress Installation
Copy
default wp-config-sample.php to wp-config.php to configure WordPress
installation.
[root@linux2
~]# cd /var/www/html/wordpress
[root@linux2
wordpress]# cp wp-config-sample.php wp-config.php
[root@linux2
wordpress]# vi wp-config.php
Modify
the following database settings with the details created in step 3.
//
** MySQL settings - You can get this info from your web host ** //
/**
The name of the database for WordPress */
define('DB_NAME',
'database_name_here');
/**
MySQL database username */
define('DB_USER',
'username_here');
/**
MySQL database password */
define('DB_PASSWORD',
'password_here');
/**
MySQL hostname */
define('DB_HOST',
'localhost');
/**
Database Charset to use in creating database tables. */
define('DB_CHARSET',
'utf8');
/**
The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE',
'');
|
Step 6:
Finishing WordPress Installation
Open
your browser and type any of the following address.
http://wordpress/
http://localhost
http://your-ip
|
Give
your Site Title, Create Admin User, Create Admin Password, Enter Your E-Mail
and then click on Install button.
|
Login
into your WordPress Dashboard.
|
No comments:
Post a Comment