[Mapbender-users] Cannot start Mapbender3

Christian Wygoda christian.wygoda at wheregroup.com
Thu Nov 28 07:27:07 PST 2013


Hello Jakob,

this is definately a problem with your Apache configuration. It doesn't
know how to handle files ending in .php so it just returns them as plain
text.

Not knowing where you got your Apache and PHP and the configuration they
use it will be hard to give a solution. But I suppose there will be a
lot of websites describing how to set up Apache with PHP for Windows.
Maybe too many - specifically a lot of them will be for Apache 2.2 which
has different configuration options than 2.4 here and there...

Cheers,
  Christian

On Thu, 2013-11-28 at 15:33 +0100, Jakob Tworek wrote:
> Hello list,
> 
> 
> I've installed Mapbender3 on  Windows 7 (64) System with PHP 5.4.7 and
> an Apache2.4. The command-line installation went fine (I followed
> http://doc.mapbender3.org/en/book/installation.html) but when I enter
> http://localhost/mapbender3/ I just get the following:
> 
> <?php
> 
> require_once __DIR__.'/../app/bootstrap.php.cache';
> require_once __DIR__.'/../app/AppKernel.php';
> //require_once __DIR__.'/../app/AppCache.php';
> 
> use Symfony\Component\HttpFoundation\Request;
> 
> $kernel = new AppKernel('prod', false);
> $kernel->loadClassCache();
> //$kernel = new AppCache($kernel);
> $request = Request::createFromGlobals();
> $response = $kernel->handle($request);
> $response->send();
> $kernel->terminate($request, $response);
> 
> 
> I don't get it! Is it a problem with my php configuration or maybe my apache configuration? 
> 
> When I enter  http://localhost/mapbender3/config.php I just get: 
> 
> 
> <?php
> 
> if (!isset($_SERVER['HTTP_HOST'])) {
>     exit('This script cannot be run from the CLI. Run it from a browser.');
> }
> 
> if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
>     '127.0.0.1',
>     '::1',
> ))) {
>     header('HTTP/1.0 403 Forbidden');
>     exit('This script is only accessible from localhost.');
> }
> 
> require_once dirname(__FILE__).'/../app/SymfonyRequirements.php';
> 
> $symfonyRequirements = new SymfonyRequirements();
> 
> $majorProblems = $symfonyRequirements->getFailedRequirements();
> $minorProblems = $symfonyRequirements->getFailedRecommendations();
> 
> ?>
> <!DOCTYPE html>
> <html lang="en">
>     <head>
>         <meta charset="UTF-8" />
>         <link rel="stylesheet" href="bundles/sensiodistribution/webconfigurator/css/install.css" media="all" />
>         <title>Symfony Configuration</title>
>     </head>
>     <body>
>         <div id="symfony-wrapper">
>             <div id="symfony-content">
>                 <div class="symfony-blocks-install">
>                     <div class="symfony-block-logo">
>                         <img src="bundles/sensiodistribution/webconfigurator/images/logo-big.gif" alt="Symfony logo" />
>                     </div>
> 
>                     <div class="symfony-block-content">
>                         <h1>Welcome!</h1>
>                         <p>Welcome to your new Symfony project.</p>
>                         <p>
>                             This script will guide you through the basic configuration of your project.
>                             You can also do the same by editing the ‘<strong>app/config/parameters.yml</strong>’ file directly.
>                         </p>
> 
>                         <?php if (count($majorProblems)): ?>
>                             <h2 class="ko">Major problems</h2>
>                             <p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p>
>                             <ol>
>                                 <?php foreach ($majorProblems as $problem): ?>
>                                     <li><?php echo $problem->getHelpHtml() ?></li>
>                                 <?php endforeach; ?>
>                             </ol>
>                         <?php endif; ?>
> 
>                         <?php if (count($minorProblems)): ?>
>                             <h2>Recommendations</h2>
>                             <p>
>                                 <?php if (count($majorProblems)): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,
>                                 it’s recommended that you fix the following:
>                             </p>
>                             <ol>
>                                 <?php foreach ($minorProblems as $problem): ?>
>                                     <li><?php echo $problem->getHelpHtml() ?></li>
>                                 <?php endforeach; ?>
>                             </ol>
>                         <?php endif; ?>
> 
>                         <?php if ($symfonyRequirements->hasPhpIniConfigIssue()): ?>
>                             <p id="phpini">*
>                                 <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?>
>                                     Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>".
>                                 <?php else: ?>
>                                     To change settings, create a "<strong>php.ini</strong>".
>                                 <?php endif; ?>
>                             </p>
>                         <?php endif; ?>
> 
>                         <?php if (!count($majorProblems) && !count($minorProblems)): ?>
>                             <p class="ok">Your configuration looks good to run Symfony.</p>
>                         <?php endif; ?>
> 
>                         <ul class="symfony-install-continue">
>                             <?php if (!count($majorProblems)): ?>
>                                 <li><a href="app_dev.php/_configurator/">Configure your Symfony Application online</a></li>
>                                 <li><a href="app_dev.php/">Bypass configuration and go to the Welcome page</a></li>
>                             <?php endif; ?>
>                             <?php if (count($majorProblems) || count($minorProblems)): ?>
>                                 <li><a href="config.php">Re-check configuration</a></li>
>                             <?php endif; ?>
>                         </ul>
>                     </div>
>                 </div>
>             </div>
>             <div class="version">Symfony Standard Edition</div>
>         </div>
>     </body>
> </html>
> 
> I'm thankful for any help. 
> 
> 
> Best regards
> 
> Jakob
> 
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users

-- 
********************************************
Where2B Konferenz 2013
12. Dezember 2013 in Bonn
www.where2b-conference.com
********************************************
--------------------------------------------
WhereGroup GmbH & Co. KG
Eifelstraße 7
53119 Bonn
Germany

Christian Wygoda
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11

info at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
--------------------------------------------
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
--------------------------------------------



More information about the Mapbender_users mailing list