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 new version
  • Unzip the files 
  • Back up your database
  • Back up your config.php
  • Replace old version on your server with new version
  • Replace new config.php with your back up
  • Upgrade database with automated updater 

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. 

phpList dashboard

 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. 

do I need to upgrade phpList? YES!new_version_notice_phpList_dashboard.png

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

phpList upgrade downloadScreenshot-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).

phpList upgrade download new version

 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).

 phpList upgrade new version extract filesnew_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. 

phpList upgrade backup database cpaneldatabase_backup_phpList_1.png 

Locate your phpList database and click Backup. 

phpList upgrade backup database cpanel

 database_backup_phpList_2.png

Choose to Save File and click OK.

phpList upgrade backup database savedatabase_backup_phpList_3.png

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

phpList upgrade backup database 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. 

phpList upgrade backup config.phpconfig_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 ftp phpList_upgrade_1.png

You need chose to overwrite all files. 

phpList upgrade upload files via ftp replace all / overwritephpList_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 replace config.phpphpList_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 database error

 phpList_upgrade_4.png

Read the text, and click Upgrade 

 

phpList upgradephpList_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 successphpList_upgrade_6.png

Feedback

Discuss this chapter here.