Install Sendy in a subdomain in DigitalOcean
Requirements
Installations Steps
Login to DNSMadeEasy to find a domain e.g. nascentnexus.com
Go to DNS dropdown option and choose "Managed DNS"
Enter the domain you have in mind in the search box on the left
You are now the domain control panel. We will go back to this after we create a digitalocean droplet
Log in to your digitalocean account and click the "Create Droplet" button at the top
Choose from options below
In the hostname, enter the
you choose on the DNSMadeEasy step, e.g. sample.nascentnexus.com Wait for the droplet to finish installation
When it's done copy the IP Address
Go back to DNSMadeEasy domain control panel and enter the IP address when you create an "A Record"
You should see the submdomain you created in the "A Records List"
Open terminal and ping the submodomain you created to make sure the IP Address is correct
We now SSH into our digitalocean droplet.
![Screen Shot 2016-01-21 at 10.12.29 PM]!(images/Screen Shot 2016-01-21 at 10.12.29 PM.png)
We need to download Vesta for our sendy requirements
Run this command in your terminal
wget http://vestacp.com/pub/vst-install.sh
You should get a file name
vst-install.sh
To run the installer, copy this command
bash vst-install.sh --nginx no --apache yes --phpfpm no --vsftpd no --proftpd no --exim no --dovecot no --spamassassin no --clamav no --named no --iptables no --fail2ban no --mysql yes --postgresql no --remi no --quota no
Press
y
to continue, and add intented emailJust press
return/enter
to continueThe setup will proceed. Wait until you see the screen below.
Save the credentials to our horse table document
Log in to your Vesta Control Panel. Click "Advanced" to see the options below, and proceed.
Log in with the credentials you have earlier when you finish the installation.
Go to the "WEB" menu, and "Edit" our domain.
Click the "IP Address" option to pick the IP Address of our droplet and save
Check your domain, it should output something like below
SSH back to your droplet
Go to your
public_html
folder of your domain, replace thesample.nascentnexus.com
with your own subdomain.domain.comcd /home/admin/web/sample.nascentnexus.com/public_html
Log in to your bitbucket account and go to our sendy repository
Clone using
HTTPS
to ourpublic_html
foldergit clone https://[email protected]/iamarmanjon/sendy.git
You should be prompt by your bitbucket password, enter to proceed
You should see the sendy folder in your current directory, go inside of this folder.
We need to create an
uploads
folder and change it's permissionmkdir uploads && chmod -R 777 uploads
Go back to Vesta Control Panel, we need to create an account for our database
Go to the
DB
menu and click the(+) button
to add a databaseEnter the credentials, note: the database name and user is on the right, they have admin as a prefix
Go back to our sendy folder
We need to edit our sendy credentials, open
includes/config.php
nano includes/config.php
We need to edit the following:
APP_PATH, $dbHost, $dbUser, $dbPass, $dbName
. We created those in our Vesta Control Panel.Make sure that the details you have are correct, below is a sample after the changes made.
To save the document,
Control + X
thenY
andEnter/Return
We can now setup sendy by going to the our
APP_PATH
url e.g. sample.nascentnexus.com/sendyYou should see the screen like this, enter the needed credentials from our horse stable
If successful you should be on a login screen
Enter the details and that ends our Sendy installation guide.