# Can't get Mautic to install correctly

**URL:** <https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [December 18, 2023, 5:24am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247 "2023-12-18T05:24:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdcyntst](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mdcyntst](https://forum.mautic.org/u/mdcyntst)\
**Post date:** [December 18, 2023, 5:24am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/1 "2023-12-18T05:24:23Z")

</div>

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](https://github.com/npm/cli/releases/tag/v10.2.5)  
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://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](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](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

---

<div class="post-metadata">

**Author:** ![mdcyntst](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mdcyntst](https://forum.mautic.org/u/mdcyntst)\
**Post date:** [December 18, 2023, 10:05pm UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/2 "2023-12-18T22:05:09Z")

</div>

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”](http://mautic.dev.realtyintn.com/index.php/themes/pmahomme/jquery/jquery-ui.css%E2%80%9D) 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?

---

<div class="post-metadata">

**Author:** ![gordon.hu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gordon.hu/32/5622_2.png) [@gordon.hu](https://forum.mautic.org/u/gordon.hu)\
**Post date:** [December 19, 2023, 1:41am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/3 "2023-12-19T01:41:27Z")

</div>

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](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](https://xxx.xxx.com)  
It can work normally.

---

<div class="post-metadata">

**Author:** ![mdcyntst](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mdcyntst](https://forum.mautic.org/u/mdcyntst)\
**Post date:** [December 19, 2023, 5:03am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/4 "2023-12-19T05:03:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mdcyntst](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mdcyntst](https://forum.mautic.org/u/mdcyntst)\
**Post date:** [December 19, 2023, 5:36am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/5 "2023-12-19T05:36:40Z")

</div>

> [@gordon.hu](#):
>
> [https://xxx.xxx.com](https://xxx.xxx.com)

I found references to running

[https://xxx.xxx.com/index.php/installer](https://xxx.xxx.com/index.php/installer) for the first time through.

---

<div class="post-metadata">

**Author:** ![gabrielsr](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@gabrielsr](https://forum.mautic.org/u/gabrielsr)\
**Post date:** [January 23, 2024, 10:33pm UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/6 "2024-01-23T22:33:57Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mdcyntst](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mdcyntst](https://forum.mautic.org/u/mdcyntst)\
**Post date:** [January 24, 2024, 1:24am UTC](https://forum.mautic.org/t/cant-get-mautic-to-install-correctly/30247/7 "2024-01-24T01:24:44Z")

</div>

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.
