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.
Still works in 2023! Couple of comments for people using this:
sudo apt-get install php8.0-curl
runs twice in this script, that's unnecessary.sudo systemctl reload nginx
is not necessary in the current version of the LAMP stack from DO Marketplace, so I skipped this one after it failed.Uncaught Error: Call to undefined function curl_init() in /var/www/html/includes/functions.php(1)
. Following the steps in this article, I got it to work by runningsudo apt-get install php-curl
and then restart apache usingsystemctl restart apache2
andsudo service apache2 restart
to be sure.