{"id":17500,"date":"2015-09-13T13:12:51","date_gmt":"2015-09-13T18:12:51","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17500"},"modified":"2022-12-12T08:03:36","modified_gmt":"2022-12-12T14:03:36","slug":"how-to-install-phplist-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-phplist-on-a-centos-7-vps\/","title":{"rendered":"How to install phpList on a CentOS 7 VPS"},"content":{"rendered":"
phpList is very popular and simple to use open source newsletter system which is designed for the dissemination of information, such as newsletters, news, advertising to list of subscribers. It allows users to add and manage email subscribers, create their own mailing lists and send email newsletters. phpList is written in PHP and uses a MySQL database to store the information. It is readily available and fairly easy to install on any Linux VPS<\/a> system.<\/p>\n <\/p>\n In this article we will guide you through the installation of phpList on a CentOS 7 VPS<\/a>.<\/p>\n REQUIREMENTS<\/strong><\/p>\n We will be using our SSD 1 Linux VPS<\/a> Hosting plan for this tutorial.<\/p>\n UPDATE THE SYSTEM<\/strong><\/p>\n As always, make sure your server is fully up-to-date with the command below:<\/p>\n INSTALL LAMP<\/strong><\/p>\n Your first step is to install Linux Apache, MariaDB & PHP or better known by LAMP<\/strong>. LAMP<\/strong> is actually an acronym for a web services solution stack consisting of Linux, the Apache HTTP Server, the MySQL or MariaDB database engines, and the PHP, Perl or Python programming language. Issue the following:<\/p>\n After the LAMP installation is complete, enable Apache and MariaDB to start on boot and start them with the below commands:<\/p>\n For further configuration tweaks on Apache, PHP and MariaDB, check our excellent blog post<\/a>.<\/p>\n Next run the MariaDB post-installation script mysql_secure_installation<\/em>:<\/p>\n Configure it like this:<\/p>\n Now that you have an active LAMP stack installed you need to create a database for phpList. Enter MariaDB as root:<\/p>\n INSTALL PHPLIST<\/p>\n We will download the phpList installation into the \/opt<\/em> directory, unpack it, move it to Apache’s document root and set the correct ownership with the commands below:<\/p>\n Now, our next move is to modify the phpList config file and enter the new database values:<\/p>\n While you are still editing the configuration file, change the value of the \u2018TEST\u2019 variable from 1 to 0 in order to disable the test mode.<\/p>\n Install a much needed PHP extension to avoid a known blank page issue when accessing a phpList installation procedure for the first time:<\/p>\n Restart Apache for the changes to take effect:<\/p>\n That is it. Now open your favorite browser and navigate to http:\/\/your_server_ip\/lists\/admin to finish the phpList installation. You will be welcomed by the following page:<\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n Initialize the database by clicking on Initialise Database. Now complete the configuration according to your needs.<\/p>\n That\u2019s all. If you followed the steps above phpList is successfully installed on your CentOS 7 VPS<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install phpList for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" phpList is very popular and simple to use open source newsletter system which is designed for the dissemination of information, … <\/p>\n# yum update<\/pre>\n
# yum install httpd openssl mod_ssl mariadb mariadb-server mysql unzip<\/pre>\n
# systemctl enable mariadb && systemctl enable httpd<\/pre>\n
# systemctl start httpd && systemctl start mariadb<\/pre>\n
# mysql_secure_installation<\/pre>\n
- Set root password? [Y\/n] y\r\n- Remove anonymous users? [Y\/n] y\r\n- Disallow root login remotely? [Y\/n] y\r\n- Remove test database and access to it? [Y\/n] y\r\n- Reload privilege tables now? [Y\/n] y<\/pre>\n
# mysql -u root -p\r\n\r\nMariaDB > create database phplist;\r\n\r\nMariaDB > grant all privileges on phplist.* to phplistuser@localhost identified by 'your_password';\r\n\r\nMariaDB > flush privileges;\r\n\r\nMariaDB > exit\r\nBye<\/pre>\n
# cd \/opt\r\n\r\n# wget -O phplist-3.0.12.zip http:\/\/prdownloads.sourceforge.net\/phplist\/phplist-3.0.12.zip?download\r\n\r\n# unzip phplist-3.0.12.zip\r\n\r\n# mv phplist-3.0.12\/public_html\/lists\/ \/var\/www\/html\/\r\n\r\n# cd \/var\/www\/html\/\r\n\r\n# chown -R apache: lists\/<\/pre>\n
# vim lists\/config\/config.php\r\n\r\n$database_host = \"localhost\";\r\n$database_name = \"phplist\";\r\n$database_user = \"phplistuser\";\r\n$database_password = 'your_password';<\/pre>\n
define (\"TEST\",0);<\/pre>\n
# yum install php-mbstring<\/pre>\n
# service httpd restart<\/pre>\n