sales@arkayapps.com
+91 932-709-3554
Inquiry Now
  • Home
  • Portfolio
  • Products
  • Services
    • Mobile App Development
    • Web Design and Development
    • Digital Ocean Services
  • Blog
  • Get in Touch
  • Home
  • Portfolio
  • Products
  • Services
    • Mobile App Development
    • Web Design and Development
    • Digital Ocean Services
  • Blog
  • Get in Touch
  • Home
  • Portfolio
  • Products
  • Services
    • Mobile App Development
    • Web Design and Development
    • Digital Ocean Services
  • Blog
  • Get in Touch
  • Home
  • Portfolio
  • Products
  • Services
    • Mobile App Development
    • Web Design and Development
    • Digital Ocean Services
  • Blog
  • Get in Touch
Blog
Home Cloud Server Setup WordPress on DigitalOcean Cloud Server
Cloud ServerWordPress

Setup WordPress on DigitalOcean Cloud Server

Harsh Gor Harsh Gor December 19, 2019 0 Comments

Digital Ocean is a fastest-growing developer-friendly cloud hosting solution companies focus on simplicity and scale. Today we are going to learn how to set up (Install) and configure WordPress on DigitalOcean Cloud Server Droplet.

Getting started, you need a domain name to use this One-Click, which you can purchase from any domain registrar You can purchase it from Google Domains, Godaddy, etc.  

If you do not have DigitalOcean account you can create one and get $100 Free credit.

Let’s start step by step WordPress setup.

Step 1: Create a droplet

  • Choose an image, go to the marketplace and select WordPress on 18.04.

  • Complete the remaining droplet creation steps.

After that, you’ll need to log into the Droplet via SSH to finish the WordPress setup. This restricts the setup wizard from being visible to the internet until you’re ready to complete it. If you try to visit the Droplet’s IP address before logging into the Droplet, you’ll see a DigitalOcean landing page.

 

Step 2: Access Droplet via SSH

  • Start terminal on your local computer, connect to the Droplet as root. Make sure to substitute the Droplet’s IP address.

1
ssh root@use_your_droplet_ip

If you did not add an SSH key when you created the Droplet, you’ll first be prompted to reset your root password.

Then, the interactive script that runs will first prompt you for your domain or subdomain.

 

Step 3: Set domain

An A record from the domain (e.g., your-domain.com) to the server’s IP address.

An A record from the domain prefaced with www (e.g., www.your-domain.com) to the server’s IP address.

Next, the script will ask you to enter your domain.

Step 4: Setup WordPress administrative user

Next, the script will ask you to create the administrative user for your new WordPress blog. These are the credentials you will later use to log into your new site from your browser.

  • Enter the email for the admin user which is used for password recovery if needed.

  • Set a username and password.
  • Now enter the Blog Title – This can be changed later through the web interface.

Step 5: SSL(https) configuration

The next step asks if you want to use SSL for your website via Let’s Encrypt, which we recommend.

  • Next, you have the option of configuring LetsEncrypt to secure your new site. Before doing this, be sure that you have pointed your domain or subdomain to this server’s IP address. You can also run LetsEncrypt certbot later with the command ‘certbot –apache’.

1
Would you like to use LetsEncrypt (certbot) to configure SSL(https) for your new site? (y/n): y

  • Next, you have the option to choose https over http to redirect your traffic.

If you like to redirect all your traffic then select 2 otherwise select 1.

After you respond to these prompts, you’ll see a confirmation message.

WordPress has been enabled at http://your-domain.com Please open this URL in a browser to complete the setup of your site.

At this point, you should visit the Droplet’s IP address in your browser to see your new site and visit http: //[your_domain]/wp-admin to manage it.

Once the installation is complete, you can use the WordPress admin dashboard to customize the new site.

For reference:

  • The MySQL root password is in /root/.digitalocean_password.
  • The web root is /var/www/html, and the WordPress configuration file is /var/www/html/wp-config.php.

 

In addition, We recommend you take a few customized setup steps:

when hosting multiple sites creating an Apache virtual host file for each site maintains the default configuration as the fallback, as intended, and makes it easier to manage changes.

To do so, you’ll need to create two things for each domain: a new directory in /var/www for that domain’s content, and a new virtual host file in /etc/apache2/sites-available for that domain’s configuration.

