Being full of a vast number of plug-ins, it is beneficial for nearly every industry and for businesses of any size. While WordPress is based on PHP, CSS, and HTML, users are not required to know coding to use its content management system. Thus, it’s easy to make a self-hosted WordPress website. But before starting any operation over WordPress, you’ll need to have your own domain name and hosting.
Also, it’s important to download and unzip the WordPress package. Moreover, upload the WordPress files to the desired location on your web server and then edit the file and add your database. If you want to integrate WordPress into the root of your domain, then move or upload all content of the unzipped WordPress directory into the root directory of your web server. If you want to have your WordPress installation to your sub directory on your website, then create the blog directory on your server and upload the contents of the unzipped WordPress package to the directory.
Here is a step-wise guide for developing a WordPress website.
Step 1. Download and Extract
Download and unzip the WordPress package from https://wordpress.org/download/. If you will be uploading the WordPress package to a remote web server, then download the WordPress package to your computer with a web browser and unzip the package. If you have shell access to your web server and capable of using console-based tools, you can download WordPress directly to your web server by using wget. And, if you want to avoid FTPing, visit https://wordpress.org/latest.tar.gz and unzip the package using: tar -xzvf latest.tar.gz.
Step 2: Create the Database and a User
If you are using a hosting provider, chances are you may already have a WordPress database, or there may be an automated setup solution. You need to check your hosting provider’s support pages or your control panel to analyze whether or not you’ll need to create one manually. In case you find the need to create one manually, follow the instructions for accessing phpMyAdmin on various servers, or follow the instructions for using Plesk, Using cPanel or Using phpMyAdmin. And, if you are installing WordPress on your web server, follow the instructions for using phpMyAdmin below to create your WordPress username and database. If you have only one database, you can install WordPress in it- just make sure to have a distinctive prefix for your tables to avoid over-writing any existing database tables.
If your web server already has phpMyAdmin installed, you can create your WordPress username and database. And, if you work on your computer, you can install PhpMyAdmin automatically. Next, you need to enter the chosen database name in the “Create database field” and select the best collation for your language and encoding. We suggest choosing the “utf8_” series and “utf8mb4_general_ci”. And, click the phpMyAdmin icon in the upper left to return to the main page, then click the Users tab. In case a user related to WordPress does not already exist in the list, create one by using the followings steps:
- Click on “Add user”.
- Select a username for WordPress and enter it in the “User name” field.
- Set a strong password in the Password field. Re-enter the password in the “Re-type” field to finalize it.
- Log in by filling the username and password.
- Leave all options under defaults.
- Click Go.
- Return to the Users screen and click the “Edit privileges” icon.
- In the Database-specific privileges section, select the database you’ve just created for WordPress under the “Add privileges” and click Go.
- Click “Check All” to select all privileges, and click on “Go”’.
- On the resulting page, make note of the hostname listed after Server: at the top of the page.
Step 3: Set up wp-config.php
You can either create or edit the wp-config.php file, or skip this step and let WordPress do this itself when you run the installation script. Return to where you extracted the WordPress package in Step 1, rename the file wp-config-sample.php to wp-config.php, and open it in a text editor. Enter your database information under the section labeled as // ** MySQL settings – You can get this info from your web host ** //.
The name of the database you created for WordPress in Step 2.
The username you created for WordPress in Step 2.
The password you chose for the WordPress username in Step 2.
The hostname you determined in Step 2 (usually local host, but not always; see some possible DB_HOST values). If a port, socket, or pipe is necessary, append a colon (:) and then the relevant information to the hostname.
The database character set, normally should not be changed (see editing wp-config.php).
The database collation should normally be left blank (see Editing wp-config.php).
Enter your secret key values under the section labeled
* Authentication Unique Keys.
Save the wp-config.php file.
Step 4: Upload the Files
Now you will need to decide where on your domain you’d like your WordPress-powered site to appear:
In the root directory of your website. (For example, http://example.com/)
In a sub directory of your website. (For example, http://example.com/blog/)
Remember that the location of your root web directory in the file system on your web server will vary across operating systems and hosting providers. If you cannot find where your file is, check with your hosting provider or system administrator.
In the Root Directory
For uploading your files to your web server, you can use an FTP client to upload all the contents of the WordPress directory into the root directory of your website. If your files are already on your web server, and you are using shell access to install WordPress, then you should move all of the contents of the WordPress directory into the root directory of your website.
In a Sub directory
If you need to upload your files to your web server, rename the WordPress directory to your desired name, then use an FTP client to upload the directory to your desired location within the root directory of your website. If your files are already on your server, and you are using shell access to install WordPress, move the WordPress directory to your desired location within the root directory of your website, and rename the directory to your desired name.
Step 5: Run the Install Script
Point a web browser to start the installation script.
The command for installing the script varies on the basis of the location where you have placed your WordPress files. For instance- if you have placed it in the root directory, visit http://example.com/wp-admin/install.php. However, if it’s placed in a subdirectory called a blog, for example, you should visit http://example.com/blog/wp-admin/install.php.
Setup configuration file
If WordPress can’t find the wp-config.php file, it will tell you and offer to try to create and edit the file itself. (You can also do this directly by loading wp-admin/setup-config.php in your web browser.) WordPress will ask you the database details and write them to a new wp-config.php file. If this works, you can go ahead with the installation; otherwise, go back and create, edit, and upload the wp-config.php file yourself (step 3).
Remember that in entering the details screen, you enter your site title, your desired user name, your choice of a password (twice), and your e-mail address. Also, tick the checkbox if you would like your blog to appear in Google Search, and unchecked if you want it to be visible to everyone, including search engines, and check the box if you want to block search engines, but allow normal visitors.
WordPress is easy to use but one need to gain sufficient knowledge about the various commands that have to be used. It might be complicated for a beginner to develop a WordPress website and you may find yourself looking for some quick answers. The good news is that you can find plenty of free articles, blogs, and questionnaires related to them. However, if you are still not able to create your website, then feel free to ask us for help. Our experienced team of developers can provide you with a high-quality website, that too at an affordable price.