Page 1 of 1

Install looks ok but doing the simple config gives me zero

Posted: Tue Nov 29, 2005 1:31 am
by buehler
Gents,

I've installed v9.1 (new). Config page comes up clean, hitting the submit after doing a simple config nets zero.

My apache logs show the following.

[Sun Nov 27 19:48:25 2005] [error] PHP Fatal error: Cannot redeclare serendipity_db_update() (previously declared in /www/buehlers/docs/include/db/db.inc.php:9) in ./include/db/db.inc.php on line 9

You can visit www.buehlers.us to see the setup.

PHP works with other apps. Do I need GDlib?


:roll:

Re: Install looks ok but doing the simple config gives me ze

Posted: Tue Nov 29, 2005 10:46 am
by garvinhicking
Serendipity uses an include_once command to only include the DB layer once. If it is included twice, that can only happen if PHP includes the files twice.

That in effect means that PHP gets confused with realpath() system calls to your PHP files. Can it be that you use a non-Linux OS and/or are using symlinks for your serendipity installation?

Which PHP version are you using exactly, and what is your OS?

Regards,
Garvin

Install looks ok but doing the simple config gives me zero

Posted: Wed Nov 30, 2005 6:07 pm
by buehler
Garvin,

This is my setup. I do have a symlink for /local/www -> /www, but apache knows the doc root as /local/www.

PHP installation
Operating system NetBSD 2.0, sparc
Webserver SAPI apache
PHP version >= 4.1.2 Yes, 4.4.0
Database extensions MySQL
Session extension Yes
PCRE extension Yes
GDlib extension No
OpenSSL extension No
mbstring extension No
iconv extension No
zlib extension Yes
Imagemagick binary /usr/local/bin/convert

php.ini configuration
Recommended Actual
safe_mode OFF OFF
register_globals OFF ON
magic_quotes_gpc OFF OFF
magic_quotes_runtime OFF OFF
session.use_trans_sid OFF OFF
allow_url_fopen ON ON
file_uploads ON ON
post_max_size 10M 8M
upload_max_filesize 10M 2M

Permissions
/www/buehlers/docs/ Writable
/www/buehlers/docs/templates_c Writable
/www/buehlers/docs/uploads/ Writable
Execute Imagemagick binary Yes

Re: Install looks ok but doing the simple config gives me ze

Posted: Thu Dec 01, 2005 11:23 am
by garvinhicking
Oh, I don'T have experience on the NetBSD OS on Sparc. But this is definitely where the problem is. Either your OS or the PHP version doesn'T truly resolve realname calls to your symlinked directory.

You'll need to get in touch with the PHP developers and tell them that include_once() on your system using /www or /local/www returns different filehandles instead of the same. Maybe they can help you.

The other possibility would be to not use symlink and configure the actual path as docroot and serendipity root, then the problem should go away on that cause.

Regards,
Garvin