Add Subdomains

Add a new Subdomain

on your Dedicated VPS configured with EasyESP



To follow this tutorial, you must have EasyESP installed previously:




1. Choose a name for your new Subdomain ( ex: pickout )

Copy the following script and paste it in the ‘area to be used once only below.
Change the_name_you_want with your new name ( ex: pickout ).

Then select, copy, ‘Right Clickon PuTTY window and hit ⤶ Enter .

sudo cp -p bkup-subdomain.sh subdomain.sh
sed -i -e 's/newname/the_name_you_want/g' subdomain.sh
./subdomain.sh
area to be used once only: * in this area the text will be deleted if you refresh this page !




2. Setup DNS records in Digital Ocean

Resume using PuTTy and run the following script:

cat /new_dns.cfg
The result looks like this:



Select all output result and save in the text file.



, click on your domain name and setup DNS records.




3. Deploy Let’s Encrypt certificates for your new Subdomain

Copy and paste the following script in the ‘area to be used once only below.
Change pickout and withyourdomain.com with your, then run it.

certbot certonly -d pickout.withyourdomain.com
area to be used once only: * in this area the text will be deleted if you refresh this page !

Then run this:

systemctl reload apache2



4. Upload your files

Using FileZilla upload your files in the folder: /var/www/pickout

Now you have:
Database name: pickout
Database user: pickout
Database password: your_db_password
Installation URL: https://pickout.withyourdomain.com
area to be used once only: * in this area the text will be deleted if you refresh this page !


You can repeat these 4 steps whenever you want to create a new subdomain.


Cart
Your cart is currently empty.