mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-06 04:41:59 +02:00
Nginx Error Logs after Mautic install #510
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dd05252 on 8/13/2022
CloudPanel version(s) affected
2
Description
Not sure if this is a bug, but I followed the cloudpanel install guide for Mautic.
The install instructions work fine and the application installs correctly but I get nginx errors in the log file.
No site data is being tracked in Mautic.
Error.
"2022/08/12 23:12:22 [error] 119853#119853: *271 open() "/home/user/htdocs/mysite.com/mtc.js" failed (2: No such file or directory), client: 114.75.114.208, server: mysite, request: "GET /mtc.js HTTP/2.0", host: "mysite.com", referrer: "https://mysite.com/".
Is it possible that the vhost template is incorrect for a Mautic install?
I have looked at other install instructions online for Mautic/Nginx installs and they all seem to reference a rewrite of some sort for the mtc.js file.
For example,
another example
Also found this post, https://github.com/stevedrobinson/better-mautic-nginx/blob/master/mautic.conf.
How to reproduce
Tried 2 fresh installs on ubuntu 22.04 servers.
Installed cloudpanel.
Installed Mautic as per cloudpanel documentation.
Same result.
Possible Solution
Create a Vhost template specifically for Mautic installations.
Additional Context
No response