WordPress is probably the best content management system (CMS) there is, used by more than 30% of the top-ranked websites in the world. It’s a free open-source system that can be custom-developed to suit your needs and allow you to maintain your website online easily.
You have two choices to install WordPress, the first is on your website hosting server. Sometimes, people want to work on their website offline, so you can also install your website on your computer. I like to do both myself, so take the time and learn them both and you will be able to do so much more.
Install WordPress on Your Website Host
In order to install WordPress on your website hosting account, you should have a website hosting account and a domain name. Please read the links for website hosting and domain names to get that taken care of so you can install it on your website hosting account. The other option is to go straight to installing WordPress on your local computer.
- Download the latest version of WordPress.
- Extract the files from the downloaded file. This will be important to do before you upload to your hosting server to make it easy for you.
- Now that you’ve extracted the files, you will navigate to the WordPress folder and zip those files into a zip file named wp for example or whatever you want.
- Upload the new zip file to your web hosting account. You can do this two ways, with the help of FTP software or through your website hosting account.
- Extract the uploaded zip file to your domain directory where you will be installing WordPress.
- Create a MySQL database or MariaDb database, this will be needed to hold your WordPress content and other configuration items, WordPress will not work without the database connection.
- Go to the domain where you’ve extracted the WordPress files to begin the installation process. Please note, it’s best to install WordPress using your https protocol prior to your domain name so it’s secure from the beginning.
- Select your language and press continue.
- Gather your database information and select Let’s Go.
- Input your database information, if your host did not provide a database host name, it is usually just localhost. DO NOT change the table prefix unless you have a reason for doing so such as multiple installations of WordPress in the same database or something along those lines. After you have entered your database information press submit. If you entered everything correctly, you should get a “run the installation” screen.
- Press run the installation to continue.
- Input your WordPress website information, this includes Site Title, username, password and email. I like to use the generated passwords and just save them somewhere, but if you have a complex password enter it here. It should be complex to keep bad people out of your website.
- You have successfully installed WordPress, no click on Log In to continue.
- Enter your username and password.
- Congratulations, you have installed WordPress.
Install WordPress on Your Computer
Sometimes we need to install a website on our computer to test out new features before going live, to learn programming, or many other reasons.
In order to install WordPress on your computer, you will need to install some software that will make your computer act like a web server.
- Download XAMPP software and install. You will need to download the software version for your computer, such as if you have a Windows operating system or a MAC, then select Linux.
- Open XAMP and click on Start for the highlighted options below Apache, MySQL, and FileZilla.
- Click on explorer and this will open the server folder on your local computer for XAMPP. After the folder opens go to htdocs and make a folder that will represent your website. DO NOT use spaces if you decide to use multiple words for the name. So web design world would be named webdesignworld, not I didn’t use any capital letters as well. This is just a good practice for anything website or database related.
- Now, starting at step 5 above, move your wordpress files into the folder you just created. You should extract the files so they are in the folder you created, not within another folder.
- Next go to your XAMPP control panel and click on Admin for MySQL, this will open your database server.
- Click on New to create a new database.
- Give your database a name, should be similar to your domain folder, no spaces or capital letters so it’s easy to remember the name. Now click on create.
- Open your web browser and type in the address bar localhost/websitename. This is the name of the folder you created in step 3 above. You should now see an Installation screen for WordPress to select the language.
- Follow the steps above under How to Install WordPress on Your Website Host starting at step 8. Use the following information on the database setup screen.
- Database Name is whatever you named the database in step 6.
- Username is root
- Password should be blank, delete any default password in the box and leave blank.
- Database Host is localhost
That should be it. You should now have WordPress installed on your computer.