How to Install WordPress: Two Ways for Different Situations
Installation of WordPress can be manual or automatic. It depends on the web hosting type. Manual installation will be required for a virtual or dedicated server without pre-configured software. Regular hosting with a control panel allow for automatic installation. Here we will describe both types.
What you Need for Installation
To install any software, you need files and the place where they will be placed. It is similar in case of WordPress. This software is not installed on a personal computer, but on a remote server — the hosting. Accordingly, you will need a WordPress package and web hosting.
WordPress package can be downloaded for free from the official website. Things are slightly more complicated with the hosting.
If you do not have web hosting yet, you will need to buy it. You can order special WordPress hosting; in that case, you will not need to install it manually. Use the search phrase "WordPress hosting", and offers will be plenty.
If you have hosting, then further actions depend on its type. Check the email from your provider, go to your client area and the website — somewhere there will be a description of the tariff. Several options exist.
- The cheapest option is just a disk directory. Providers refer to such hosting as: "for simple static websites". Unfortunately, you will not be able to install WordPress there. You will need to get a different type of hosting.
- Web hosting with a control panel. The easiest solution! Because most panels can install WordPress automatically. See below how to find out if a panel can do that.
- A clean VPS or a dedicated server. This is the option for advanced users: you can do everything manually and through the console, or you can install a control panel and do it automatically. Instructions for manual installation are provided in the second half of this article.
First we will talk about installing WordPress using the control panel, and then about manual installation.
It takes a domain to make a website work. Domain is a unique address on the Internet. For example, vepp.com. This is what you type in the browser’s address line to go to a particular website; and every link contains it. Without one, the WordPress website can only be opened at the hosting’s IP address. Read What a domain is and how to choose a good one for more details.
How to Install WordPress on Web Hosting With a Control Panel
A panel is a special software that allows you to set up the server and manage the website through a regular web interface. Most panels enable automatic installation of WordPress: you press the button, and in five minutes, it's done.
What’s a web hosting control panel? Comparing the popular ones
How do I enter the hosting control panel? It is all the same: check your hosting provider’s email. It should have the credentials to enter the panel.
There are over 10 server control panels, but not so many are popular. The most common are cPanel, Plesk, ISPmanager. The new generation handy panel is Vepp. All panels are easy to recognize by the login window.
All panels have tools to install WordPress. The process may be easier or more complicated depending on the panel. Here are the links to instructions from the documentation, so you don’t have to search:
We will tell you about Vepp separately. This panel is designed specifically to work with WordPress, so it’s simple: all you have to do is select a template and enter the domain. The panel will do the rest itself.
Installing WordPress with Vepp
How to Install WordPress on Web Hosting With No Control Panel Manually
If you have web hosting without a panel, it is most likely a virtual private server (VPS) or just a dedicated server. The process of installing WordPress will be the following:
- Install the web server.
- Configure services for correct operation.
- Create databases.
- Download the WordPress package.
- Place WordPress files.
- Run WordPress installation.
Let us cover each step in more detail.
Step 1. Install the Web Server
To make WordPress work, you will need to prepare the server. Control panels do it automatically, and without one, you will need to prepare the server manually.
You will need to install the following:
- web server (Apache/Apache+Nginx),
- database server MySQL/MariaDB,
- PHP interpreter,
- phpMyAdmin application (for database management through web interface).
VPS or dedicated servers are provisioned with a pre-installed operating system. As a rule, is a Linux family OS: Ubuntu, CentOS, Debian or others. Steps required to configure the environment will be different for different OS. Let us take CentOS 7 as an example.
Command line is used for control.
Install the EPEL repository: yum install epel-release
Install the web server: yum install httpd
Install PHP and popular modules for it: yum install php php-mysql php-mbstring php-mcrypt php-devel php-xml php-gd
Install database server: yum install mariadb mariadb-server
Install web server and database server: systemctl start httpd mariadb
Add the services into the autorun list: systemctl enable httpd mariadb
Install phpMyAdmin: yum install phpmyadmin
Step 2. Configure Services for Correct Operation
Now you need to configure the installed services: to create the necessary configuration files. It is necessary that the domain opens without errors, PHP-code works, databases are created and there are no connection errors.
Universal instructions cannot be given here, because everything depends on the tasks of the website. Basic actions:
- Enable the use of PHP interpreter for Apache.
- Create VirtualHost file describing your website.
- Configure directory access so Apache can execute files within the domain.
- Specify the locations for phpMyAdmin.
Step 3. Create Databases on the Hosting
In the previous steps, you have installed the database server and phpMyAdmin. Now you need to create a database for WordPress and the database user.
Install the FTP server. To place WordPress files on the hosting, you need to connect to it via FTP. If you have a dedicated server or VPS, you will need to install the FTP service yourself and configure the accounts. The procedure depends on the operating system. Instructions for CentOS.
Open phpMyAdmin. When you installed phpMyAdmin, you specified its address and authorization details. Use them to log in. Usually phpMyAdmin is located at «http://22.214.171.124/phpmyadmin/» http://localhost/phpmyadmin/, where instead of localhost you need to insert your hosting’s IP address.
Create database. Open the Databases menu. In the Add a new database field, enter a name such as wordpress or blog. Press Add. Done!
Creating a database in phpMyAdmin
Create a database user. Click on the home icon in the upper left corner. Press Users and Add a new user. Set the username and password. Write them down — you will need them in the next step.
Creating a new user in phpMyAdmin
Configure privileges for the user. Go to the User accounts tab, in the list of users find the created user and click Edit privileges. Go to the Database section, select the database created for the user from the list and press Go.
Editing user privileges in phpMyAdmin
In the window that opens, select «Select all». This way WordPress will get all permissions necessary to work with the database. Done! The preparation of hosting is finished.
Step 4. Download the WordPress Package
WordPress is free, so anyone can download the package with this CMS anytime from the official website.
You can download the «clean» installation package with the basic design and customize it later. To do this, press the big blue button on the installation page.
You can immediately choose a theme with the appropriate design. The WordPress catalog contains over 4,000 free themes for blogs, portfolios, online stores and other websites. Go to the catalog, find the theme and click «Download» in the upper right corner.
When you have downloaded the package, unpack it.
Download form at wordpress.org. This is always the most current version
An option for the advanced users: download the installation package directly to the server
1. Use the commands
wget https://ru.wordpress.org/latest-ru_RU.tar.gz or curl -O https://ru.wordpress.org/latest-ru_RU.tar.gz
2. Unzip the package and move the files to the website directory. Commands
tar -xf latest-ru_RU.tar.gz mv wordpress/ /var/www/example.com/
Step 5. Placing WordPress Files on the Hosting
Choose where you want to place WordPress. You can build the entire website on it, or you can build a certain section, such as a blog. In the first case, you will need to move the engine to the root folder of the domain, in the second case — to a separate directory.
To place WordPress files on the hosting, connect to the hosting via FTP. Usually FileZilla is used for this. Look for FTP access details in your hosting provider’s email. When you find them, follow the instructions.
If you have a dedicated server or VPS, you will not have the FTP service. You will need to manually install the FTP server and set up accounts. Documentation is available on the Internet, and the process has been described many times.
Download and install FileZilla. This is a free and easy to install software. Use the link and follow the instructions.
Connect FileZilla to the FTP server. Here you will use the data from your provider’s email or the details you specified yourself when setting up the FTP server manually. Fill in the fields «Host» (this is the IP address of the server), «Username» and «Port». Press Quick connection. Done!
Upload WordPress to the hosting. At the first step, you had to download and unpack the WordPress package. Now is the time to use it. On your computer, select the files and folders with the unpacked engine. On the hosting, select the directory where you want to upload WordPress. Move the unpacked files to the hosting directory.
Step 6. Starting the WordPress Installation
Click on the wp-admin/install.php link. If you have installed WordPress at the root of a web server, follow this link: http://example.com/wp-admin/install.php. If you have installed WordPress to a folder on the web server that you have created, such as «blog», then follow this link: http://example.com/blog/wp-admin/install.php. A window like this should open.
Enter the details to access the Database. You should have recorded them in the previous step.
WordPress installation window
Done! Login page to the admin’s console will be located at example.com/wp-admin.php, where «example» is the address of your website.
This is what WordPress admin console looks like from the inside
If you Do Not Want to Waste Time on Manual Installation, Use Vepp
VPS or dedicated server is more stable and reliable than conventional hosting.
But it’s harder to manage. Vepp makes VPS as easy as shared hosting. You will install WordPress in a few clicks.
How to connect Vepp:
- Enter the server access details — root and password.
Now all you need to do is just wait until Vepp configures all services. And you can start installing WordPress.
Continue configuring WordPress
When the engine has been installed, the work with the website is just beginning. Continue configuring WordPress and we will help you along the process. Read more in our blog:
5 best must-have plugins for WordPress
5 free WordPress online store templates
How to promote a blog. Four practical methods to find new readers
What is a website backup and why nobody makes them
So, I have created a website, now what? About content and promotion