MODX Revolution, the powerful open source content management system (CMS) that powers many websites and blogs online has just been updated to version 2.7, and this post shows students and new users how to install or upgrade on Ubuntu.
This release comes with nearly 100 improvements, including a new Trash Manager to selectively remove deleted Resources, vastly improved Media Manager performance and the ability to purge old Extra Packages from your portal.
We’ve shown students and new users how to install MODX on Ubuntu and those tutorials should apply to Ubuntu 16.04 / 18.10 and 18.04. These are standard tutorials that should work on current and future versions of Ubuntu.
For more about this release, please visit their announcement page.
Here are some of the highlights that was introduced with this release:
- Trash Manager offers a new interface for managing deleted Resources and selectively purging or restoring deleted resources
- Added a system setting to control automatic_template_assignment
- Made it possible to create MODX project using Composer
- Added a CLI install script to use after a Composer-created project
- Added settings for automating static elements workflow
- Dramatically improved performance of Media Manager and file browser/tree in displaying images
- Added a Purge button to remove old Extras Packages from Package Management
- Enabled a middle mouse click to open links in a new tab/window
- Added the option to copy the path to a file/folder in the MODX file tree and media browser
- Made the path to MODX error handler class configurable
- Implemented native PHP password hashing
- Validate the target Resource ID for symlinks
- Enable Manager Search to return any object by the corresponding ID
Below are tutorials on installing MODX on either Ubuntu with MariaDB and Apache2 or Ubuntu with MariaDB and Nginx web server.
MODX on Ubuntu with Apache2, MariaDB and PHP
To install MODX on Ubuntu with Apache2, MariaDB and PHP, read the post below. it’s a great place to start when you’re deciding to run websites and blogs powered by MODX
MODX on Ubuntu with Nginx, MariaDB and PHP-FPM
Alternatively, you can run MODX with Nginx, MariaDB and PHP. the post below should help you get MODX running with Nginx web server.
If you already have an existing MODX site and you wish to upgrade to the latest, follow the steps below:
First, backup your website content and database. You should always do a complete backup of your site prior to upgrading.
Then Download the latest version of MODX and extract the downloaded content to the webserver root directory.
cd /tmp wget https://modx.com/download/direct?id=modx-2.7.0-pl.zip unzip modx-2.7.0-pl.zip -d /var/www/html/modx270
Next, copy the configuration file (config.inc.php) from the old directory to the new.
sudo cp /var/www/html/modx/core/config/config.inc.php /var/www/html/modx270/core/config/config.inc.php
Also copy the core conponents directory from the old site to the new.
sudo cp -rf /var/www/html/modx/core/components/ /var/www/html/modx270/core/components/
After that, adjust Apache2 or Nginx site configuration to match the DocumentRoot = /var/www/html/modx270
Update the website directory permissions.
sudo chown -R www-data:www-data /var/www/html/modx270/ sudo chmod -R 755 /var/www/html/modx270/
Restart the web server and browse to the URL below to upgrade.
At the setup screen, choose to Upgrade Existing Install instead.
That’s it! Follow the on-screen wizard until you’ve successfully upgrade your MODX site.
It’s a good idea to clear your browser cache after upgrading. Browsers often cache JS and CSS, and you want to make sure you’re getting the newest files in your browser after the upgrade.
You may also like this post below: