phpList is open-source software for managing email campaigns. To install phpList on your Ubuntu Server, you can follow the steps below.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 mysql-server php libapache2-mod-php php-mysql php-mbstring php-xml
sudo mysql -u root -p
Enter your MySQL root password, and then run the following commands:
CREATE DATABASE phplist;
GRANT ALL PRIVILEGES ON phplist.* TO 'phplist'@'localhost' IDENTIFIED BY 'PASSWORD';
FLUSH PRIVILEGES;
exit
Note: Replace 'PASSWORD' with your preferred password.
cd /tmp
wget https://phplist.org/latest.zip
unzip latest.zip -d /var/www/html/
sudo chown -R www-data:www-data /var/www/html/phplist/
cd /var/www/html/phplist/
cp config/config.sample.php config/config.php
sudo nano config/config.php
$config['database_host'] = 'localhost';
$config['database_name'] = 'phplist';
$config['database_user'] = 'phplist';
$config['database_password'] = 'PASSWORD';
Note: Replace 'PASSWORD' with the password you set for 'phplist' user in Step 3.
Save and close the file.
Set the proper permissions for the cache and attachment directories:
sudo chown www-data:www-data lists/config/ && sudo chmod 755 lists/config/
sudo chown www-data:www-data upload/ && sudo chmod 755 upload/
sudo systemctl restart apache2
http://YOUR_DOMAIN_NAME_OR_IP_ADDRESS/phplist/
Follow the on-screen instructions to install and setup phplist.
That's it! You have successfully installed phplist on your Ubuntu Server.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!