# \[Solved\] Install Issue "The site is currently offline..."

**URL:** <https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466>\
**Category:** Mautic 3 - Install/Upgrade Support\
**Created:** [March 7, 2021, 5:09am UTC](https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466 "2021-03-07T05:09:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick\_p](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nick_p/32/613_2.png) [@nick\_p](https://forum.mautic.org/u/nick_p)\
**Post date:** [March 7, 2021, 5:09am UTC](https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466/1 "2021-03-07T05:09:57Z")

</div>

**Your software**  
My Mautic version is: **3.3**  
My PHP version is: **7.4**  
My Database type and version is: **MySQL 7.4.6**

**Your problem**  
**My problem is** : I got the latest Mautic dump, with dependencies. When I try to run the setup from the browser I get an error message saying “The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.”

**These errors are showing in the log** :`

> AH01071: Got error ‘PHP message: PHP Warning - mkdir(): Permission denied - in file /var/www/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php - at line 71PHP message: PHP Warning: mkdir(): Permission denied in /var/www/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php on line 71PHP message: PHP Warning - file\_put\_contents(/var/www/mautic/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory - in file /var/www/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php - at line 84PHP message: PHP Warning: file\_put\_contents(/var/www/mautic/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory in /var/www/mautic/app/bundles/CoreBundle/Cache/MiddlewareCacheWarmer.php on line 84PHP message: PHP Warning - include(/var/www/mautic/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory - in file /var/www/mautic/app/middlewares/MiddlewareBuilder.php - at line 82PHP message: PHP Warning: include(/var/www/mautic/var/cache/prod/middlewares.cache.php): failed to open stream: No such file or directory in /var/www/mautic/app/middlewares/MiddlewareBuilder.php on line 82PHP message: PHP Warning - include(): Failed opening ‘/var/www/mautic/var/cache/prod/middlewares.cache.php’ for inclusion (include\_path=’.:/usr/share/php’) - in file /var/www/mautic/app/middlewares/MiddlewareBuilder.php - at line 82PHP message: PHP Warning: include(): Failed opening ‘/var/www/mautic/var/cache/prod/middlewares.cache.php’ for inclusion`Preformatted text` (include\_path=‘.:/usr/share/php’) in /var/www/mautic/app/middlewares/MiddlewareBuilder.php on line 82PHP message: PHP Warning - Invalid argument supplied for foreach() - in file /var/www/mautic/app/middlewares/MiddlewareBuilder.php - at line 84PHP message: PHP Warning: Invalid argument supplied for foreach() in /var/www/mautic/app/middlewares/MiddlewareBuilder.php on line 84’

**Steps I have tried to fix the problem** :

1. Checked the minimum requirements and complied.
2. Community documentation says run

> $ chmod -R apache-user:apache-user

on the entire Mautic folder, although it seems unsafe, tried. The problem still exists.  
Please advice

---

<div class="post-metadata">

**Author:** ![nick\_p](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nick_p/32/613_2.png) [@nick\_p](https://forum.mautic.org/u/nick_p)\
**Post date:** [March 7, 2021, 6:53am UTC](https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466/2 "2021-03-07T06:53:04Z")

</div>

Hello,  
Any pointers would be useful  
Thanks!

---

<div class="post-metadata">

**Author:** ![nick\_p](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/nick_p/32/613_2.png) [@nick\_p](https://forum.mautic.org/u/nick_p)\
**Post date:** [March 7, 2021, 7:32am UTC](https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466/3 "2021-03-07T07:32:15Z")

</div>

I had to give access to apache user, and add some php libraries.

---

<div class="post-metadata">

**Author:** ![Rich](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rich/32/45_2.png) [@Rich](https://forum.mautic.org/u/Rich)\
**Post date:** [April 24, 2021, 5:27pm UTC](https://forum.mautic.org/t/solved-install-issue-the-site-is-currently-offline/18466/4 "2021-04-24T17:27:35Z")

</div>

@nick_p can you please share how to give access to apache user and what PHP libraries were added.
