Since you are doing new install … try this … grab composer.json file and edit it
You want to edit the path where all the files would be. Since I use cPanel so I edit mine to keep it all in public_html folder and I don’t know what the cloudpanel file structure are for hosting web sites and your edit may differ.
Here what my composer.json. In cpanel the web sites are rootdoc are the /public_html/ folder. I had to use absolute path in composer.json for cpanel file structure because for some reason the relative path wouldn’t work at all or threw a bunch of errors.
{
"name": "mautic/recommended-project",
"description": "Project template for Mautic 4 projects with composer",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.mautic.org/mautic-releases",
"support": {
"user-docs": "https://docs.mautic.org/en",
"developer-docs": "https://developer.mautic.org",
"chat": "https://www.mautic.org/slack"
},
"funding": [
{
"type": "other",
"url": "https://opencollective.com/mautic"
},
{
"type": "other",
"url": "https://github.com/sponsors/mautic"
}
],
"authors": [
{
"name": "",
"role": ""
}
],
"require": {
"composer/installers": "^1.11",
"mautic/core-composer-scaffold": "4.x-dev",
"mautic/core-project-message": "4.x-dev",
"mautic/core-lib": "^4.0",
"mautic/grapes-js-builder-bundle": "^4.0",
"mautic/plugin-citrix": "^4.0",
"mautic/plugin-clearbit": "^4.0",
"mautic/plugin-cloudstorage": "^4.0",
"mautic/plugin-crm": "^4.0",
"mautic/plugin-emailmarketing": "^4.0",
"mautic/plugin-focus": "^4.0",
"mautic/plugin-fullcontact": "^4.0",
"mautic/plugin-gmail": "^4.0",
"mautic/plugin-outlook": "^4.0",
"mautic/plugin-social": "^4.0",
"mautic/plugin-tagmanager": "^4.0",
"mautic/plugin-zapier": "^4.0",
"mautic/theme-aurora": "^4.0",
"mautic/theme-blank": "^4.0",
"mautic/theme-brienz": "^4.0",
"mautic/theme-cards": "^4.0",
"mautic/theme-coffee": "^4.0",
"mautic/theme-confirmme": "^4.0",
"mautic/theme-fresh-center": "^4.0",
"mautic/theme-fresh-fixed": "^4.0",
"mautic/theme-fresh-left": "^4.0",
"mautic/theme-fresh-wide": "^4.0",
"mautic/theme-goldstar": "^4.0",
"mautic/theme-mauve": "^4.0",
"mautic/theme-nature": "^4.0",
"mautic/theme-neopolitan": "^4.0",
"mautic/theme-oxygen": "^4.0",
"mautic/theme-paprika": "^4.0",
"mautic/theme-skyline": "^4.0",
"mautic/theme-sparse": "^4.0",
"mautic/theme-sunday": "^4.0",
"mautic/theme-vibrant": "^4.0",
"mautic/theme-trulypersonal": "^4.0"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/dennisameling/FOSOAuthServerBundle.git"
}
],
"conflict": {
"mautic/mautic": "*",
"mautic/core": "*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"secure-http": false,
"allow-plugins": {
"composer/installers": true,
"symfony/flex": true,
"mautic/core-composer-scaffold": true,
"mautic/core-project-message": true
}
},
"autoload": {
"psr-4": {
"MauticPlugin\\": "/home/cpanel-user/public_html/plugins/"
}
},
"extra": {
"mautic-scaffold": {
"locations": {
"web-root": "/home/cpanel-user/public_html/"
}
},
"installer-paths": {
"/home/cpanel-user/public_html/app": [
"type:mautic-core"
],
"/home/cpanel-user/public_html/plugins/{$name}": [
"type:mautic-plugin"
],
"/home/cpanel-user/public_html/themes/{$name}": [
"type:mautic-theme"
]
},
"mautic-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Mautic codebase </>",
"<bg=blue;fg=white> from the mautic/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install Mautic",
" * Read the user guide",
" * Get support: https://www.mautic.org/support",
" * Get involved with the Mautic community:",
" https://www.mautic.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove mautic/core-project-message"
]
}
}
}