# Upgrading a manual installation

<p class="callout info">This page concerns phpList self-hosted users only. If you have a registered account at the phpList Hosted service, please contact hosted@phpList.com.</p>

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 soon you can.*

## Overview

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

- [Download](https://www.phplist.org/download-phplist/) 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](https://www.linode.com/docs/databases/mysql/use-mysqldump-to-back-up-mysql-or-mariadb/))
- Copy your [config.php file](https://www.phplist.org/manual/books/phplist-manual/page/installing-phplist-manually#bkmrk-edit-the-phplist-con)
- 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](http://announce.phplist.org/?p=subscribe&id=1).

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** &gt; **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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/LAc3q6F3faOpTscU-IMG_20190629_210414.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/LAc3q6F3faOpTscU-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/NcLFMz9jYew90sSz-new_version_notice_phpList_dashboard.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/NcLFMz9jYew90sSz-new_version_notice_phpList_dashboard.png)

This will take you to [www.phplist.org/download-phplist/](https://www.phplist.org/download-phplist/), where you click **DOWNLOAD ZIP** or **DOWNLOAD TGZ**.

[![Download-phplist.png](https://www.phplist.org/manual/uploads/images/gallery/2020-10/scaled-1680-/F9wSIJ2su7LLXauu-Download-phplist.png)](https://www.phplist.org/manual/uploads/images/gallery/2020-10/F9wSIJ2su7LLXauu-Download-phplist.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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/N0D74qD9nL4Awf9a-new_version_download_phplist_2.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/N0D74qD9nL4Awf9a-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/gJacZUonjh0N4KGO-new_version_download_phplist_3.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/gJacZUonjh0N4KGO-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/EITEzzyP79jhugiy-database_backup_phpList_1.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/EITEzzyP79jhugiy-database_backup_phpList_1.png)

Locate your phpList database and click **Backup**.

[![database_backup_phpList_2.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/gO3oetP9S2o0zdit-database_backup_phpList_2.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/gO3oetP9S2o0zdit-database_backup_phpList_2.png)

Choose to **Save File** and click **OK**.

[![database_backup_phpList_3.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/BlGemX8R5jtzNlsn-database_backup_phpList_3.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/BlGemX8R5jtzNlsn-database_backup_phpList_3.png)

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

[![database_backup_phpList_4.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/RhRCn1r92aYiBFNB-database_backup_phpList_4.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/RhRCn1r92aYiBFNB-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 the screenshot below we used Filezilla and the config.php file was simply dragged and dropped onto into the backup folder.

[![config_backup_phpList.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/HyKZf1ANHnNZcT9h-config_backup_phpList.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/HyKZf1ANHnNZcT9h-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/WQWvjfungjpsJiyN-phpList_upgrade_1.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/WQWvjfungjpsJiyN-phpList_upgrade_1.png)

You need chose to overwrite all files.

[![phpList_upgrade_2.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/FNIEVG8F76x8bJen-phpList_upgrade_2.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/FNIEVG8F76x8bJen-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/21YtkFjPlO8AYPr6-phpList_upgrade_3.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/21YtkFjPlO8AYPr6-phpList_upgrade_3.png)

## Update your database

Finally, log in to your installation (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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/SVqhiDmQaqJRa0Oe-phpList_upgrade_4.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/SVqhiDmQaqJRa0Oe-phpList_upgrade_4.png)

Read the text, and click **Upgrade**.

[![phpList_upgrade_5.png](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/pLMLAkgkZusQl0Nk-phpList_upgrade_5.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/pLMLAkgkZusQl0Nk-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](https://www.phplist.org/manual/uploads/images/gallery/2019-06/scaled-1680-/t3tMfUHCTXRj5eeZ-phpList_upgrade_6.png)](https://www.phplist.org/manual/uploads/images/gallery/2019-06/t3tMfUHCTXRj5eeZ-phpList_upgrade_6.png)

## Feedback

Discuss this chapter [here](https://discuss.phplist.org/t/upgrading-manually-manual-chapter-feedback-and-discussion/215).