WordPress is one of the most used content managers and for many reasons, among which we can highlight its versatility, its stability and the availability of thousands of plugins and themes that allow it to extend its functionality.
WordPress is suitable as a CMS for running a small blog, creating a corporate website and/or for online media visited by millions of people.
1 – Install Apache, MySQL and PHP
WordPress doesn’t have many requirements to work, but it obviously requires a web server running PHP and a database.
We have several guides explaining how to install the LAMP stack, so there’s no point in repeating ourselves, just follow the instructions of guides like How to install Linux, Apache, MySQL 5.5 and PHP 5.4 (LAMP) in Ubuntu 13.04 to follow.
2 – Download WordPress
The first is Download wordpress of your website and place the files in the root directory of your domain.
Let’s say your domain is mydomain123.com and that its root is /var/www/vhosts/mydomain123.com/htmlWant:
cd /var/www/vhosts/midominio123.com/html
wget http://wordpress.org/latest.tar.gz
tar zxf latest.tar.gz
mv wordpress/* .
rm -fr wordpress
Also, for the WordPress installer to work, let’s make sure the root directory is owned by the Apache user:
chown www-data:www-data /var/www/vhosts/midominio123.com/html
3 – Create a MySQL database
Before starting the WordPress installation, we will create a MySQL database and a MySQL user in the WordPress installer, whose details we will provide later.
First, access the MySQL console:
mysql
Where we will run:
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
Remember to replace “password” with a strong password.
4 – Start the WordPress installation wizard
We can now start installing WordPress using the installation wizard, for this you just have to access www.midominio123.com with your web browser where you will see the following screen:

click on Create configuration file and we arrive at the following screen, where we are asked for the MySQL connection data:

We must enter the database name, the user and the password that we defined in step 3. We continue and arrive at a screen confirming that a connection to MySQL has been established:

click on Run the installer and we arrive at the following screen where we have to define the name of our and the username/password of the WordPress admin:

Finally, click the button to complete the installation Install WordPress.
5 – Login to the WordPress admin panel
Now that we have managed to install WordPress we just have to go to the following address to access the administration panel: http://midominio123.com/wp-login.php
Where we must enter the username and password chosen earlier:
