Can't get Mautic to install correctly

I can’t find any references to my situation.

Tried a number of different install methods, all with the same result. The config wizard page will not load

Last install process was straight forward.

(it’s interpeting the url below, couldn’t figure out how to tell the forum to escape it)

git clone http:// github. com /mautic /mautic.git’ (version 5?- not sure how to confirm, I wanted to do 4.4 just to avoid any new issues).
cd mautic
composer install --ignore-platform-req=ext-imap --ignore-platform-req=ext-bcmath
chown -R apache:apache /var/www/html/mautic
chmod -R 775 /var/www/html/mautic

installs fine.
only complaints:
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
npm notice
npm notice New patch version of npm available! 10.2.3 → 10.2.5
npm notice Changelog: Release v10.2.5 · npm/cli · GitHub
npm notice Run npm install -g npm@10.2.5 to update!
npm notice

######################################################
Env: Fedora 38, PHP 8.3, Apache 2.4.58.
####################################################

I can confirm php is working with the phpinfo call.

When I inspect the page, it’s trying to load, but I get a bunch of 404 for js files not found.

GET http://mautic.dev.realtyintn.com/themes/pmahomme/jquery/jquery-ui.css
[HTTP/1.1 404 Not Found 4ms]

and it’s true they do not exist. (add-on’s or other modules not installed yet?)

Finally I get a series of warnings (and errors)
GET http://mautic.dev.realtyintn.com/js/dist/keyhandler.js?v=5.2.1-1.fc38
or
GEThttp://mautic.dev.realtyintn.com/js/vendor/sprintf.js?v=5.2.1-1.fc38

and they are true
There is no keyhandler.js.
There is no js directory.
There is a vendor, but not under js.
and there are some sprintf.js scripts but, under node_modules directories.

and finally it bails out with

Uncaught ReferenceError: CommonParams is not defined
http://mautic.dev.realtyintn.com/index.php:55

This looks like a package issue. Things don’t exist. I don’t know much about composer, so troubleshooting if it’s doing something odd is a journey.

I’d really like to get this working just to test if it will do what I need.

Thanks in advance for you input

Eric

1 Like

I’m not sure I’m making progress, but I did find a reference that I needed to run

/index.php/installer

and that does give me some different but less positive output.

I’m now seeing all js references complaining as follows:

The resource from “http://mautic.dev.realtyintn.com/index.php/themes/pmahomme/jquery/jquery-ui.css” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

The apparent fix for this is code side, not server/config side.

Any thoughts?

I suspect that your issue may be related to Composer.
Let me talk about the process I installed yesterday:

  1. Download https://github.com/mautic/mautic/releases/download/4.4.10/4.4.10.zip
  2. Unzip 4.4.10. zip to/var/www/mautic
  3. Run https://xxx.xxx.com
    It can work normally.

Thanks for the feedback. Your point is exactly my challenge. Most install instructions I find, simply state your point.

Download the source
Drop it in a DocumentRoot, and if
PHP works, it should just work.

That begs the question of why I’m getting such weird results either via github downloads or using composer. It implies it’s not the code, but perhaps my config.

I downgraded php from 8.3 to 8.0. The only other thing I can suspect is the use of php-fpm configured to utilize unix sockets (first time for me utilizing that type of config).

I could download to php 7.x as a test. But I’m so many hours into this I’m not sure I can justify too many more. Hence why I’m asking the forums,

What the hell am I missing here?

I’ve never used this product (or composer), but I can’t count the number LAMP installs I’ve done in my career.

I found references to running

https://xxx.xxx.com/index.php/installer for the first time through.

Hi! Were you able to install? I’m trying to do it by extracting the 5.0.2 zip file directly in a subdomain folder but when I try to go to the domain, I get a 403 error and the config wiz page is not loading at all. I suspect this is happening because I’m using a shared cloud server on Hostinger.

Were you able to fix it? What did you do?

I was able to finally get mine working. I took a step back and re-installed all of my LAMP (linux, apache, mariadb, php). I didn’t keep any config files, etc. Ensured I had PHP working correctly first. Then I did a simple extract of the product into the HTDOC root and it magically gave me the install wizzard.
I’m using fedora 38, php8.0 from the remi-modular repository.