# The site is currently offline due to encountering an error. Ubuntu 14.04 LAMP (Digital Ocean)

**URL:** <https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924>\
**Category:** Product Support\
**Created:** [December 8, 2015, 8:38am UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924 "2015-12-08T08:38:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gvh](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gvh](https://forum.mautic.org/u/gvh)\
**Post date:** [December 8, 2015, 8:38am UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/1 "2015-12-08T08:38:46Z")

</div>

Hi,  
  
  
  
I am trying to install Mautic on a Digital Ocean Server (Ubuntu 14.04 LAMP)  
  
  
  
I have read other related questions here in the forum (I hope I read them all) and this is what I have done already

1. Install folder: /var/www/html/mautic /I created this folder using a FTP manager and then used terminal to unzip the files in there  
  
  
2. Modrewrite enabled  
  
  
3. .htaccess file is in the /var/www/html/mautic directory  
  
  
  
But I cannot install Mautic when I open in my browser [domain.com/mautic/](http://domain.com/mautic/)  
  
  
  
I get the dreaded  
  
  
  
“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
  
System administrators, check server logs for errors.”  
  
  
  
===========================================================================  
  
This is the Error Log - it points to having something to do with the inability to create the cache directory.  

Code:

[:error] [pid 1953] [client 212.7.205.12:12778] exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/html/mautic/app/cache/prod)n' in /var/www/html/mautic/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic/app/AppKernel.php(487): AppKernel-\>buildContainer()n#1 /var/www/html/mautic/app/AppKernel.php(252): AppKernel-\>initializeContainer()n#2 /var/www/html/mautic/app/AppKernel.php(71): AppKernel-\>boot()n#3 /var/www/html/mautic/index.php(56): AppKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

[:error] [pid 1954] [client 212.7.205.12:12814] exception ‘RuntimeException’ with message ‘Unable to create the cache directory (/var/www/html/mautic/app/cache/prod)n’ in /var/www/html/mautic/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic/app/AppKernel.php(487): AppKernel-\>buildContainer()n#1 /var/www/html/mautic/app/AppKernel.php(252): AppKernel-\>initializeContainer()n#2 /var/www/html/mautic/app/AppKernel.php(71): AppKernel-\>boot()n#3 /var/www/html/mautic/index.php(56): AppKernel-\>handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

  
I manually created the folders "cache" and in cache I created "prod" both CHMOD 755. This didn't help and am not sure if it made things worse:)  
  
This is day 2 of trying this out and am getting a bit desperate.  
Any help and guidance will be much appreciated as I really like to start using it on my server.  
  
Thanks so much.

---

<div class="post-metadata">

**Author:** ![gvh](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gvh](https://forum.mautic.org/u/gvh)\
**Post date:** [December 8, 2015, 8:38am UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/2 "2015-12-08T08:38:46Z")

</div>

Hi,

I am trying to install Mautic on a Digital Ocean Server (Ubuntu 14.04 LAMP)

I have read other related questions here in the forum (I hope I read them all) and this is what I have done already

1. Install folder: /var/www/html/mautic /I created this folder using a FTP manager and then used terminal to unzip the files in there

2. Modrewrite enabled

3. .htaccess file is in the /var/www/html/mautic directory

But I cannot install Mautic when I open in my browser [domain.com/mautic/](http://domain.com/mautic/)

I get the dreaded

“The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.  
System administrators, check server logs for errors.”

===========================================================================  
This is the Error Log - it points to having something to do with the inability to create the cache directory.

```auto
[:error] [pid 1953] [client 212.7.205.12:12778] exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/html/mautic/app/cache/prod)n' in /var/www/html/mautic/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic/app/AppKernel.php(487): AppKernel->buildContainer()n#1 /var/www/html/mautic/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /var/www/html/mautic/app/AppKernel.php(71): AppKernel->boot()n#3 /var/www/html/mautic/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

[:error] [pid 1954] [client 212.7.205.12:12814] exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/html/mautic/app/cache/prod)n' in /var/www/html/mautic/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic/app/AppKernel.php(487): AppKernel->buildContainer()n#1 /var/www/html/mautic/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /var/www/html/mautic/app/AppKernel.php(71): AppKernel->boot()n#3 /var/www/html/mautic/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}
```

I manually created the folders “cache” and in cache I created “prod” both CHMOD 755. This didn’t help and am not sure if it made things worse:)

This is day 2 of trying this out and am getting a bit desperate.  
Any help and guidance will be much appreciated as I really like to start using it on my server.

Thanks so much.

---

<div class="post-metadata">

**Author:** ![mbabker](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mbabker](https://forum.mautic.org/u/mbabker)\
**Post date:** [December 8, 2015, 3:21pm UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/3 "2015-12-08T15:21:02Z")

</div>

Make sure everything in your /var/www/html directory is owned by www-data:www-data. Even with proper 755/644 permissions, if the directory’s contents are owned by root or another user, Apache and PHP will have issues properly running any application.

---

<div class="post-metadata">

**Author:** ![gvh](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gvh](https://forum.mautic.org/u/gvh)\
**Post date:** [December 9, 2015, 9:42am UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/4 "2015-12-09T09:42:00Z")

</div>

Thanks @mbaker for your help.

I have used the following to change the ownershop of /var/www/html

chown -R www-data:www-data /var/www/html

Then I reinstalled everything but…

unfortunately to no avail as I still get error messages

================================================

```auto
[Wed Dec 09 04:19:42.049431 2015] [:error] [pid 1987] [client 91.232.136.87:24197] exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/html/mautic2/app/cache/prod)n' in /var/www/html/mautic2/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic2/app/AppKernel.php(487): AppKernel->buildContainer()n#1 /var/www/html/mautic2/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /var/www/html/mautic2/app/AppKernel.php(71): AppKernel->boot()n#3 /var/www/html/mautic2/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

[Wed Dec 09 04:19:48.876779 2015] [:error] [pid 1984] [client 91.232.136.87:24198] exception 'RuntimeException' with message 'Unable to create the cache directory (/var/www/html/mautic2/app/cache/prod)n' in /var/www/html/mautic2/app/AppKernel.php:516nStack trace:n#0 /var/www/html/mautic2/app/AppKernel.php(487): AppKernel->buildContainer()n#1 /var/www/html/mautic2/app/AppKernel.php(252): AppKernel->initializeContainer()n#2 /var/www/html/mautic2/app/AppKernel.php(71): AppKernel->boot()n#3 /var/www/html/mautic2/index.php(56): AppKernel->handle(Object(Symfony\Component\HttpFoundation\Request))n#4 {main}

```

================================================  
Is there anything else what I can try. I’m not going to give up yet:)

Thanks so much again

---

<div class="post-metadata">

**Author:** ![gvh](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@gvh](https://forum.mautic.org/u/gvh)\
**Post date:** [December 9, 2015, 10:52am UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/5 "2015-12-09T10:52:48Z")

</div>

I will answer my own question:)

I think one thing I forgot was to restart the apache server.

That so far has done the trick so I at least can start the install.  
Will replicate the whole process on a new server to see if I can make it work there as well.

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/the-site-is-currently-offline-due-to-encountering-an-error-ubuntu-14-04-lamp-digital-ocean/2924/6 "2020-02-02T22:56:41Z")

</div>