If you didn’t enable HTTPS during the initial setup script, you can enable it manually at any time after the fact.

Setting up an SSL certificate set up HTTPS on the webserver, which secures the traffic between the server and the clients connecting to it. Certbot is a free and automated way to set up SSL certificates on a server. It’s a part of the WordPress One-Click to make securing the Droplet easier.

To use Certbot, you will need a registered domain and two DNS records:

  • An A record from the domain (e.g., your-domain.com) to the server’s IP address
  • An A record from the domain prefaced with www (e.g., www.your-domain.com) to the server’s IP address

Additionally, if you’re using a virtual hosts file, you’ll need to make sure the server name directive in the VirtualHost block (e.g., ServerName your-domain.com) is correctly set to the domain.

Once the DNS records and, optionally, the virtual hosts files are set up, you can generate the SSL certificate. Make sure to replace the domain in the command.

CMD – certbot –apache -d your-domain.com -d www.your-domain.com

HTTPS traffic on port 443 is already allowed through the firewall. After you set up HTTPS, you can optionally deny HTTP traffic on port 80:

CMD – ufw delete allow 80/tcp

 

Reference:

[1] https://marketplace.digitalocean.com/apps/wordpress

90
1312 Views
Harsh Gor
AboutHarsh Gor
Harsh is a highly skilled and dedicated backend developer who's always ready for new challenges. His specialties include React.js, Amazon Web Services, Python, REST API, and PostgreSQL. He enjoys constantly learning and developing new skills, and he is familiar with many programming languages, libraries, and frameworks.
What is load balancer? How to setup load balancer in DigitalOceanPrevWhat is load balancer? How to setup load balancer in DigitalOceanNovember 30, 2019
Reason to choose Digital Ocean cloud server for your business.December 27, 2019Reason to choose Digital Ocean cloud server for your business.Next

Related Posts

Cloud Server

Reason to choose Digital Ocean cloud server for your business.

DigitalOcean Cloud server popular in a startup as well as a business because...

Arkay Apps Arkay Apps December 27, 2019
Cloud Server

How to Host multiple website on One Droplet on Ubuntu Linux 14.04 LTS.

How to set up multiple domains in one droplet Digital Ocean.Now DigitlOcean cloud...

Arkay Apps Arkay Apps December 25, 2018
Categories
  • Android 3
  • Cloud Server 5
  • Database 1
  • Digital Marketing 1
  • Education 2
  • Flask 1
  • Graphic Design 1
  • Python 1
  • Ready Mix Concrete ERP Software 1
  • SEO 2
  • Startup Idea 3
  • Version Control 1
  • Web Designing 2
  • Web Development 2
  • WordPress 2
Recent Posts
  • Ready Mix Concrete ERP: Customise Ready Mixed Concrete ERP Software
  • Global Downfall, crises and opportunities in EdTech
  • What Makes a Photo editing app a Desirable One?
  • New Ideas for Educational App Startups that should check out in 2020
  • People & Identity – Conversation notifications new features!
Recent Comments
  • Arkay Apps on GK In Gujarati
  • Arkay Apps on Property Or Real Estate Listing Android App Source Code
  • Arkay Apps on Property Or Real Estate Listing Android App Source Code
  • Darty Mulimaposho on Property Or Real Estate Listing Android App Source Code
  • Arkay Apps on GK In Gujarati
For Work Inquiry
Email: sales@arkayapps.com
India: +91 932-709-3554
For Career Inquiry
Email: career@arkayapps.com
India: +91 932-709-3554
Bhuj
 174, Time Square Empire, SH 42 Mirjapar Highway, Bhuj, Gujarat 370001
Email: info@arkayapps.com
Phone: +91 932-709-3554
Bengaluru
No.3, Silver Palms, Palmgrove Rd, Victoria Layout, Bengaluru, Karnataka - 560047
Email: info@arkayapps.com
Phone: ‭+91 804-377-9545‬
U.S.A
20128 Bar Garbor Terrace
Ashburn
VA 20147, USA
Email: info@arkayapps.com
Privacy Policy | Disclaimer

Copyright © by Arkay Apps. All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. By continuing the site you are agreeing to cookies. Privacy policyOkay