Hello. I'm trying to do a fresh installation (I had a very old version of zenphoto but decided to start all over again). The only thing that I have kept from the old installation, are the images (folders Albums and Cache). I've erased the database tables, it's empty.
The problem:
When I'm opening the setup url -
http://loeuvrette.be/collections/zp-core/setup.php - I have only a blank empty page.
What I've done:
I'v seen many other forum threads with regards to a blank page, but I couldn't find a solution. I've tried changing permissions to 755 to files and folders.
I've checked the installation requirements, but it looks ok - except mysql version is 5.1, not 5.5+.
Any ideas what I could do ? Thanks.
My info:
Zenphoto 1.4.3
Apache/2.2.16
MySQL client version: 5.1.63 (?)
PHP Version 5.3.3-7+squeeze13
Apache error log:
[Mon Jul 30 18:16:17 2012] [error] [client 81.66.140.14] File does not exist: /var/www/htdocs/loeuvrette/public/favicon.ico
[Mon Jul 30 19:15:13 2012] [error] [client 62.235.231.212] File does not exist: /var/www/htdocs/loeuvrette/public/favicon.ico
[Mon Jul 30 19:15:13 2012] [error] [client 62.235.231.212] File does not exist: /var/www/htdocs/loeuvrette/public/favicon.ico
[Mon Jul 30 20:04:42 2012] [crit] [client 69.171.237.3] (13)Permission denied: /var/www/htdocs/loeuvrette/public/collections/cache/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
There was no htaccess in /collections/cache. I've put an empty htaccess file, but it didn't change anything.
Comments
1. I've been able to read the /zp-data/debug.log (by using extplorer, a php file manager). This is what I found:
{Tue, 31 Jul 2012 15:43:02 GMT}
Backtrace: USER ERROR: MySql Error: ( INSERT INTO `[prefix]options` (`name`,`ownerid`,`theme`,`value`) VALUES ('magick_font_size',0,"",'18') ON DUPLICATE KEY UPDATE `value`='18' ) failed. MySql returned the error Table 'loeuvrette.collections_options' doesn't exist in /var/www/htdocs/loeuvrette/public/collections/zp-core/functions-db-MySQL.php on line 59
trigger_error called
from query (functions-db-MySQL.php [59])
from setOption (functions-basic.php [361])
from lib_Imagick_Options->__construct (lib-Imagick.php [45])
from require_once (lib-Imagick.php [26])
from require_once (functions-basic.php [182])
from require_once (functions.php [18])
from require_once (admin-functions.php [9])
from setup.php [247]
2. I have found a file named php_error.log (at /var/log of the shared hosting server), with a couple of times this message (not sure this is related):
[31-Jul-2012 18:09:02] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mhash.so' - /usr/lib/php5/20090626/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
[31-Jul-2012 18:09:02] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/xapian.so' - /usr/lib/php5/20090626/xapian.so: cannot open shared object file: No such file or directory in Unknown on line 0
Does any of this help?
[Tue Jul 31 18:09:12 2012] [crit] [client 66.249.66.216] (13)Permission denied: /var/www/htdocs/loeuvrette/public/collections/cache/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
The PHP warnings are something else not related. From the messages I would guess it is a configuration problem with PHP. But they seem not related to Zenphoto, and may not even be a real issue.
The .htaccess error seems to indicate that the file permissions on that file (in the cache folder) are not allowing the file to be read by the apache.