Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Step 1: Backup

  1. Before proceeding, ensure your server meets the latest system requirements.
  2. Download a backup of all files to your local computer using an FTP program.
  3. Export a backup of your database using the Manual Database Backup tutorial.
  4. Make a note of any customizations you have made that you wish to reapply after upgrading.

Step 2: Downloading and Uploading the Files

  1. Download the full download or the incremental download.

    Info

    If an incremental download is not available for your current version, the full download will need to be used.


  2. If you wish to preserve any customizations you have made please see our tips below.  If you do not have any customizations to preserve, continue to step 3.
  3. Upload all files from the new version download except defaults.php to your current files overwriting them.
Note
titleAdmin Folder Name

If you have renamed the administrator folder from its original "cp" name, make sure to upload the contents of the "cp" folder from the .zip download to your custom named admin folder. 

 

Step 3: Running the Upgrade Process

Note
titleDisable Plugins

Disable any plugins that are not compatible with the version being upgraded to.

  1. Run the upgrade process by loading the /install/index.php file in your browser (example: http://www.domain.com/install/index.php).
  2. Select the "Upgrade" option and you will be walked through the upgrade process.
  3. Once the upgrade process is complete delete the /install/ folder.

Reapplying Customizations (Optional)

If customizations were made to the code or the template and the files that these changes were made to were overwritten during the upgrade, you may need to reapply your custom changes.
We suggest keeping track of the files and approximate line numbers of any changes you make.  This will be beneficial information when reapplying customizations.

Info
titleTemplate Changes

Template changes between releases may be viewed and compared using our template repository.

https://bitbucket.org/phpmydirectory/phpmydirectory-templates/overview

A good way to accomplish reapplying custom code is to use a compare and merge tool to merge your current files with the new version files you are upgrading to.

  1. Download your current files into a folder on your home computer.
  2. Extract the new version .zip file into a separate folder.
  3. User the compare and merge tool to compare the two folders.
  4. The tool will determine the differences and you may reviews these to make the needed changes.
  5. Re-upload the merged files and continue with the upgrade process as normal.
Tip
titleCompare and Merge Tools

Troubleshooting

  • Some users have found it necessary to copy the php.ini file into the install directory.
  • Also, some users have found they needed to add "AddType x-mapp-php5 .php" in .htaccess for various reasons. Sometimes the host machine may support php5, but run in php4 by default. While older versions of phpMyDirectory may have ran on php4, it is a requirement to have php 5.2.1+ for PMD 1.3.4+ as noted System Requirements.
  • If you are having problems with the paging system when looking at multiple pages of category results. I.E. yourpage.com/category/some-category/?page=2 you might need to add QSA to your .htaccess files.
    Example: RewriteRule ^category\/(.+)$ browse_categories.php?id=$1 [L,NC,QSA]

See Also

Children Display
pageUpgrading