Skip to main content

Upgrading a manual installation

You should upgrade your phpList installation frequently. By keeping up-to-date you can take advantage of the latest features in phpList which will make your work easier and help you advance your work.

Often, a new version will include security updates which are important to protect your data, and the personal details of your subscribers. 

Upgrading from phpList 2 (orange) to 3 (grey) works well - if you are still using phpList 2 please upgrade as soon as as you can.

Overview

If you installed phpList manually, this is the correct installation method for you. The process consists of the following steps:

  • Download the archive containing the new version to your server (e.g. to your home directory)
  • Decompress the files
  • Back up your database using your preferred method (e.g. using Mysqldump)
  • Copy your config.php file
  • Remove your old `lists` directory and replace it with the new one
  • Copy your backed-up `config.php` file over the default one in the new `lists/config/` folder
  • Login to the phpList admin interface and automatically upgrade the database following the prompt

When to update

You can sign up for email notification about new versions of phpList by subscribing to our announcements list.

When normal configuration/settings have been maintained, phpList will check for updates every 7 days. You can adjust the frequency of checks on the Config > Settings page, accessed via the main menu.

When a new version had been released you will receive a notice on your dashboard.

You can navigate to your Dashboard from any page in phpList by clicking the link at the top of the Navigation sidebar.

IMG_20190629_210414.png

If you see a notification saying "A new version of phpList is available!" then it's time to upgrade.

Downloading the new version

From your Dashboard notification, click Download.

new_version_notice_phpList_dashboard.png

This will take you to phpList.com/download, where you click DOWNLOAD ZIP or DOWNLOAD TGZ.

Screenshot-from-2019-06-28-16-00-09.png

You will be redirected to SourceForge, where your download will start after a few seconds.

Choose a place on your computer to store the file and click Save (your own operating system/browser may work differently).

new_version_download_phplist_2.png

Unzipping phpList

Once you have downloaded phpList to your computer, unzip it. You can usually do this by right clicking and choosing Extract Here (Linux, as in screenshot), double clicking the folder (mac) or right click "extract all" (windows).

new_version_download_phplist_3.png

Next you must back up your installation, this is a vital step as it will keep your data safe is anything goes wrong with the upgrade process.

Back up your database

The method of doing this will depend on your hosting provider. In this example we use cpanel. Click on the MySQL Databases icon.

database_backup_phpList_1.png 

Locate your phpList database and click Backup.

database_backup_phpList_2.png

Choose to Save File and click OK.

database_backup_phpList_3.png

Choose a location on your computer to save your database too, and click Save.

database_backup_phpList_4.png

Backing up your config.php

You also need to back up your config.php., which is usually located at public_html/lists/config/config.php on your server. You will need this file again later.

You can do this using an ftp client. In screenshot below we used filezilla and the config.php file was simply dragged and dropped onto into the backup folder.

config_backup_phpList.png 

If you have customized/altered any other files for some non-standard scenario you should back them up too.

Upload the new version

Next you need to upload the new version files to replace the files from the previous version. You can do this using an ftp client. This is similar to installing for the first time. In the screenshots below we used filezilla.

First we selected all the files within the public_html/lists folder on our pc, then we uploaded them to the public_html/lists folder on our server.

phpList_upgrade_1.png

You need chose to overwrite all files.

phpList_upgrade_2.png 

Replace new config.php with your own

Now you need to replace the new config.php file with the one you backed-up earlier, which has your system details already set up.

We did this using an ftp client.

phpList_upgrade_3.png 

Update your database

Finally, log in to your instillation (http://yourdomain.com/lists/admin).

You will see a big red box at the top of the screen telling you to upgrade your database. Click Upgrade.

phpList_upgrade_4.png

Read the text, and click Upgrade

phpList_upgrade_5.png

You will see a progress bar, and when the process has finished you will be told that you have successfully upgraded.

phpList_upgrade_6.png

Feedback

Discuss this chapter here.