<div dir="ltr"><div><div>Hello Christian,<br><br></div>thanks for the hint and the rapid answer. If I figure it out I will let you know.<br><br></div>Cheers<br>Jakob<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/28 Christian Wygoda <span dir="ltr"><<a href="mailto:christian.wygoda@wheregroup.com" target="_blank">christian.wygoda@wheregroup.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Jakob,<br>
<br>
this is definately a problem with your Apache configuration. It doesn't<br>
know how to handle files ending in .php so it just returns them as plain<br>
text.<br>
<br>
Not knowing where you got your Apache and PHP and the configuration they<br>
use it will be hard to give a solution. But I suppose there will be a<br>
lot of websites describing how to set up Apache with PHP for Windows.<br>
Maybe too many - specifically a lot of them will be for Apache 2.2 which<br>
has different configuration options than 2.4 here and there...<br>
<br>
Cheers,<br>
  Christian<br>
<div><div class="h5"><br>
On Thu, 2013-11-28 at 15:33 +0100, Jakob Tworek wrote:<br>
> Hello list,<br>
><br>
><br>
> I've installed Mapbender3 on  Windows 7 (64) System with PHP 5.4.7 and<br>
> an Apache2.4. The command-line installation went fine (I followed<br>
> <a href="http://doc.mapbender3.org/en/book/installation.html" target="_blank">http://doc.mapbender3.org/en/book/installation.html</a>) but when I enter<br>
> <a href="http://localhost/mapbender3/" target="_blank">http://localhost/mapbender3/</a> I just get the following:<br>
><br>
> <?php<br>
><br>
> require_once __DIR__.'/../app/bootstrap.php.cache';<br>
> require_once __DIR__.'/../app/AppKernel.php';<br>
> //require_once __DIR__.'/../app/AppCache.php';<br>
><br>
> use Symfony\Component\HttpFoundation\Request;<br>
><br>
> $kernel = new AppKernel('prod', false);<br>
> $kernel->loadClassCache();<br>
> //$kernel = new AppCache($kernel);<br>
> $request = Request::createFromGlobals();<br>
> $response = $kernel->handle($request);<br>
> $response->send();<br>
> $kernel->terminate($request, $response);<br>
><br>
><br>
> I don't get it! Is it a problem with my php configuration or maybe my apache configuration?<br>
><br>
> When I enter  <a href="http://localhost/mapbender3/config.php" target="_blank">http://localhost/mapbender3/config.php</a> I just get:<br>
><br>
><br>
> <?php<br>
><br>
> if (!isset($_SERVER['HTTP_HOST'])) {<br>
>     exit('This script cannot be run from the CLI. Run it from a browser.');<br>
> }<br>
><br>
> if (!in_array(@$_SERVER['REMOTE_ADDR'], array(<br>
>     '127.0.0.1',<br>
>     '::1',<br>
> ))) {<br>
>     header('HTTP/1.0 403 Forbidden');<br>
>     exit('This script is only accessible from localhost.');<br>
> }<br>
><br>
> require_once dirname(__FILE__).'/../app/SymfonyRequirements.php';<br>
><br>
> $symfonyRequirements = new SymfonyRequirements();<br>
><br>
> $majorProblems = $symfonyRequirements->getFailedRequirements();<br>
> $minorProblems = $symfonyRequirements->getFailedRecommendations();<br>
><br>
> ?><br>
> <!DOCTYPE html><br>
> <html lang="en"><br>
>     <head><br>
>         <meta charset="UTF-8" /><br>
>         <link rel="stylesheet" href="bundles/sensiodistribution/webconfigurator/css/install.css" media="all" /><br>
>         <title>Symfony Configuration</title><br>
>     </head><br>
>     <body><br>
>         <div id="symfony-wrapper"><br>
>             <div id="symfony-content"><br>
>                 <div class="symfony-blocks-install"><br>
>                     <div class="symfony-block-logo"><br>
>                         <img src="bundles/sensiodistribution/webconfigurator/images/logo-big.gif" alt="Symfony logo" /><br>
>                     </div><br>
><br>
>                     <div class="symfony-block-content"><br>
>                         <h1>Welcome!</h1><br>
>                         <p>Welcome to your new Symfony project.</p><br>
>                         <p><br>
>                             This script will guide you through the basic configuration of your project.<br>
>                             You can also do the same by editing the ‘<strong>app/config/parameters.yml</strong>’ file directly.<br>
>                         </p><br>
><br>
>                         <?php if (count($majorProblems)): ?><br>
>                             <h2 class="ko">Major problems</h2><br>
>                             <p>Major problems have been detected and <strong>must</strong> be fixed before continuing:</p><br>
>                             <ol><br>
>                                 <?php foreach ($majorProblems as $problem): ?><br>
>                                     <li><?php echo $problem->getHelpHtml() ?></li><br>
>                                 <?php endforeach; ?><br>
>                             </ol><br>
>                         <?php endif; ?><br>
><br>
>                         <?php if (count($minorProblems)): ?><br>
>                             <h2>Recommendations</h2><br>
>                             <p><br>
>                                 <?php if (count($majorProblems)): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience,<br>
>                                 it’s recommended that you fix the following:<br>
>                             </p><br>
>                             <ol><br>
>                                 <?php foreach ($minorProblems as $problem): ?><br>
>                                     <li><?php echo $problem->getHelpHtml() ?></li><br>
>                                 <?php endforeach; ?><br>
>                             </ol><br>
>                         <?php endif; ?><br>
><br>
>                         <?php if ($symfonyRequirements->hasPhpIniConfigIssue()): ?><br>
>                             <p id="phpini">*<br>
>                                 <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?><br>
>                                     Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>".<br>

>                                 <?php else: ?><br>
>                                     To change settings, create a "<strong>php.ini</strong>".<br>
>                                 <?php endif; ?><br>
>                             </p><br>
>                         <?php endif; ?><br>
><br>
>                         <?php if (!count($majorProblems) && !count($minorProblems)): ?><br>
>                             <p class="ok">Your configuration looks good to run Symfony.</p><br>
>                         <?php endif; ?><br>
><br>
>                         <ul class="symfony-install-continue"><br>
>                             <?php if (!count($majorProblems)): ?><br>
>                                 <li><a href="app_dev.php/_configurator/">Configure your Symfony Application online</a></li><br>
>                                 <li><a href="app_dev.php/">Bypass configuration and go to the Welcome page</a></li><br>
>                             <?php endif; ?><br>
>                             <?php if (count($majorProblems) || count($minorProblems)): ?><br>
>                                 <li><a href="config.php">Re-check configuration</a></li><br>
>                             <?php endif; ?><br>
>                         </ul><br>
>                     </div><br>
>                 </div><br>
>             </div><br>
>             <div class="version">Symfony Standard Edition</div><br>
>         </div><br>
>     </body><br>
> </html><br>
><br>
> I'm thankful for any help.<br>
><br>
><br>
> Best regards<br>
><br>
> Jakob<br>
><br>
</div></div>> _______________________________________________<br>
> Mapbender_users mailing list<br>
> <a href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapbender_users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapbender_users</a><br>
<br>
--<br>
********************************************<br>
Where2B Konferenz 2013<br>
12. Dezember 2013 in Bonn<br>
<a href="http://www.where2b-conference.com" target="_blank">www.where2b-conference.com</a><br>
********************************************<br>
--------------------------------------------<br>
WhereGroup GmbH & Co. KG<br>
Eifelstraße 7<br>
53119 Bonn<br>
Germany<br>
<br>
Christian Wygoda<br>
Anwendungsentwickler<br>
<br>
Fon: <a href="tel:%2B49%20%280%29228%20%2F%2090%2090%2038%20-%2015" value="+4922890903815">+49 (0)228 / 90 90 38 - 15</a><br>
Fax: <a href="tel:%2B49%20%280%29228%20%2F%2090%2090%2038%20-%2011" value="+4922890903811">+49 (0)228 / 90 90 38 - 11</a><br>
<br>
<a href="mailto:info@wheregroup.com">info@wheregroup.com</a><br>
<a href="http://www.wheregroup.com" target="_blank">www.wheregroup.com</a><br>
Amtsgericht Bonn, HRA 6788<br>
--------------------------------------------<br>
Komplementärin:<br>
WhereGroup Verwaltungs GmbH<br>
vertreten durch:<br>
Olaf Knopp, Peter Stamm<br>
--------------------------------------------<br>
<br>
_______________________________________________<br>
Mapbender_users mailing list<br>
<a href="mailto:Mapbender_users@lists.osgeo.org">Mapbender_users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapbender_users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapbender_users</a></blockquote></div><br></div>