[Mapbender-users] 2.7 rc1 problem

Hernan Olivera lholivera at gmail.com
Tue Jan 18 14:21:19 EST 2011


I'm working with 2.7 rc1 on CentOS, with the installing script and all
dependencies ok.
Now mapbender_setup.php looks good, except for the line error logging:
Unable to open or generate

This is the ls -l report on the log dir:
drw-rw-rw-  2 apache apache  4096 ene 18 15:22 log

I've been hacking around on http/classes, and the problem is
class_mb_log.php, line 36:
if ($h = fopen($logfile, "a"))

It can't create the file. I've hardcoded the dir, changed permissions,
and it's the same.

I don't know what to do now.

And, mapbender starts, but every app hangs 'loading application.'

My mapbender setup checker:

PHP Configurationcheck
php Version	X	Version: 5.2.10
interface	X	Modul-PHP
path to php.ini	X	/etc/php.ini
extension_dir	X	/usr/lib64/php/modules(check the path, is it correct?)
session.save_path	X	/var/lib/php/session (check out the authorisation
of the dir)
memory Limit	X	512M (running in memory-trouble with printing? Perhaps
raise your memory limit)
error-reporting	X	ok, error_reporting = E_ALL & ~E_NOTICE
session.save_handler	X	session.save_handler = files
file_Uploads	X	On
allow_url_fopen	X	On
short_open_tag	X	Off
JSON support	X	Native PHP
PHP Extensioncheck
PostgreSQL check	X	PostgreSQL installed
GD2 check	X	GD installed
mbstring check	X	mbstring installed
gettext check	X	gettext installed
imagick check	X	imagick installed

user=postgres dbname=mapbender host= port=5432 conn=Resource id #11
Database check
Administration Database	X	PostgreSQL
Connect to Database	X	connected
MD5 support	X	md5 supported
PostGIS check
PostGIS support	X	PostGIS function available
Version	X	POSTGIS="1.5.2" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23
September 2009" LIBXML="2.6.26" USE_STATS

Mapbender Configuration Check
Administration Database	X	pgsql
DB-Server	X (is this your DB-Server)
Mapbender-DB	X	mapbender (is this your Mapbender-DB)
DB-Owner	X	postgres (is this your DB-Owner)
PREPAREDSTATEMENTS	X	set to 'true' and php 5.2.10 should work
TMPDIR	X	../tmp
OWSPROXY	X	http:///owsproxy (Is this the right URL to your OWSPROXY?)
AUTO_UPDATE	X	set to 0: (see the result of the test and update WMS manually)
ERROR LOGGING		Unable to open or generate
LOG_LEVEL	X	set to 'error': -Mapbender-errors will be logged	
PORTAL	X	false (Users can't create their own accounts at the moment)
Login-Path	http://localhost/mapbender/frames/login.php
(If this link doesn't work, check your url to 'Login' in your mapbender.conf
Perhaps an alias in your httpd.conf will solve the problem, too)

Hernan Olivera

More information about the Mapbender_users mailing list