Correct installation of a WordPress site on your hosting in 15 minutes. Fast and secure. Step by step instructions for beginners
I have been making money on the internet for over 8 years
Ask a question about the article
Ask your question and I will get back to you by email.
In this article, we’ll take a closer look at installing the WordPress engine on your hosting.
If you don’t want to read the article, here’s a video where I clearly show the WordPress installation process. And if you need textual instructions, read below.
Here is what you should already have before starting the installation:
Domain name of your site. If you don’t have a domain yet, you can buy it on Reg.ru
Paid accommodation. In this article, we will look at installing on FastVPS. But you can use any hosting, the configuration is the same everywhere.
Important safety warning!
All hosting has an automatic WordPress installation feature. When you access the hosting control panel (it may be called ISP Manager, CPanel, FastPanel), you will almost certainly see the “Install WordPress” button.
Do NOT install WordPress automatically. This installation will not meet all safety requirements. An automatically installed site is much easier to hack. Below I will specifically show you step by step how to secure the installation.
Remember that WordPress sites are the primary target of all cyber crooks. Don’t give them a chance. We will install WordPress manually and securely.
Step # 1 – Create a Database for the Site
1. Go to your hosting control panel and find the “Databases” section. In the FastPanel it looks like this (click the image to enlarge) –
Create a new database for WordPress
If you don’t know where the control panel is, write to your accommodation’s help desk. You will receive a direct link.
2. In the “Databases” section, click “New database”.
Add a new WordPress database
Let me remind you that you can have another control panel (eg ISP Manager or CPanel). Therefore, the location and name of the buttons may differ slightly. Use the search on the control panel to find the function you want.
3. Find names for our new database. We also write a password.
Login and password for the new database
We leave the option “Create a new user”. Or we create a new user for our database. Make sure you copy all the username and password we found in a separate text file.
We save the login and password of the new database
Important safety warning!
I recommend that you create all the usernames and passwords yourself. At the same time, all usernames and passwords must ALWAYS be a random set of characters.
When you need to find some sort of username or password, just switch the keyboard to the English layout and start typing characters in random order:
- Small letters
- Capital letters
- Special characters (if allowed – “* & ^% $”)
Under no circumstances do not use your first and last names, dates of birth, phone numbers, e-mail passwords, passwords like “1234”, “admin” credentials for usernames or passwords. These usernames and passwords are very easy to decipher.
Also, I don’t recommend using password generators. All web hosts have such generators. There are also separate services on the Internet where you can quickly generate any password.
Password generator for wordpress
The problem with generators like this is that they actually only give the PSEUDO random number generation. No one has yet been able to invent a truly random generator. Still, all “random number” generators work according to some sort of algorithm.
And if attackers are able to break at least part of this algorithm (and, believe me, they try very hard to do it every day), then all of your usernames and passwords will be compromised.
The only truly random number generator is our hands (well, you can also let the cat wander the keyboard). We create random “gibberish” and make sure to save it in
Step # 2 – Preparing WordPress for Installation
1. Go to the official WordPress site and download the engine. To do this, on the main page, click “Get WordPress”.
Get wordpress button
Then click – “Download and install yourself.”
Get wordpress button
The engine will be downloaded in a .zip archive.
Note! If you want to install WordPress in Russian, then you must download it from the Russian version of the official website. In this case, RU will be present in the name of the engine version (for example – WordPress_Ru_5.7). If you need English, then download from the site in English.
2. After downloading, unpack the archive using the archiver program. On Windows computers, you can use, for example, the WinRAR program. You can download it for free here.
After opening the archive, you will receive a folder with many files. We will need to work with the file “wp-config-sample.php”
Unpacked wordpress files
3. Change the file name. Remove “–sample” from the name. Now our file is simply called “wp-config.php”.
Change the name of the wp-config file
4. Open this file with a special program for editing code files. On Windows computers, it’s best to use the free NotePad ++ program. On Mac computers, you can use the Tincta program (free download from AppleStore – https://apps.apple.com/ru/app/tincta/id448340648?mt=12)
You will see a page with a code. We will need to make changes to the following lines.
Changing lines in wp-config
5. Enter our database name, database username and user password.
Enter the database name here – define (‘DB_NAME’, ‘database_name_here’);
Enter the database username here – define (‘DB_USER’, ‘username_here’);
Enter the user’s password here, enter here – define (‘DB_PASSWORD’, ‘password_here’);
Make sure you don’t accidentally insert any spaces. Otherwise, the file will not work. In the end, we should get like this.
Wp-config file changes
6. Set security parameters
Now copy this link and paste it into the address bar of your browser.
Link to wordpress security keys
Press Enter, and you will receive unique keys for your site.
Unique salt keys in the browser
Completely copy everything that the browser showed you, and paste it into the wp-config.php file
Copy keys to wp-config
The most convenient way is to select all the lines where you need to insert the keys, and then just press Ctrl + V. This will insert the keys that you copied from the browser. Also, make sure that there are no extra spaces left.
7. Change the default database prefix
The last thing we need to do is replace the standard “wp_” prefix. This is also important for safety. Remove “wp” and write any combination of Latin letters before the underscore.
Wp prefix in wp-config file
For example, I got it like this.
Changed wp prefix
Everything. We don’t need to do anything else here. Save the wp-config.php file (Click “Save” or press Ctrl + S). Close the file. Now you need to upload all this to your hosting.
Step # 3 Uploading WordPress to Hosting
1. Download the free FileZilla program from this link. We will need it in order to connect your computer to the hosting. There is FileZilla for Mac too, but unfortunately not free. It costs 699r. per year and is called FileZilla Pro. What is there so “Pro” I still do not understand.
You can look for other programs to connect to hosting. They are also called “FTP connection programs” or “FTP managers”. Further I will show everything using FileZilla as an example.
2. Create a new FTP connection for your site.
We return to your hosting control panel (where we created the database in the first step). Now we need a section “FTP accounts”.
FTP accounts section in the panel
We go to this section and click “New account” (you may call this button differently, for example – “Create a new connection”).
Create a new FTP account
Now we will again use the “gibberish” method to come up with a username and password for our new FTP connection.
Login and password for FTP
We save this data to our text file with all passwords. Open the FileZilla program. We enter our data into the appropriate fields of the program.
We connect the FileZilla program
The username is the login we just came up with.
The password is the password we just came up with.
Host is the IP address of your site (sometimes you don’t need to enter it, depending on the hosting provider). Just in case, check with technical support what you need to enter in the “Host” field when connecting.
If you also use FastPanel, then copy your IP address from there and paste it into the “Host” field.
Copy the IP address for FTP connection
Click “Fast Connection”, and your computer is connected to the hosting via FileZilla. In this case, on the left are files that are located on your computer, and on the right – files that are located on your