Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Sendy on DigitalOcean 2022

You can open the Marketplace tab and search for the current LAMP stack.

We will use the LAMP stack on a Basic plan for 5$/month.

php -v

# if php 8 then
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.0-curl
sudo apt-get install php8.0-curl
apt-get install php-xml
sudo apt-get install php8.0-xml
systemctl restart apache2
sudo systemctl reload nginx
sudo service apache2 restart

# Set up A record for domain and then
certbot --apache -d sub.domain.com
# certbot --nginx -d sub.domain.com -d www.sub.domain.com

mysql

# Run the following four linces copied/pasted at once.
create database sendy;
CREATE USER 'sendy_admin'@'localhost' IDENTIFIED BY 'PASS_HERE';
GRANT ALL ON *.* TO 'sendy_admin'@'localhost';
FLUSH PRIVILEGES;


# - Setup sendy/includes/config.php file
# Copy sendy to server
# - `rsync -av Downloads/sendy/ root@DO_IP_HERE:/var/www/html/`

chmod 777 /var/www/html/uploads/

sudo a2enmod rewrite && sudo service apache2 restart

# Now access your domain to install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment