Skip to content

WordPress installation for beginners step by step

wordpress,safe,wordpress website

Step 1: Save the file to your computer and extract it

From, download and unzip the WordPress package.

  • If you’re going to upload WordPress to a distant web server, use a web browser to download the WordPress package to your computer and unzip it.
  • Skip to the next step if you’ll be utilising FTP; uploading files will be discussed later.
  • If you have shell access to your web server and are comfortable with console-based tools, you can use wget (or lynx or another console-based web browser) to download WordPress directly to your web server instead of FTPing:
  • wget wget wget wget wget wget wget wget w
  • Then use tar -xzvf latest.tar.gz to extract the package.

In the same directory where you downloaded latest.tar.gz, the WordPress package will unzip into a folder called wordpress.

Step 2: Create a User and a Database

If you use a hosting provider, your WordPress database may already be set up for you, or there may be an automated setup solution available. If you’re not sure whether you’ll need to establish one manually, look at your hosting provider’s support website or your control panel.

If you decide you’ll need to create one manually, see the section below on Using phpMyAdmin to create your WordPress login and database. Refer to the page Creating Database for WordPress for more information on alternative tools like Plesk, cPanel, and Using the MySQL Client.

Create a database for WordPress if one does not already exist in the Database dropdown on the left:
Give your WordPress database a name: Most hosting services (especially shared hosting) will require a name that starts with your username and ends with an underscore, so even if you work on your own computer, we recommend that you check your hosting service requirements so that you can follow them on your own server and transfer your database without modification. In the Create database section, type the name of the database you want to create, then select the optimum collation for your language and encoding.In most circumstances, it’s best to go with the “utf8_” series and then “utf8mb4 general ci” if you can’t find your language (Refer this article).2. To return to the main page, click the phpMyAdmin icon in the upper left corner, then select the Users tab. Create a WordPress-related user if one does not already exist in the list of users:

  1. Add a new user by clicking the + button.
  2. Choose a username for WordPress (‘wordpress’ is an excellent choice) and type it into the User name box. (Select Use text field: from the options.)
  3. Choose a strong password (preferably one that has a mix of upper and lower case letters, digits, and symbols) and type it into the Password area. (Select Use text field: from the options.) In the Re-typefield, type your password again.
  4. Make a note of your chosen username and password.
  5. Under Global Privileges, leave all choices at their defaults.
  6. Then press the Enter key.
  7. # Go back to the Users screen and click the Edit privileges icon on the WordPress user you just established.
  8. # In the Database-specific privileges section, under the Add privileges to the following database option, choose the database you just created for WordPress and click Go.
  9. # The page will reload with the database’s privileges. To choose all privileges, click Check All and then Go.
  10. # Take note of the host name listed after Server: at the top of the page on the resulting page. (In most cases, this will be localhost.)

Step 3: Create the wp-config.php file 

You can either create and edit the wp-config.php file manually or skip this step and allow WordPress do it for you when you run the installation process (step 5). (You’ll still have to notify WordPress about your database).

(See Editing wp-config.php for further information and step-by-step instructions on how to create the configuration file and your secret key for password security.)

Rename the file wp-config-sample.php to wp-config.php and open it in a text editor where you extracted the WordPress package in Step 1.

In the section labelled “Database Information,” provide your database information.

The name of the database you created in Step 2 for WordPress.
The WordPress username you created in Step 2.
The password you chose in Step 2 for your WordPress username.
The hostname you choose in Step 2 (typically localhost, but not necessarily; see DB_HOST values for more information). If a port, socket, or pipe is required, append a colon (:) to the hostname followed by the corresponding information.

In most cases, the database character set should not be modified (see Editing wp-config.php).
Normally, the database collation should be left blank (see Editing wp-config.php).
Fill in the values for your secret keys in the section labelled.

Save the wp-config.php file.

Step 4: Upload the files

Now you’ll need to determine where your WordPress-powered site will display on your domain:

In your website’s root directory. (See for an example.)
You should put it in a subdirectory of your website. (See for an example.)
Note that the location of your root web directory in your web server’s filesystem varies depending on your hosting provider and operating system. If you’re not sure where this is, ask your hosting provider or system administrator.

  •  #In the Root Directory
    Use an FTP client to upload all the contents of the wordpress directory (but not the directory itself) into the root directory of your website if you need to upload your files to your web server.
  • If your files are already on your web server and you’re installing WordPress with shell access, copy the contents of the wordpress directory (but not the directory itself) to your website’s root directory.

#In a Subdirectory

  • If you need to upload your files to your web server, rename the wordpress directory to anything you like, then use an FTP programme to upload it to your selected place within your website’s root directory.
  • If your files are already on your web server and you’re installing WordPress with shell access, rename the wordpress directory and transfer it to your desired place within the root directory of your website.

Step 5: Start the Installation Script Open a web browser and launch the installation script

  • You should go to if the WordPress files are in the root directory.
  • You should go to if you put the WordPress files in a subfolder called blog, for example.

Configuration file for setup

If WordPress is unable to locate the wp-config.php file, it will notify you and offer to create and change the file on your behalf. (Alternatively, you can go straight to wp-admin/setup-config.php in your browser.) WordPress will prompt you for database information and store it in a new wp-config.php file. If this succeeds, continue with the installation; if not, go back and manually create, edit, and upload the wp-config.php file (step 3).completing the installation of WordPress

The installation is depicted in the following screenshots. You’ll notice that you provide your site title, preferred user name, password (twice), and e-mail address when you get to the details screen. A checkbox appears as well, asking if you want your blog to appear in search engines such as Google and DuckDuckGo. If you want your blog to be visible to everyone, including search engines, leave the box unchecked; if you want to ban search engines but allow normal visitors, check the box. It’s worth noting that you can update all of this information later in your Administration Screen.If you successfully install WordPress, you will get a login prompt.