[Mapbender-users] php issues trying to install mapbender3 on Debian/testing with php7

Moritz Lennert mlennert at club.worldonline.be
Tue Oct 11 08:34:18 PDT 2016

Hello there,

I'm new to Mapbender and am having quite some issues just trying to 
install it. Any help would be appreciated.

Below a summary of my situation and of what I've done.

Thanks !



OS: Debian testing
Apache Version: 2.4.23
PHP Debian version: 1:7.0+45

I "apt-get removed" any remaining installed php5 packages (php5 is no 
longer supported in Debian testing)

sudo apt-get install apache2 libapache2-mod-php php php-pgsql php-gd 
php-curl php-cli php-xml php-sqlite3 sqlite3 php-apcu php-intl openssl 
php-zip php-mbstring php-bz2

sudo a2enmod rewrite

cd /var/www
sudo tar xvzf ~/SRC/mapbender3-
sudo mv mapbender3- mapbender3

sudo vi mapbender3.conf
Alias /mapbender3 /var/www/mapbender3/web/
<Directory /var/www/mapbender3/web/>
  Options MultiViews FollowSymLinks
  DirectoryIndex app.php
  Require all granted

  RewriteEngine On
  RewriteBase /mapbender3/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ app.php [QSA,L]

sudo a2ensite mapbender3.conf

sudo service apache2 reload

When I now point my browser to


I get a page with this:

register(true); */ require_once __DIR__.'/../app/AppKernel.php'; 
//require_once __DIR__.'/../app/AppCache.php'; $kernel = new 
AppKernel('prod', false); $kernel->loadClassCache(); //$kernel = new 
AppCache($kernel); $request = Request::createFromGlobals(); $response = 
$kernel->handle($request); $response->send(); 
$kernel->terminate($request, $response);

When I point it to


I get to the config page, but with apparently a series of PHP issues 
(see attached screenshot)

After having seen an error about date.timezone on 

sudo vi /etc/php/7.0/cli/php.ini
sudo vi /etc/php/7.0/apache2/php.ini

date.timezone = Europe/Brussels

sudo service apache2 restart


=> same result

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapbender_config_php.png
Type: image/png
Size: 103094 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20161011/590e4889/attachment-0001.png>

More information about the Mapbender_users mailing list