# Problem while installing mautic 5.1

**URL:** <https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [September 2, 2024, 12:41pm UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355 "2024-09-02T12:41:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![albi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/albi/32/12643_2.png) [@albi](https://forum.mautic.org/u/albi)\
**Post date:** [September 2, 2024, 12:41pm UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/1 "2024-09-02T12:41:54Z")

</div>

**Your software**  
My Mautic version is: 5.1.0  
My PHP version is: 8.0.30  
My Database type and version is: mysql Ver 8.0.39

**Your problem**  
My problem is:  
I am doing a fresh install of the mautic, I have gotten the zip files, extracted them into a folder /var/www/mautic5.1 and changed the permissions of the files.Also I am using nginx to expose mautic. Now when I try to access the installer like in the documentation [https://example.com/installer](https://example.com/installer) I get a 500 Internal Server error.

Cheked the errors in the /var/log/nginx/mautic.error and I get this:

```auto
thrown in /var/www/mautic5.1/app/config/bootstrap.php on line 5" while reading response header from upstream, client: [my IP], server: mailer.formstory.net, request: "GET /installer HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.0-fpm.sock:", host: "[my HOST]"
2024/09/02 09:50:28 [error] 3100415#3100415: *34225 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/mautic5.1/app/../autoload.php): Failed to open stream: No such file or directory in /var/www/mautic5.1/app/config/bootstrap.php on line 5PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/var/www/mautic5.1/app/../autoload.php' (include_path='.:/usr/share/php') in /var/www/mautic5.1/app/config/bootstrap.php:5

```

I don’t know if I am missing some previous steps I need to do or something. If needed more information please do ask. Thank you!

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 3, 2024, 10:15am UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/2 "2024-09-03T10:15:16Z")

</div>

Hi, can you please expand on what exact steps you’ve taken? Where did you download the zip file? Were you following some tutorial like [Installation — Mautic Documentation 0.1 documentation](https://docs.mautic.org/en/5.x/getting_started/how_to_install_mautic.html) ?

There are several ways how to install Mautic 5:

1. Via the zip file
2. Via Composer
3. Via Docker(Compose) (see [GitHub - escopecz/docker-compose-mautic: Deploy Mautic automatically with Github Actions to DigitalOcean](https://github.com/escopecz/docker-compose-mautic))

Which path have you taken?

---

<div class="post-metadata">

**Author:** ![albi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/albi/32/12643_2.png) [@albi](https://forum.mautic.org/u/albi)\
**Post date:** [September 3, 2024, 11:18am UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/3 "2024-09-03T11:18:51Z")

</div>

Hi,  
I downloaded the zip file from the github repo, this [link](https://github.com/mautic/mautic/releases/download/5.1.0/5.1.0-update.zip). Yes I was following the tutorial you provided. I am installing it via the zip file.  
As I mentioned in the post I have extracted the file in the /var/www/mautic5.1 folder and changed the permissions of that folder using this command

> sudo chown -R www-data:www-data /var/www/mautic5.1

I used nginx as I said to expose it (tell me if the config is needed). I have tried with previous version 4.4.11 and it works no problems, the installer is opened. I only get this with the 5x versions.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 3, 2024, 3:05pm UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/4 "2024-09-03T15:05:11Z")

</div>

If you download it from Github then you have to install the dependencies yourself. Please use the download link in the documentation:

[https://docs.mautic.org/en/5.x/getting\_started/how\_to\_install\_mautic.html#downloading-a-production-package](https://docs.mautic.org/en/5.x/getting_started/how_to_install_mautic.html#downloading-a-production-package)

---

<div class="post-metadata">

**Author:** ![albi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/albi/32/12643_2.png) [@albi](https://forum.mautic.org/u/albi)\
**Post date:** [September 4, 2024, 8:05am UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/5 "2024-09-04T08:05:30Z")

</div>

Thanks, mate. It now works perfectly, I installed it. But just one more question, why from github the version 4x works and the 5x don’t? Because when I tried with the 4x I didnt need to install any dependencies. Anyways thank you for your help!

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 4, 2024, 11:42am UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/6 "2024-09-04T11:42:46Z")

</div>

I’m glad it works!

The Composer (PHP) libraries weren’t part of the Mautic 4 either. See what was included:

> **[GitHub - mautic/mautic at 4.4](https://github.com/mautic/mautic/tree/4.4)**
>
> 4.4

There is no `vendor` folder where Composer stores PHP libraries.

But in Mautic 5 even the Javascript libraries are not hard-coded to the git repository but installed via NPM which is a dependency manager for JS similar to Composer is for PHP. So those dependencies must be installed via a command too when you build it from Github or Composer.

But I don’t think you got to that problem. All the libraries are present in the production build linked in the doc.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [September 6, 2024, 9:37am UTC](https://forum.mautic.org/t/problem-while-installing-mautic-5-1/33355/7 "2024-09-06T09:37:32Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
