# Error 500

**URL:** <https://forum.mautic.org/t/error-500/8172>\
**Category:** Product Support\
**Created:** [April 11, 2017, 11:50am UTC](https://forum.mautic.org/t/error-500/8172 "2017-04-11T11:50:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 11, 2017, 11:50am UTC](https://forum.mautic.org/t/error-500/8172/1 "2017-04-11T11:50:19Z")

</div>

Hi,  
  
  
  
Had mautic installed and working properly, today I had to restart the server and when I tried to access the web I get “HTTP Error 500”.  
  
I have tried to raise a copy a week ago and I get the same error, I can only access the machine through ssh.  
  
  
  
Could anyone help me solve this problem ?, there is important content in Mautic.  
  
  
  
Thank you  
  
  
  
 ![](https://storage.googleapis.com/imagenes-podio/mautic-error.JPG)

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 11, 2017, 11:50am UTC](https://forum.mautic.org/t/error-500/8172/2 "2017-04-11T11:50:20Z")

</div>

Hi,

Had mautic installed and working properly, today I had to restart the server and when I tried to access the web I get “HTTP Error 500”.  
I have tried to raise a copy a week ago and I get the same error, I can only access the machine through ssh.

Could anyone help me solve this problem ?, there is important content in Mautic.

Thank you

![](https://storage.googleapis.com/imagenes-podio/mautic-error.JPG)

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [April 11, 2017, 1:39pm UTC](https://forum.mautic.org/t/error-500/8172/3 "2017-04-11T13:39:45Z")

</div>

Aplicaste los permisos a los directorios?

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 12, 2017, 6:39am UTC](https://forum.mautic.org/t/error-500/8172/4 "2017-04-12T06:39:08Z")

</div>

> [@22109:@MxyzptlkFishStix](#):
>
> Have you tried clearing the cache (rm -rf app/cache/prod)? Make sure your cronjobs are running under the web server user and not root.

Yes, I cleaned the cache was the first test I did, how do I check that the cronjobs are running under the web server and not roor?

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 12, 2017, 6:39am UTC](https://forum.mautic.org/t/error-500/8172/5 "2017-04-12T06:39:58Z")

</div>

> [@22110:@ninjoan](#):
>
> Aplicaste los permisos a los directorios?

Si, limpie la cache y asigne los permisos al directorio app/cache/prod que es el que suele cambiarse los permisos y sigue en el mismo estado

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [April 12, 2017, 7:02am UTC](https://forum.mautic.org/t/error-500/8172/6 "2017-04-12T07:02:50Z")

</div>

What web server are your running? Version of PHP? Apply any updates? Is the disk drive full?

If Ubuntu 16 with a stock Apache setup, edit this file with vi or nano:

```auto
nano /etc/apache2/sites-enabled/000-default.conf
```

Below \<VirtualHost \*:80\> add or change the existing LogLevel so it looks like:  
`LogLevel trace8`

Save the file and then run this from the command line:

```auto
systemctl restart apache2
```

Then run this from the command line:

```auto
tail -f /var/log/apache2/error.log
```

Then reload your site with the web browser and you should get more information as to why you’re seeing the Server 500 error.

Also check check the Mautic log file for errors (adjust the date as needed):

`nano /var/www/html/app/logs/mautic_prod-2017-04-11.php
`

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 12, 2017, 7:17am UTC](https://forum.mautic.org/t/error-500/8172/7 "2017-04-12T07:17:31Z")

</div>

[quote=22138:@redneckbob]What web server are your running? Version of PHP? Apply any updates? Is the disk drive full?

If Ubuntu 16 with a stock Apache setup, edit this file with vi or nano:

```auto
nano /etc/apache2/sites-enabled/000-default.conf
```

Below \<VirtualHost \*:80\> add or change the existing LogLevel so it looks like:  
`LogLevel trace8`

Save the file and then run this from the command line:

```auto
systemctl restart apache2
```

Then run this from the command line:

```auto
tail -f /var/log/apache2/error.log
```

Then reload your site with the web browser and you should get more information as to why you’re seeing the Server 500 error.

Also check check the Mautic log file for errors (adjust the date as needed):

`nano /var/www/html/app/logs/mautic_prod-2017-04-11.php
`[/quote]

I used a bitnami instance and the log in Apache is:

[Wed Apr 12 08:12:46.571521 2017] [core:notice] [pid 2118:tid 140243146761984] AH00094: Command line: ‘/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf -D DISABLE\_BANNER’  
[Wed Apr 12 08:15:06.376798 2017] [proxy\_fcgi:error] [pid 2123:tid 140242999568128] [client 83.56.203.41:62520] AH01071: Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘=\>’ (T\_DOUBLE\_ARROW), expecting ‘)’ in /opt/bitnami/apps/mautic/htdocs/app/config/local.php on line 98n’

Log in Mautic is very old

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [April 12, 2017, 7:49am UTC](https://forum.mautic.org/t/error-500/8172/8 "2017-04-12T07:49:41Z")

</div>

What version of Mautic are you running?  
Version of PHP?  
Apply any updates in the last few days?  
Change the configuration of Mautic in the last few days?

Post lines 90 through 100 for this file:

```auto
/opt/bitnami/apps/mautic/htdocs/app/config/local.php
```

I’m betting there is a messed up line in your configuration.

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 12, 2017, 8:25am UTC](https://forum.mautic.org/t/error-500/8172/9 "2017-04-12T08:25:52Z")

</div>

[quote=22140:@redneckbob]What version of Mautic are you running?  
Version of PHP?  
Apply any updates in the last few days?  
Change the configuration of Mautic in the last few days?

Post lines 90 through 100 for this file:

```auto
/opt/bitnami/apps/mautic/htdocs/app/config/local.php
```

I’m betting there is a messed up line in your configuration.[/quote]

Mautic version: 2.2.1  
PHP version: 5.6.22  
No update in the last days  
No, I haven´t change configuration Mautic, I only create Landing Page, Form, Campaings and email  
 ![](https://storage.googleapis.com/imagenes-podio/local.php.JPG)

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [April 12, 2017, 9:11am UTC](https://forum.mautic.org/t/error-500/8172/10 "2017-04-12T09:11:45Z")

</div>

I need the code, I cannot parse a screenshot that has encoded html, so what should be `<!--` is now `<--` which hurts my brain.

Did you add the twitter code? It looks busted, as if the copy-paste was in the wrong spot or only picked up part of the code.

Don’t know if you can remove the Twitter tracking and see if that fixes it, but a HTML comment opens up and then doesn’t close before another one opens up. I’m about to crash because it is 5am here, but if you want to email the local.php to [redneckbob@rocketmail.com](mailto:redneckbob@rocketmail.com) I can look at in a few hours.

It should look more like this:

![](https://support.showclix.com/customer/portal/attachments/722674)

Than this:  
 ![](http://dev-null.com/local.php.jpg)

---

<div class="post-metadata">

**Author:** ![redneckbob](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@redneckbob](https://forum.mautic.org/u/redneckbob)\
**Post date:** [April 12, 2017, 10:40pm UTC](https://forum.mautic.org/t/error-500/8172/11 "2017-04-12T22:40:55Z")

</div>

@jesus.montejo - You get this working?

---

<div class="post-metadata">

**Author:** ![jesus.montejo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jesus.montejo/32/169_2.png) [@jesus.montejo](https://forum.mautic.org/u/jesus.montejo)\
**Post date:** [April 17, 2017, 9:31am UTC](https://forum.mautic.org/t/error-500/8172/12 "2017-04-17T09:31:59Z")

</div>

> [@22173:@redneckbob](#):
>
> @jesus.montejo - You get this working?

Yes, that was the problem @redneckbob , I deleted all those comments and Mautic has already returned to work.

Thank you very much!.

I could not answer before because in Spain it was a party and we did not work.

Thanks again.
