This article will help you to install
Step 1: Download WordPress Archive and Extract
Download WordPress archive file using wget command from CLI.
# cd /var/www/html # wget http://wordpress.org/latest.tar.gz
Extract archive in document root of you domain and update permissions on files.
# tar xzf latest.tar.gz # chown -R apache.apache wordpress # chmod -R 755 wordpress
Step 2: Create MySQL Database and User
After extracting code we need to create a mysql database and user account for configuring WordPress. Use following set of command to do it
# mysql -u root -p Enter password: mysql> CREATE DATABASE wp_db; mysql> GRANT ALL ON wp_db.* to 'wp_user'@'localhost' IDENTIFIED BY '_secret_password_'; mysql> FLUSH PRIVILEGES; mysql> quit
Step 3: Configure Apache VirtualHost
Edit apache configuration file and add a new virtual host for WordPress setup like below.
# vim /etc/httpd/conf/httpd.conf
Add following setting at end of file
<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/wordpress ServerName svr1.tecadmin.net <Directory "/var/www/html/wordpress"> Allowoverride All </Directory> ErrorLog logs/svr1.tecadmin.net-error_log CustomLog logs/svr1.tecadmin.net-access_log combined </VirtualHost>
If you already have another virtualhost created in config file, make sure to enable NameVirtulHost for using multiple VirtualHosts.
Reload Apache service to read configuration file again.
# service httpd reload
Step 4: Finish Installation using Web Installer
WordPress provides a web installer for easy to setup WordPress without editing files manually. After completing above steps just point your browser to your domain.
4.1. Open URL in Browser and Click on
4.2 In this step just click on
4.3. Fill the database details and click “
4.4 After submitting database details, click on “
4.5 Enter following details for your WordPress Install and click on
- Blog Title
- Username of admin account (for security do not use as “admin”)
- Admin password ( twice )
- Email ID
4.6 After completing above step, You have installed WordPress successfully, Now you will get WordPress success installation message.
Step 5: Login To WordPress Admin Panel
After completing above installation, you will be redirected to admin panel login screen or you can open url in browser like below
After entering correct login details, you will be redirected to WordPress admin dashboard. where you can create a beautiful blog and connect with world.