Mautic Community Forums

Mautic Installation Problem

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));

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

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));

Centos 7