June 5, 2020
June 5, 2020
WordPress is a free, open-source software that is known to be versatile and effortless to install. If you’re here to know how to install WordPress, keep reading. However, this guide is for installing WordPress on a shared hosting and local machine (Windows and Mac). To Install WordPress on VPS, refer to this article.
With that being said, let’s get started.
Limited Time Offer for up to 82% OFF for WordPress Hosting Packages!
The easiest way to install WordPress is to choose a host that does it for you. Many hosts make this process a breeze, but we will show you how setting up WordPress on Hostinger is a quick and easy process thanks to its one-click installer:
That’s it! You can now log in to the administrator dashboard by selecting WordPress on the Actions field under the List of Installed Applications and begin creating your website.
If the automatic WordPress installer doesn’t seem to be working, or it’s not available in your hosting, you can install WordPress manually. Follow the steps below for an easy installation process.
Before we begin the installation process, let’s set up a few things first:
IMPORTANT: Make sure to copy the MySQL credentials complete with the alphanumerical strings–you will need them later.
This file contains the database information and lets WordPress know which database to pull information from. The wp-config.php file can be found in File Manager in the folder where WordPress is installed. Follow the steps below to configure your WordPress files.
// ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define( 'DB_NAME', 'database_name_here' ); /** MySQL database username */ define( 'DB_USER', 'username_here' ); /** MySQL database password */ define( 'DB_PASSWORD', 'password_here' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' );
Now that we have the preparation stage covered, we can proceed with the installation process. Access your domain name to open the setup page.
The WordPress 5-minute installation wizard only has five steps in total:
You can now press the Login button to access the WordPress admin area.
If you install WordPress locally, you will have an awesome environment to test out any changes before implementing them on your live website. Let’s look at the ways to achieve this on Mac and Windows:
To install WordPress locally on a Mac computer, we will be using MAMP (Macintosh, Apache, MySQL, PHP).
This tool allows you to create a PHP and MySQL server on your machine. In other words, it provides all the necessary ingredients to run a WordPress environment locally for testing purposes.
Similar to the manual installation on shared hosting, we must prepare the server and the database first:
That’s it. We’re ready to set up WordPress locally on a Mac OS.
If you haven’t already, download WordPress and extract it. Meaning unzip the WordPress package on to your local computer. If you are using an FTP, skip to the next step. However, if you have shell access to your web server use the command to download:
and then unzip the WordPress package with this command:
tar -xzvf latest.tar.gz
Next, do the following:
The next screen will ask you to provide your website information. Choose a username and password, as well as an email address, and click Install WordPress. You should see a success message once it is finished.
Pretty easy, right? Now let’s look at how to do the same thing on Windows.
To install WordPress locally on Windows, we will utilize WampServer instead. As you can probably guess, the name is short for Windows, Apache, MySQL, PHP. Here’s how to set it up:
After downloading the latest WampServer on your computer, follow these steps:
Once the preparation is all taken care of, you can proceed to install WordPress by following these steps:
Then, make sure to complete the remaining steps, and you’ll have WordPress available on your local Windows machine in no time.
The following are the most common problems encountered when installing WordPress.
This happens when the web server isn’t viewing the index.php file. Since it needs to be told to do so, we can fix this problem by using Apache. Use the DirectoryIndex index.php directive and created a new file in the installed directory named .htaccess. If that doesn’t work, delete it and add the directive to the web server’s configuration files instead.
This error is caused by introducing a syntax error when editing the wp-config.php file. To fix this error, begin by downloading the wp-config.php file again. Open the file in a text editor and make sure that the first line is <?php and that there is nothing before it. Then, make sure that the last line is ?> and that there is nothing after it. Save the file and re-upload it, then reload your page.
If your page is looking a little crazy and the source code is filled with <?php ?> tags everywhere, your PHP is not working correctly. All PHP code needs to be executed before the server sends the HTML results to your web browser. To fix this error, make sure your web server meets the requirements needed to run WordPress. Also, check if PHP is installed correctly and there are no errors when being configured. If problems still persist, contact your web host or customer support team for additional help.
If the Error connecting to database is popping up, but you are positive that your configuration is correct, you can try resetting your MySQL password. To do so via shell, use the following command:
SET PASSWORD FOR 'wp_username'@'hostname' = OLD_PASSWORD('new_password');
If you do not have shell access, try logging into your phpMyAdmin and entering the command into an SQL query. If that doesn’t work either, log into your panel and reset the password in your Database section.
Congratulations! By finishing this tutorial, you have learned how to install WordPress automatically and manually on shared hosting. Also, we’ve learned the steps to install it locally on Mac and Windows machines.
Hopefully, this guide is useful! Leave a comment below and let us know if you have any questions.
June 12 2017
but from where and how to Run WordPress 5-minute Installation Wizard?
Replied on June 15 2017
Hey, If you have account on Hostinger, use auto-installer to install WordPress
Replied on July 07 2017
its no longer available :(
Replied on July 20 2017
yes sir plzzzzzz solve it for us or give a solution
June 27 2017
i am installing wordpress mannuly but where and how to Run WordPress 5-minute Installation Wizard?
Replied on June 27 2017
Hey, If you have uploaded WordPress files, access your domain name via browser. You should be presented with WordPress five minute install.
Replied on August 14 2017
how to Run WordPress 5-minute Installation Wizard?
Replied on August 17 2017
Hey, Upload WordPress files, and visit your domain to start 5 minute wordpress installation
March 10 2020
July 15 2020
I am a beginner and this article I've found after deep research. And this is such an awesome content. Very helpful and understandable. Thanks, keep sharing!