Member
Member
BlueG   2012-07-15, 18:38
#1

I'm trying to install Zenphoto 1.4.3 on Debian Wheezy. At first I got errors that various files couldn't be opened, but this was resolved by chowning the entire installation to www-data. Then I set up a MySQL database:
mysql> create database zpdb; mysql> grant usage on *.* to zpuser@localhost identified by 'zppwd'; mysql> grant all privileges on zpdb.* to zpuser@localhost ;
The Zenphoto setup page loads in my browser, everything looks good except a warning about relaxed file permissions, and that no database is selected. However, once I enter the MySQL information and click Save, everything disappears and I get nothing but a blank page from Zenphoto after that. No entries are produced in /var/log/apache2/error.log, either. /etc/php5/apache2/php.ini has display_errors = On and error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT. Any idea what I am missing here?

Member
Member
sbillard   2012-07-15, 20:22
#2

Has Zenphoto created a setup log? If so, what is in it?

Blank pages generally are the result of catastrophic PHP errors. But those should have been logged somewhere. Perhaps your PHP errorare not going in the apache error log, but somewhere else.

Member
Member
BlueG   2012-07-16, 04:16
#3

Here is the content of /zp-data/setup.log:
Zenphoto Setup v1.4.3[10393]: Sun, 15 Jul 2012 18:16:15 +0000
Warn: If file permissions are not set to strict or tighter there could be a security risk. However, on some servers Zenphoto does not function correctly with tight file permissions. If Zenphoto has permission errors, run setup again and select a more relaxed permission.Set File permissions to readonly (0444) strict (0644) relaxed (0664) loose (0666)apply.

I wrote a php file on the same virtual host to deliberately generate a php error and it was logged to /var/log/apache2/error.log but nothing is getting logged when I attempt to access Zenphoto and get a blank page.

Member
Member
sbillard   2012-07-16, 17:21
#4

Try running setup again but add ?debug to the URL. This will put more information in the setup log.

Member
Member
BlueG   2012-07-17, 04:07
#5

Here is the new /zp-data/setup.log when I reinstalled and used /zp-core/setup.php?debug to run the setup. As before, once I enter the MySQL date and click save, all I get is a blank page.

Zenphoto Setup v1.4.3[10393]: Tue, 17 Jul 2012 03:59:26 +0000
Primitive environment
Pass: Installing Zenphoto v1.4.3
Pass: Log security
Pass: PHP version 5.4.4-2
Pass: PHP Sessions.
Pass: PHP Register Globals
Pass: PHP Safe Mode
Pass: PHP magic_quotes_gpc
Pass: PHP magic_quotes_runtime
Pass: PHP magic_quotes_sybase
Pass: PHP gettext() support
Pass: PHP mbstring package
Pass: zenphoto.cfg file
Warn: If file permissions are not set to strict or tighter there could be a security risk. However, on some servers Zenphoto does not function correctly with tight file permissions. If Zenphoto has permission errors, run setup again and select a more relaxed permission.Set File permissions to readonly (0444) strict (0644) relaxed (0664) loose (0666)apply.
Pass: PHP MySQL support for configured Database
Fail: No database selected
Pass: Zenphoto core files
Pass: .htaccess file (RewriteEngine is ON)
Pass: .htaccess RewriteBase is /MediaGallery (fixed)
Pass: robots.txt file
Pass: albums folder
Pass: cache folder
Pass: locale folders
Pass: uploaded folder
Pass: zp-data folder
Pass: HTML cache folder (cache_html)
Pass: Third party plugins folder (plugins)
db POST handling
Updated configuration file

Member
Member
sbillard   2012-07-17, 16:28
#6

The most likely thing that would be happening is that the .htaccess file is created in the timeframe that this log stopped.

Others have reported an issue with the IndexIgnore * line in .htaccess if the apache [i]autoindex_module[/i] is not enabled. Perhaps this is a problem for Debian as well. You can try removing that line from the file

Member
Member
BlueG   2012-07-18, 02:56
#7

I tried commenting out the IndexIgnore *, but it didn't change anything. Then I check in /etc/apache2/mods-enabled/ and it appears autoindex actually is enabled anyway.

Member
Member
sbillard   2012-07-18, 23:35
#8

There still may be a .htaccess problem. Try making an empty .htaccess file and see what happens.

Member
Member
BlueG   2012-07-19, 00:26
#9

I tried creating an empty .htaccess file and I still get no output.

Member
Member
sbillard   2012-07-19, 01:39
#10

please review http://www.zenphoto.org/trac/ticket/2204#comment:37 and see if you think anything might apply in your case.

Junior Member
Junior Member
clifforddawson   2012-07-22, 16:18
#11

Hi, I faced exactly the same problem too. Once I key in the database info and hit "Save" button. It turn out a blank page. Any idea how to solve this?

Administrator
Administrator
acrylian   2012-07-22, 18:38
#12

First tell what the error log says.

Junior Member
Junior Member
e.steuber   2012-08-04, 12:00
#13

Gentoo Linux

zenphoto 1.4.3.1
MySql 5.1.56
PHP 5.3.8

The same behavior here, blank page after applying DB credentials.
Apache error log:

PHP Fatal error: Call to undefined function zp_graphicsLibInfo() in /zp-core/functions-basic.php on line 190

Member
Member
sbillard   2012-08-04, 16:56
#14

It would appear that your configuration includes neither the GD graphics suport nor the Imagick support.

Junior Member
Junior Member
mistral   2012-08-06, 05:16
#15

zenphoto 1.4.3.1
Server version: 5.5.25-cll MySQL
PHP Version 5.3.14

The same behavior here, blank page after applying DB credentials.
Apache error log:

PHP Fatal error: Call to undefined function zp_graphicsLibInfo() in /zp-core/functions-basic.php

Administrator
Administrator
acrylian   2012-08-06, 08:49
#16

@Mistral: You did read the answer from my colleague??

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.