# Mautic Installation Problem

**URL:** <https://forum.mautic.org/t/mautic-installation-problem/5544>\
**Category:** Product Support\
**Created:** [September 6, 2016, 3:24am UTC](https://forum.mautic.org/t/mautic-installation-problem/5544 "2016-09-06T03:24:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatesham](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/venkatesham/32/623_2.png) [@venkatesham](https://forum.mautic.org/u/venkatesham)\
**Post date:** [September 6, 2016, 3:24am UTC](https://forum.mautic.org/t/mautic-installation-problem/5544/1 "2016-09-06T03:24:08Z")

</div>

Hi,  
  
  
  
I have been trying to install mautic for one of my client and i am facing this problem. It is showing the code given below. Can anyone help me here.  
  
  
  
Warm Regards,  
  
  
  
Venkatesha

\<?php  
/\*\*  
\* @package Mautic  
\* @copyright 2014 Mautic Contributors. All rights reserved.  
\* @author Mautic  
\* @link http://mautic.org  
\* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html  
\*/  
define('MAUTIC\_ROOT\_DIR', \_\_DIR\_\_);  
  
// Fix for hosts that do not have date.timezone set, it will be reset based on users settings  
date\_default\_timezone\_set('UTC');  
  
use SymfonyComponentClassLoaderApcClassLoader;  
use MauticMiddlewareMiddlewareBuilder;  
  
$loader = require\_once \_\_DIR\_\_ . '/app/autoload.php';  
  
/\*\*  
\* Use APC for autoloading to improve performance. Change 'sf2' to a unique prefix  
\* in order to prevent cache key conflicts with other applications also using APC.  
\*/  
//$apcLoader = new ApcClassLoader('sf2', $loader);  
//$loader-\>unregister();  
//$apcLoader-\>register(true);  
  
$kernel = new AppKernel('prod', false);  
$kernel-\>loadClassCache();  
  
Stackrun((new MiddlewareBuilder('prod'))-\>resolve($kernel));

---

<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 8, 2016, 6:35am UTC](https://forum.mautic.org/t/mautic-installation-problem/5544/2 "2016-09-08T06:35:16Z")

</div>

Are you sure you have PHP installed? What server do you use?

---

<div class="post-metadata">

**Author:** ![venkatesham](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/venkatesham/32/623_2.png) [@venkatesham](https://forum.mautic.org/u/venkatesham)\
**Post date:** [September 6, 2016, 3:24am UTC](https://forum.mautic.org/t/mautic-installation-problem/5544/3 "2016-09-06T03:24:08Z")

</div>

Hi,

I have been trying to install mautic for one of my client and i am facing this problem. It is showing the code given below. Can anyone help me here.

Warm Regards,

Venkatesha

\<?php /\*\* \* @package Mautic \* @copyright 2014 Mautic Contributors. All rights reserved. \* @author Mautic \* @link http://mautic.org \* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html \*/ define('MAUTIC\_ROOT\_DIR', \_\_DIR\_\_); // Fix for hosts that do not have date.timezone set, it will be reset based on users settings date\_default\_timezone\_set('UTC'); use SymfonyComponentClassLoaderApcClassLoader; use MauticMiddlewareMiddlewareBuilder; $loader = require\_once \_\_DIR\_\_ . '/app/autoload.php'; /\*\* \* Use APC for autoloading to improve performance. Change 'sf2' to a unique prefix \* in order to prevent cache key conflicts with other applications also using APC. \*/ //$apcLoader = new ApcClassLoader('sf2', $loader); //$loader-\>unregister(); //$apcLoader-\>register(true); $kernel = new AppKernel('prod', false); $kernel-\>loadClassCache(); Stackrun((new MiddlewareBuilder('prod'))-\>resolve($kernel));

---

<div class="post-metadata">

**Author:** ![Harshavardhan.i](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@Harshavardhan.i](https://forum.mautic.org/u/Harshavardhan.i)\
**Post date:** [December 9, 2016, 12:35pm UTC](https://forum.mautic.org/t/mautic-installation-problem/5544/4 "2016-12-09T12:35:47Z")

</div>

Centos 7
