Skip to content

Process of setting up wordpress in Digital Ocean's Droplet and then setting a website to make to add blog in domain/blog

Notifications You must be signed in to change notification settings

harsh6768/wordpress-droplet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 

Repository files navigation

wordpress-droplet

STEP 1. Create Droplet in Digital Ocean

Generate ssh key 🔑 🔐

Open a terminal and run the following command:

     ssh-keygen

You will be prompted to save and name the key.

Generating public/private rsa key pair. Enter file in which to save the key (/Users/USER/.ssh/id_rsa):

Next you will be asked to create and confirm a passphrase for the key (highly recommended):

   Enter passphrase (empty for no passphrase):
   Enter same passphrase again:

This will generate two files, by default called id_rsa and id_rsa.pub. Next, add this public key.

Copy and paste the contents of the .pub file, typically id_rsa.pub, into the SSH key content field on the left.

   cat ~/.ssh/id_rsa.pub

and then paste it and give some name to it.

STEP 2. SETUP LAMP(LINUX,APACHE,MYSQL,PHP) and install Wordpress in it and do setup of wordpress.

Follow below link and follow steps to install the lamp stack and setup wordpress.

https://github.com/harsh6768/setup-wordpresss-ec2

STEP 3. INSTALL PHP MYADMIN and open mysql database.

Directly go the bottom of the readme file.

https://github.com/harsh6768/deploy-in-ec2

Step 4. First Change Wordpress from root to sub directory.

1. Create sub-directory in /var/www/html path
      sudo mkdir blog
2. Copy and paste all the files of wordpress from root /var/www/html directory to /var/www/html/blog
      sudo cp -R ./wp*    ./blog/

3. Change post and other configuration like site url of this blog to PUBLIC_IP/blog

Step 5. Upload react project or website build in digital ocean droplet using FileZilla .

Step 1. Install FileZilla in your system

https://filezilla-project.org/

Step 2. Connect FileZilla with droplet to upload file from local system .

Enter details of the droplet server  to connect 

If you are getting above error then you need to configuration of sshd_config file so that you can connect with server using password

Step 3. Login to droplet server and edit the file sshd_config .

       vi  /etc/ssh/sshd_config

and then restart the sshd

       service sshd restart

Step 4. Now Come to FileZilla connect the server and upload the file

About

Process of setting up wordpress in Digital Ocean's Droplet and then setting a website to make to add blog in domain/blog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published