Closed itnavigate closed 2 months ago
I have installed mautic using
cd ~
wget -q https://github.com/mautic/mautic/releases/download/5.1.0/5.1.0.zip
sudo unzip -qq ~/5.1.0.zip -d mautic
cd /var/www/mautic
composer update
composer install
sudo chown nginx:nginx /var/www/mautic
sudo chmod ug+x bin/console
then
composer require pabloveintimilla/mautic-amazon-ses
producing
./composer.json has been updated
Running composer update pabloveintimilla/mautic-amazon-ses
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Package theofidry/psysh-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package tightenco/collect is abandoned, you should avoid using it. Use illuminate/collections instead.
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
160 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
phpstan/extension-installer: Extensions installed
> php -r "if(file_exists('./.git')&&file_exists('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''))){copy('./build/hooks/pre-commit'.(PHP_OS=='WINNT'?'.win':''),'./.git/hooks/pre-commit');} if(file_exists('./.git')&&file_exists('./build/hooks/post-checkout')){copy('./build/hooks/post-checkout','./.git/hooks/post-checkout');}"
> php -r "if(file_exists('./.git/hooks/pre-commit')&&(PHP_OS!='WINNT')){chmod('./.git/hooks/pre-commit',0755);} if(file_exists('./.git/hooks/post-checkout')&&(PHP_OS!='WINNT')){chmod('./.git/hooks/post-checkout',0755);}"
> npm ci --prefer-offline --no-audit
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build
> mautic@0.0.0 build
> webpack --mode production --config webpack.config.js
Modernizr build saved to node_modules/modernizr/modernizr-mautic-dist.js
[CKEditorTranslationsPlugin] Error: No translation has been found for the en language.
asset ckeditor.js 1.45 MiB [compared for emit] [minimized] [big] (name: main) 2 related assets
cached modules 10.9 MiB (javascript) 2.06 KiB (runtime) [cached] 1731 modules
webpack 5.88.2 compiled successfully in 2731 ms
added 601 packages in 13s
75 packages are looking for funding
run `npm fund` for details
> npx patch-package
patch-package 7.0.2
Applying patches...
at.js@1.5.4 ✔
chosen-js@1.8.7 ✔
> bin/console mautic:assets:generate
PHP Warning: Undefined array key "host" in /var/www/mautic/app/bundles/CoreBundle/Loader/EnvVars/SAMLEnvVars.php on line 16
Production assets have been regenerated.
No security vulnerability advisories found.
Using version ^1.0 for pabloveintimilla/mautic-amazon-ses
I cannot see the plugin in the "Manage Plugins" screen.
Any clues?
AhHem. Then I actually finished the install by running :
admin@ip-172-31-17-84:/var/www/mautic$ sudo -u nginx php bin/console cache:clear
PHP Warning: Undefined array key "host" in /var/www/mautic/app/bundles/CoreBundle/Loader/EnvVars/SAMLEnvVars.php on line 16
// Clearing the cache for the prod environment with debug false
[OK] Cache for the "prod" environment (debug=false) was successfully cleared.
admin@ip-172-31-17-84:/var/www/mautic$ sudo -u nginx php bin/console mautic:plugins:reload
PHP Warning: Undefined array key "host" in /var/www/mautic/app/bundles/CoreBundle/Loader/EnvVars/SAMLEnvVars.php on line 16
1 new plugins were installed and 0 updated.
and the plugin is now installed.
Thanks @pabloveintimilla for this plugin. EDIT: Fix code-block format
Just to check your documentation:
You have referred to ACCESS_KEY
, aws-user
and apiKey
. Are these all what AWS refers to as Access key
in their SMTP credentials
?
When I use my values here, I get this error: I not that your instructions don't mention the port number in your example URI:
ses+api://ACCESS_KEY:SECRET_KEY@default?region=REGION
, but removing the port number doesn't fix it.
@itnavigate same issue here. Did you fix this?
@itnavigate same issue here. Did you fix this?
Working on it today. I have had it work occasionally, but I'm trying to get a reproducible solution that I can then document.
I fix now. Just create a new user on IAM with SES and SNS permissions.
I downloaded 95_mautic-510.zip, and unzipped this into my web_root folder - /var/www/mautic (I'm using nginx - not that I expect that matters) From my web_root I run
composer require pabloveintimilla/mautic-amazon-ses
this generates the following error:
modifying the line that calls
bin/composer
to bephp bin/composer
may be a solutionEDIT: Removed pre-coffee stupid words :-/ . I have included new command and error, along with a proposed solution. Obviously running a command that requires a home directory will fail to find the config file that resides in the home directory.