To install WordPress on two domains with SSL on the same DigitalOcean droplet using PuTTY, follow these steps:
Step 1: Log in to your DigitalOcean account
Log in to your DigitalOcean account at https://cloud.digitalocean.com. If you don't have a droplet yet, create one with Ubuntu 20.04 LTS as the operating system. You'll need the droplet's IP address and password.
Step 2: Connect to the droplet via PuTTY
Download PuTTY (https://www.putty.org/) and install it on your computer.
Open PuTTY and enter your droplet's IP address in the "Host Name (or IP address)" field.
Click "Open" to initiate the SSH connection.
Log in as "root" and enter your droplet's password when prompted.
Top comments (1)
Create a DigitalOcean Droplet:
a. Log in to your DigitalOcean account.
b. Click on the "Create" button and select "Droplets".
c. Choose a plan, select a datacenter region, and select the "Ubuntu" operating system.
d. Select "One-click apps" and then choose "WordPress".
e. Choose a hostname for your Droplet and click on "Create Droplet".
Connect to your Droplet:
a. Wait for the Droplet to be created and then click on the "Access" button.
b. Select "Console access" and then log in to your Droplet using your root username and password.
Update the Droplet:
a. Once you're logged in to your Droplet, run the following command to update the system:
sudo apt-get update && sudo apt-get upgrade
Install WordPress:
a. Run the following command to install WordPress:
sudo /opt/wordpress/wp-cli/bin/wp core install --url=YOUR_DOMAIN_NAME --title="YOUR_SITE_TITLE" --admin_user=YOUR_USERNAME --admin_password=YOUR_PASSWORD --admin_email=YOUR_EMAIL_ADDRESS
Note: Replace YOUR_DOMAIN_NAME, YOUR_SITE_TITLE, YOUR_USERNAME, YOUR_PASSWORD, and YOUR_EMAIL_ADDRESS with your own values.
b. Wait for the installation to complete.
Configure Apache:
a. Run the following command to configure Apache:
sudo nano /etc/apache2/sites-available/000-default.conf
b. Add the following code to the bottom of the file:
AllowOverride All
c. Save and close the file.
d. Restart Apache:
sudo systemctl restart apache2
Configure Firewall:
a. Run the following commands to configure firewall:
sudo ufw allow in "Apache Full"
sudo ufw allow ssh
sudo ufw enable
b. Verify the status of the firewall:
sudo ufw status
Complete the WordPress installation:
a. Open a web browser and go to YOUR_DOMAIN_NAME/wp-admin/.
b. Log in to WordPress using the admin credentials you created earlier.
c. Configure your WordPress site and start