Installing phpList on Windows 10
In this tutorial, we will guide you through the steps to install and set up phpList on Windows 10 operating system.
Prerequisites
Before we begin, you need to have the following:
- A web server (Apache or IIS) with PHP installed.
- Access to the command prompt or terminal.
- A reliable internet connection.
- Downloaded the latest version of phpList from the official website (https://www.phplist.com/).
Step-by-Step Tutorial
Step 1: Extract phpList
First, extract the zipped folder you downloaded from the phpList website to your computer's local disk.
Step 2: Set up a Database
phpList requires a database to work with. You can use either MySQL, PostgreSQL, or SQLite. In this tutorial, we will be using MySQL.
- Open the command prompt and type
mysql -u root -pto login to MySQL. - If you have not created any databases yet, then create a new database by typing
CREATE DATABASE phplist_db;and press enter. - Now, create a new user for the phpList database by typing
CREATE USER 'phplist_user'@'localhost' IDENTIFIED BY 'newpassword';and press enter. Make sure to replace the password field with a secure and strong password. - Finally, grant all privileges to the newly created user by typing
GRANT ALL PRIVILEGES ON phplist_db.* TO 'phplist_user'@'localhost';and press enter.
Step 3: Modify phpList Config Files
- Navigate to the extracted phpList folder and locate the config directory. Inside the config directory, you will find two files:
config.phpanddatabase.php. - Open the
config.phpfile with a text editor and set the following constants:
define("PHPMAILERHOST",'smtp.gmail.com');
define("PHPMAILER",1);
define("EMAIL_ADDRESS",'[email protected]');
define("PASSWORD",'yourpassword');
define("DATABASE_NAME",'phplist_db');
define("DATABASE_USER",'phplist_user');
define("DATABASE_PASSWORD",'newpassword');
define("DATABASE_HOST",'localhost');
Step 4: Move phpList to your Web Server
- Copy the entire phpList folder to your web server's document root directory (htdocs for Apache).
- Type
http://localhost/phplistin your web browser's address bar to access the phpList installation page.
Step 5: Install phpList
- On the phpList installation page, click on "Install phpList".
- On the next page, you will be prompted to enter your database details. Enter the database name, username and password that we created in step 2.
- Click on "Save" to save the details and complete the installation process.
Congratulations! You have successfully installed phpList on your Windows 10 operating system.