Learn more setting up WordPress in a subdomain on Cloud Servers with Nginx from our experts. Our WordPress Support team is here to help you with your questions and concerns.
WordPress in a subdomain on Cloud Servers with Nginx
If you are looking for a guide to help you install WordPress in a subdomain with Nginx, you are in luck. Our experts have put together these steps to help you get started:
- Before we begin, we have to ensure that we have the following:
- Nginx, PHP and MySQL are installed on the server
- Root access to the server
- Subdomain has been created and points to the server
- Then, log in to MySQL and create a new database for the subdomain as seen below:
CREATE DATABASE supportdb;
- Next, we must grant privileges to the database we created in the previous step and assign them a strong password as well.
grant all privileges on supportdb.* TO ‘bob’@’localhost’ identified by ‘strongpassword’
- Then, refresh the privileges and rules set to the database with the FLUSH PRIVILEGES command.
- Now, it is time to create a directory for the subdomain. After that we have to download the WordPress and then extract the archive files.
# mkdir /var/www/support.bobcaressupport.com
# cd /var/www/support.bobcaressupport.com
# wget http://wordpress.org/latest.tar.gz - Once we extract the files, we have to copy the files inside the created directory.
- Next, we are going to set the Nginx configuration. This involves creating a new file at /etc/nginx/sites-available.
# cd /etc/nginx/sites-available
# touch support.bobcaressupport.com .conf
- After that, we have to copy the following Nginx configuration and save it in the file and ensure the Nginx syntax is correct.
- Now, it is time to create a symlink. We can do this by activating the Nginx server block by linking it to the /etc/nginx/sites-enabled as seen below:
ln –s /etc/nginx/sites-available/support.bobcaressupport.com.conf /etc/nginx/sites-enabled/support.bobcaressupport.com.conf
- Finally, restart the Nginx and PHP processes:
# systemctl restart nginx.service
# systemctl restart php7.4-fpm.service - Now, we can finally, log in to the subdomain, and and click “Run the installation”.
- Next, choose the required language and click Continue.
- Then, we have to click Let’s go and enter the following details:
- Database name
- Username
- Password
- Database Host
- Table Prefix
Then, click Submit.
- In the next window, enter the following details:
- Site Title
- Username
- password
- Your email
- Search Engine Visibility
Then, click Install WordPress.
After the final step, we will be able to view the WordPress dashboard.
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
To sum up, our Support Techs introduced us to setting up WordPress in a subdomain on Cloud Servers with Nginx.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments