Open DevCEDTeam opened 1 year ago
When switching to a Composer-based installation, the database isn't touched, only the codebase.
In this tutorial, it's assumed that Mautic is currently installed in /var/www/html.
Here's the steps to follow to switch to a Composer-based installation:
Go to /var/www
Run composer create-project mautic/recommended-project:^4 html-new --no-interaction
Copy the following files and folders from /var/www/html to /var/www/html-new:
Configuration files - in most cases, located at app/config/local.php - move to docroot/app/config/local.php The entire plugins directory - move to docroot/plugins Uploads - in most cases, located at app/media/files and app/media/images - move to docroot/app/media/files and docroot/app/media/images respectively Custom dashboards from app/media/dashboards - move to docroot/app/media/dashboards Any custom themes from themes - move to /docroot/themes Any translations from translations - move to /docroot/translations Rename /var/www/html to /var/www/html-old and /var/www/html-new to /var/www/html
When you're done, update your web server configuration to point to /var/www/html/docroot instead of /var/www/html
Log into Mautic, and in your global settings, enable the switch to fully manage Mautic with Composer - this will also enable you to work with the Mautic Marketplace.
The path you are looking for is /home/mautic/public_html/mautic.devced.com/app/config/local.php with /home/mautic/public_html/mautic.devced.com being the docroot for mautic.devced.com.