phpList is an open-source mailing list management software that can be used to send newsletters, campaigns, and notifications to subscribers. Here's how you can install phpList on OpenBSD.
Note: The following steps assume that you already have a web server, like Apache installed and configured on your OpenBSD system.
Run these commands to install PHP and its dependencies:
sudo pkg_add php php-mysqli php-pdo_mysql php-mbstring php-xmlrpc php-gd
Download the latest version of phpList from https://www.phplist.com/download and extract the downloaded archive to your web server's document root.
cd /var/www/htdocs
sudo wget https://sourceforge.net/projects/phplist/files/phplist/3.6.2/phplist-3.6.2.tgz
sudo tar -xvzf phplist-3.6.2.tgz
phpList requires some settings to be enabled in your PHP configuration file. You can edit /etc/php.ini
and make sure the following settings are enabled:
max_execution_time = 120
max_input_time = 120
memory_limit = 128M
Make sure the following directories and files have the correct permissions:
chown -R www:www /var/www/htdocs/phplist
chmod -R 755 /var/www/htdocs/phplist/lists/admin
chmod -R 755 /var/www/htdocs/phplist/tmp
Set up a MySQL database for phpList and create a user with privileges to access it. Then, go to lists/admin
and run index.php
in your web browser. The setup wizard will guide you through the process of connecting phpList to the database.
Configure your Apache web server to serve phpList. Add the following lines to your Apache virtual host configuration file:
Alias /lists /var/www/htdocs/phplist/lists
<Directory /var/www/htdocs/phplist/lists>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
You can now access phpList by navigating to your web server's URL, followed by /lists/admin
.
For example, http://localhost/lists/admin
You have successfully installed phpList on OpenBSD. You can now use it to manage your mailing list and send newsletters, campaigns, and notifications to your subscribers.
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!