SugarCRM Mautic Authorization Issues
Problem: I am stuck on Configuration Guide / SugarCRM Plugin / Step 2: Connector configuration. Once I have entered all information and tried to click the "LINK" I get 404 error.
Probable Explanation: There is an incorrect server configuration regarding Rewrite Rules and HTTP referer RESOLUTIONS (for Linux Servers):
For Ubuntu / Debian - check rewrite enabled:
SSH:
apache2ctl -M | grep rewrite
If it returns:
rewrite_module (shared)
go to next point, otherwise type:
a2enmod rewrite
Output should be:
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
Output should be:
* Restarting Apache httpd web server apache2 [ OK ]
- Check if is set AllowOverride All for directory contains CRM and Mautic instances (e.g. /var/www/):** file: /etc/apache2/apache2.conf
...
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
...
- After CRM package installation, check if RewriteRule for Mautic get_token URL in .htaccess is set** file: < CRM_instance_directory >/.htaccess
...
Options +FollowSymLinks
RewriteEngine On
...
RewriteRule ^mautic/get_token index.php?entryPoint=MauticGetToken [L,QSA]
...
...
- Add Mautic URL and actions to whitelist in CRM config:** file: /config_override.php
$sugar_config['http_referer']['list'][] = '';
$sugar_config['http_referer']['actions'] = array( 'index', 'ListView', 'DetailView', 'EditView', 'oauth', 'authorize', 'Authenticate', 'Login', 'SupportPortal', 'UpgradeWizard' );
Saving Comment...