Contao 4.6.0 Released — Here’s How to Install / Upgrade on Ubuntu 16.04 | 18.04 LTS

laptop 4662049 640

Contao, an open source, enterprise content management system that relies on the LAMP or LEMP stack has recently been updated to version 4.6.0 and this brief tutorial is going to show students and new users how to install or upgrade on Ubuntu 16.04 | 18.04 LTS.

The release contains new features such as 2-factor authentication in the back end, drag and drop in the file manager, extended video support and automatic cache invalidation, and many many more features and enhancements.

If you’re running previous version, you should upgrade to this version as soon as possible.

For more about this release, please visit its changelog page.

Below are list of features and enhancements that are added version 4.6.0:

  • Add two factor authentication for the back end login
  • Add the “markAsCopy” config option to the DCA
  • Sort the custom layout sections by their position
  • Make the DropZone error messages translatable
  • Do not stack the buttons if the screen is wide enough
  • Remove registrations that are not activated within 24 hours
  • Remove the “number of columns” field from the login module
  • Also use the file meta data in the download element
  • Purge the system log by default after 7 days
  • Use “noreferrer noopener” for links that open in a new window
  • Do not store IP addresses in tl_log
  • Append the module ID to the form field IDs to prevent duplicate IDs
  • Add the page picker to the meta fields in file manager
  • Remove the “flash movie” front end module.
  • Add extended video support
  • Pass all search result data to the search template
  • Auto-clear the session form data
  • Add abstract controllers for fragment content elements and front end modules
  • Handle manifest.json files in public bundle folders

Below are posts that show you how to install Contao CMS on Ubuntu with Apache2 or Nginx support. You can use the post below to install it in your environment.

Option: Installing Contao on Ubuntu with Apache2 Support

For those who want to install Contao on Ubuntu with Apache2 support, please read the post below:

Option 2: Installing Contao on Ubuntu with Nginx Support

For those who want to install Contao on Ubuntu with Nginx support, they can read the post below:

Option #3 Upgrading Contao on Ubuntu

For those who already have Contao installed and want to just upgrade instead, they can follow the steps below. to Upgrade Contao, you must first create a backup copy of Contao database and web content.

If you want to learn how to backup MySQL database content, search our pages here for help. After backing up your database and content, follow the steps below:

First stop the webserver..

Then run the commands below to create a quick backup of your existing Contao content.

sudo mv /var/www/html/contao /var/www/html/contao_bak

After that, download latest version of Contao. and extract it into the web server root directory.

cd /tmp && curl -L | tar -xzp

Then move Contao folder into the web root.

sudo mv contao-* /var/www/html/contao

After that, copy these folders from the backed-up Contao folder into the new.

sudo cp -rf /var/www/html/contao_old/templates/ /var/www/html/contao/
sudo cp -rf /var/www/html/contao_old/files/ /var/www/html/contao/
sudo cp -rf /var/www/html/contao_old/system/ /var/www/html/contao/
sudo cp -rf /var/www/html/contao_old/app/config/ /var/www/html/contao/app/

After copying these files and folders, update the folders permissions.

sudo chown -R www-data:www-data /var/www/html/contao/
sudo chmod -R 755 /var/www/html/contao/

When you’re done, startup the server.

sudo systemctl start apache2

After that, browse to the server hostname or IP address as shown below:

You should then see Contao setup page. enter the setup password you created during your first install to continue.

Contao Update database

Click Update database the update the database and complete the upgarde.

After that, Contao should be updated and ready to use.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.