MODX Revolution update. Updating Modx Revolution to the latest version How to update modx version

Good afternoon, evening, night or morning, dear subscribers. Today I will tell you how to update your site on Modx Revolution to the latest version. Everything is quite simple and does not require special knowledge. And most importantly it is done fast enough, the most important thing is to do everything correctly and according to the instructions. I will be upgrading the site from 2.2.5 to 2.5.0. Most likely, after a while, the version will be 2.5.1 and higher, but the technique and update steps will remain the same. Shall we start?

Step 1. Clear the cache

Go to the admin panel and click on "Clear site cache"

Then go to your FTP client (or file manager), go to the core folder and delete the folder cache... After that, go to the admin panel again and click on " End all sessions»

Now we can move on to the next step.

Step 2. Make a backup of the site and database

This must be done MANDATORY, so as not to lose the working site in case of an unsuccessful attempt to update Modx Revo. Most likely, you can make an archive of the site and database from your hosting provider. If there is no such service, then it doesn't matter either, just duplicate the files on your FTP. This can be done using any file manager such as TotalCommander on Windows or Coda2 on Mac OSX.

Unfortunately, the MODX Revolution content management system does not provide the ability to update the CMS by pressing one button, as it is done in Wordpress and many other engines.

Therefore, at the initial stage of work, inexperienced users have difficulties keeping the CMS up to date. And to update it is vital (for the site, of course) is necessary.

IMPORTANT! Before starting the system update, be sure to make a backup copy of both the site files and the database. In case of an unsuccessful update, you can always return to the initial state.

The upgrade process for MODX Revolution is not much different from installing it cleanly on the server. The only thing to keep in mind is that you must not delete or overwrite the file. core / config / config.inc.php.

1. Downloading the MODX installation package

We go to the official site modx.com in the section " Download "And download the installation package. This section contains the standard version of the installer ( Traditional). Extended version ( Advanced) a little deeper - https://modx.com/download/other-downloads. Choose the appropriate package for your CMS.

2. Clearing the site cache

In the administrative panel of the site, select “ Management - Clear site cache».

After clearing the cache, we end all sessions: " Management - End all sessions»

3. Uploading files to the server

We upload the unpacked files of the installation package to our server. For package Advanced folders are called core and setup... There are only two of them. For the standard package ( Traditional) there are a little more folders.

Files can be uploaded both through the ftp client and using the hosting control panel. If you do this through the control panel, you can download the archive directly, and unpack it already on the server. It will come out faster. Deleting cache files through the control panel will also save you time.

4. Starting the update process

In order to update our engine, we do the same as when we started from scratch. Go to the address site.ru/setup, and then recall the installation instructions. The only difference is that the option is not selected " New installation", and " Updating an existing installation».

5. Check for update

At the end of the process, check if the version number has changed in the administrative interface. If everything went well, update the previously installed add-ons. Naturally, only those that require updating.

Make sure the installation files are removed from the server. This happens automatically at the last stage of the installation, provided that the checkbox for uninstalling the installation package is not unchecked, but it is better to play it safe and double-check it additionally.

Developer Bob Ray has created an add-on to make it easier to update Revo. More details about this add-on can be found on the page "". This is the name it has.

To speed up your sites on MODX Revolution, it is recommended to switch to PHP 7. In some cases, the difference is visible even to the naked eye. Server response time is also reduced, according to some sources, almost three times.

Kind time of the day, dear readers. Today I will show you how to update your MODX Evolution system to the latest version. In my example, I will be upgrading from 1.0.5 to 1.0.14. I have already updated my sites to the latest versions but ran into a problem with 1.0.14. To be honest, I don't even remember which one. Many where I looked for detailed instructions for updating this particular version, but I never found it. In the process of updating a site that needed it, I wrote this article. We will act step by step:

1. Making backups of files and databases

The best thing to do backups through the panel of your hosting company, since they create an archive and files are not lost there, but through ftp clients files can be lost

2. Download the latest version of MODX Evolution

Here is the official page for the most recent version of Modx Evo. Click on the " Traditional", the download of the archive will start. Unpack the files to the desktop

3. Rename system folders

Renaming folders assets and manager at assets_old and manager_old respectively. We do this in order not to once again upload these folders and files back if something goes wrong during the update process.

4. Save the config.inc.php file

Save the file to the desktop config.inc.phpwhich lies in the folder manager (well, now manager_old) / includes our site

5. Upload files to the server

From the downloaded archive, fill in the folders assets, manager, install and files index.php and index-ajax.php to the root of our site on Modx Evolution. Files index.phpand index-ajax.phpreplace.

6. Fill in the manager folder config.inc.php file

In the new folder manager you need to upload the configuration file config.inc.php with our database connection settings to make it clear to the MODX installer that we are doing an update and not a fresh install

7. Open the site and click install

We open the main page of our site and click on the link install now

8. Follow the update instructions

We will see the initial installation page of MODX Evolution version 1.0.14 (dated June 5, 2014), select Russian and click on (next)

9. Choose Update existing installation

Since we uploaded to the folder manager config file config.inc.php, we will already have it automatically selected "Update"

10. Install all add-ons

We leave everything as it is here, unless you renamed snippets and plugins. If so, then do not update, those additions that have made significant changes

11. Agree to the license terms and proceed with the installation


The program will check the capabilities of your server, and you need to agree to the license terms and click the button "Install"

11. Installation completed successfully


The installer will inform you about what has been updated and what has been installed. On the item "delete the folder and installation program files from my site" put a check mark (although it will be on by default) and press the "Close" button

12. Go to the admin panel


We see the long-awaited form for entering the admin panel, only with an updated design. We are happy. We go with the same username and password

12. Go to the site

We go to the site itself and see a not very pleasant picture. MODX swears "MODX encountered the following error while attempting to parse the requested resource:"... We are not upset, everything is fine, we just don't have some additions that we installed in addition to standard plugins and snippets in the assets folder, since it is new.

13. We upload add-ons from assets_old to assets

Download the folder to the desktop assets_old... Open a new folder on the site assets / snippets and check it against the assets_old / snippets folder. We check each snippet in the assets_old folder, and if any is not in the assets folder, upload it there. I got this picture

We do the same with plugins and modules. We go into the folder assets_old / plugins and check it against the folder assets / plugins, similarly with modules: assets_old / modules / from assets / modules... What is missing - fill in.

14. Images and site files

Similarly to snippets, modules and plugins, upload images and files from the assets_old / images and assets_old / files folders to assets / images and assets / files, respectively.

P.S. If in your folder assets there were some other files or folders, they also need to be copied to new assets... I only had files in images and files

15. We open the site and rejoice

The update was successful and in just 15 steps... Folders manager_old and assets_old can be deleted. You have got an updated admin panel design, improved work of scripts and system plugins, faster work CMS MODX Evolution and the most important thing HIGHER SECURITY in comparison with previous versions and especially 1.0.5.

P.S. Refinement of snippets and plugins

If your spippets and plugins have never been changed, then you have nothing to worry about, but most of them change snippets such as ajaxSearch or ditto... This primarily concerns the editor TinyMCE, as on all sites that I updated, this editor does not work correctly. I will make small articles and explain how to cope with this or that problem. The first article will be more convenient than TinyMCE (in my opinion).

We also make minor changes in other add-ons.

  • Go to Items - Item Management - Plugins - TransAlias \u200b\u200b- Configuration... Choose in the Trans table item - russian... Otherwise, we will generate aliases (url) in Cyrillic, but we do not need this. We need pseudonyms to be translated into Latin.
  • If you changed the css of the search form before the update ajaxSearch, then most likely you changed the chunks of this snippet. Therefore, if your search has moved out, then simply replace all chunks from the old site. The address: assets / snippets / ajaxSearch / templates

Thank you all for your attention and success in your work! I hope this article will help you in updating the site for MODX Evolution

A week ago, a fresh release of MODX Revolution was released under version 2.7.0. Its release was a good reason for writing instructions on how to update this popular content management system. I'll make a reservation right away that we will update MODX Revolution manually, without the help of any plugins.

MODX Revolution still doesn't have a couple of clicks to install updates. You can, of course, get out of the situation by installing a special plugin. But today we'll be looking at updating MODX Revolution without installing add-ons.

MODX Revolution 2.7.0 has the following system requirements:

  • PHP 5.5 or higher;
  • MySQL 5.5 or higher, MariaDB 10.1 or higher, Percona Server 5.6 or higher (optional);
  • Apache 2.2 or higher, nginx 1.8 or higher (optional);

Attention!

Be sure to back up your site before upgrading.

But before backup, it is advisable to clear the site cache. This is done in the menu Control.

After that, we make a backup copy of the site. Clearing the cache and terminating sessions before updating is necessary in any case, whether you are doing a backup or not.

Download the latest version of the CMS from the official website. We need a version called Advanced Distribution... You can download it on the page at this link. This version is stripped down from the standard version.

We upload files to the server, replacing the current ones. After that, go to the page / setup /... The first step is to choose a language.

The installation wizard will start.

Select option Updating an existing installation... If you want to change site parameters such as database connection, control panel path or kernel path, select Extended update.

The installation wizard will conduct pre-installation tests after which you can start the installation directly. After its successful completion, you will see the following message:

After completing the MODX Revolution update, you will again encounter a message stating that the kernel directory is publicly available. You can read how to fix this in.