He has become quite an adult, he makes his own websites, well done.

We have already told you how to get yourself a virtual hosting and publish a site on it. It’s time for an upgrade: let’s put WordPress on our hosting – a platform for websites and blogs. If you don’t know what WordPress is, read our article. This is probably the main website building technology today, and if you are serious about the web and development, this is an essential tool.

In order for WordPress to run on our hosting, the server must support the following technologies:

PHP 5.6 or higher is the language in which WordPress is written;

MySQL 5.0 or higher is a database;

if you need beautiful addresses (like this page) and permalinks, use the Apache mod_rewrite module.

You can find out if there is the right software on your hosting from technical support or by choosing a hoster directly on his website. Basically, everyone has everything, so there is nothing to worry about.

Installation for the lazy

Most often, hosting companies themselves provide the service of installing WordPress on your site. This is done automatically: go to the admin panel and say “Install WordPress”. If necessary, you can point the way to WordPress, as an old Zen teacher points the way to his students.

For example, if we select the mihailmaximov.ru domain for installation and leave the path empty, then WordPress will work exactly at this address. Developers call this installation installation to the root of the domain. Looks at the root.

And if we write the path /blog/, then our WordPress site will have the address mihailmaximov.ru/blog/. At the same time, a completely different page may be located at the address simply mihailmaximov.ru. This is sometimes done when they want to separate the main page from the WordPress blog. So we’ll do it.

Click “Install” and pour coffee.

After that, the hosting asks you about the domain and the path, and after successful installation tells you the WordPress admin password.

Way of the Samurai

If your hosting is not so friendly or you prefer to control everything, then keep the step-by-step instructions. Before doing this, make sure once again that the hosting exactly meets the requirements of WordPress. It would be a shame to spend a minute and a half of your own life and find out that everything was in vain.

1. Download the archive with WordPress. We go to the official website and click “Download WordPress”. By the button – .zip-archive, by the link below – .tar.gz-archive. If you don’t know why you need the second one, just click on the button and save the file.

2. We transfer the archive to the hosting. To do this, we use the standard hosting capabilities for uploading files – we already did this when we published the page about ourselves.

Before sending the file to the server, create a blog folder with standard hosting tools.

If your hosting does not know how to do this, upload the file using the FTP protocol. How to do this, we will tell separately.

What is FTP and why is it needed

Create a folder where we will install WordPress.

Select the downloaded archive with WordPress and send it to the server.

3. Unpack the archive into our folder. An archive is compressed information so that files take up less space and download faster. When we extract files from an archive and return them to their original size and capabilities, this is called unpacking, or unzipping.

Our task is to unpack our WordPress archive into the blog folder. To do this, we again use the civilized hosting capabilities or do it via FTP.

How to fix database errors in Word Press?

Open wp-config.php in a text editor.

Make sure the file starts with <?php and that there is nothing before that: no spaces or empty lines.

Make sure the last or penultimate line doesn’t contain ?>. If there is such a symbol, delete it.

When writing this guide, I used the official website and personal experience.

File/folder permissions (chmod)

With proper permission settings, WordPress will be able to create files directly, and so it won’t ask for FTP credentials when updating or installing plugins.

Permissions will vary from host to host, so only general principles are described below. It is impossible to cover all cases here.

General rules:

All folders must be executable in order to have access to the files in them – this is 7 or 5.

No files should be executable – it’s 6 or 4.

We create a new database. WordPress stores all materials in the database – a special place in which it is convenient to store structured information. To create a database, in the hosting control panel we find the item “Create a MySQL database”. Your name may be different, but the meaning is the same.

All that is required of us is to come up with a name for the database and a password for it. There is no need to invent a login, because on our hosting the login becomes the same as the name of the database. Let’s name our base code and generate a complex password for it. It would be nice to save this password somewhere, because we will need it later.

Depending on the hoster, you may receive a letter with the details of the new database. The main information from this letter is the address of the database server. It may be localhost, or it may be something like mysql.host.ru – you need to look. If nothing came up, open the help section of your provider and look for the “MySQL database address” section.

The username and password are all that is needed for the new database.

5. Set up WordPress. The last thing left to do is to set up WordPress and make friends with the database. To do this, go to your_site/wp-admin/wp-install.php. In our case, the address will be:


WordPress will ask us for database details. This is what we just asked:

DB name → code

Database username → code

The password for the database → the one you came up with.

Database host → set the one that we were told during installation.

Table prefix (if you want to run more than one WordPress on the same database) → no, we don’t need it yet, we’ll limit ourselves to one.

The magic worked – it means we did everything right!

Localhost in this screenshot means that the database is located on the same server as WordPress. If the base were physically in a different place, you would need to specify its full address. We learn it when creating a database.

Everything is fine. We start the installation.

We enter data about our new website on WordPress.