How To Setup PHPList Newsletter Manager in Linux
Setup PHPList Newsletter Manager in Linux
phpList is an open source software for managing mailing lists. It is designed for the spreading informations, such as newsletters, advertising to list of subscribers. It is written in PHP and uses a MySQLdatabase to store the information. It is subject to the terms of the Affero General Public License (AGPL).
Features
- Web Based Interface: Lets you write and send messages, and manage your email campaigns over the internet.
- Use the attributes you define in the emails you send, to make every email personal to the user who receives them.
- See how many users opened and clicked your email.
- Add attachments to your message.
- Limit the load on your server so it doesn' t overload.
- Limit the number of emails to specific domains to keep on the friendly side of their system administrators.
Install the LAMP setup
Execute the following command to install the LAMP setup
[root@linuxhelp Desktop]# yum install php php-mysql php-imap
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify,
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: epel.mirror.net.in
* extras: mirror.nbrc.ac.in
.
.
.
Dependency Updated:
php-cli.x86_64 0:5.6.22-1.el6.remi php-common.x86_64 0:5.6.22-1.el6.remi php-gd.x86_64 0:5.6.22-1.el6.remi
php-ldap.x86_64 0:5.6.22-1.el6.remi php-mysqlnd.x86_64 0:5.6.22-1.el6.remi php-odbc.x86_64 0:5.6.22-1.el6.remi
php-pdo.x86_64 0:5.6.22-1.el6.remi php-pgsql.x86_64 0:5.6.22-1.el6.remi php-process.x86_64 0:5.6.22-1.el6.remi
php-soap.x86_64 0:5.6.22-1.el6.remi php-xml.x86_64 0:5.6.22-1.el6.remi php-xmlrpc.x86_64 0:5.6.22-1.el6.remi
Complete!
Now start Apache and MySQL service.
[root@linuxhelp Desktop]# service httpd start Starting httpd: [ OK ] [root@linuxhelp Desktop]# service mysqld start Starting mysqld: [ OK ]
Download the phplist package
Download the phplist package by executing the following command.
[root@linuxhelp Desktop]# wget http://prdownloads.sourceforge.net/phplist/phplist-3.2.5.tgz?download
--2016-06-01 18:21:10-- http://prdownloads.sourceforge.net/phplist/phplist-3.2.5.tgz?download
Resolving prdownloads.sourceforge.net... 216.34.181.59
.
.
.
Saving to: “ phplist-3.2.5.tgz?download”
100%[=============================================================================> ] 5,827,613 74.7K/s in 91s
2016-06-01 18:22:48 (62.6 KB/s) - “ phplist-3.2.5.tgz?download” saved [5827613/5827613]
Extract the downloaded phplist package
Run the following command to extract the downloaded phplist package
[root@linuxhelp Desktop]# tar -xvf phplist-3.2.5.tgz?download
phplist-3.2.5/CODING.md
phplist-3.2.5/CONTRIBUTING.md
phplist-3.2.5/COPYING
.
.
.
phplist-3.2.5/tests/travis-ci/
phplist-3.2.5/tests/travis-ci/behat.yml
phplist-3.2.5/tests/travis-ci/config.php
Go to the extracted directory.
[root@linuxhelp phplist-3.2.5]# cd public_html
[root@linuxhelp public_html]# ls
index.html lists
Now copy the lists directory into web root directory.
[root@linuxhelp public_html]# cp -r lists/ /var/www/html/
Login the mysql server and create a new database and grant permission to this db.
[root@linuxhelp Desktop]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with or g. Your MySQL connection id is 3 Server version: 5.6.30 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. mysql> create database php_db Query OK, 1 row affected (0.06 sec) mysql> grant all on php_db.* to ‘ user1’ @’ localhost’ identified by ‘ _password_’ Query OK, 0 row affected (0.15 sec) mysql> flush privileges Query OK, 0 row affected (0.07 sec) mysql> quit Bye
Now go to the web root directory and open the copied file from public_html directory.
[root@linuxhelp Desktop]# cd /var/www/html/
[root@linuxhelp public_html]# cd lists/
List the lists directory and go to the config directory
[root@linuxhelp lists]# ls admin dl.php index.html js styles ut.php config images index.php lt.php texts [root@linuxhelp lists]# cd config/
Open the config.php file by using your favorite editor.
[root@linuxhelp config]# ls config_extended.php config.php [root@linuxhelp config]# vim config.php

Here enter the db details, username assigned for this db and password and do same changes in bounce column also

Replace Test 1 into Test 0

Now change the ownership and permission for that lists directory, present under web root directory.
[root@linuxhelp Desktop]# chown &ndash R apache.apache /var/www/html/lists
[root@linuxhelp Desktop]# chmod &ndash R 755 /var/www/html/lists
Open the browser and navigate to the following path.
http://locallost/lists/admin
or
http://server-ip/lists/admin
Now the phplist application will be opened

Choose initialize Database option. Fill the appropriate information and press continue

If you want to subscribe press subscribe button or select phpList Setup button.

Logout the phplist and login again with your assigned password and the default username is ‘ admin’ .

Now Start creating new campaigns, view campaigns, add/delete users, view statistics and many more features to explore from the Dashboard.

Comments ( 0 )
No comments available