When attempting to set up the database after hitting "Go" I get 'internal server error'
no php error log is generated, but the apache error log says :
Premature end of script headers: setup.php, referer:
http://zen.localhost/zp-core/setup.phpThis happens on a php 5.3.1 system, apache 2.2.14, mysql 5.5m2 (also tried mysql 5.1, same problem)
I've been able to install wordpress, drupal 6 test installs without issue so the server appears to be well configured.
It gets as far as creating :
zp_administrators, zp_admintoalbum, zp_albums, zp_captcha, zp_comments, zp_images, zp_obj_to_tag, zp_options, zp_tags, zp_zenpage_news, zp_zenpage_news2cat, zp_zenpage_news_categories, zp_zenpage_pages
in the database.
the only errors on the install page before hitting go are :
'PHP setlocale() failed
Warning!
Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.
See the troubleshooting guide on zenphoto.org for details.'
and I leave 'File/Folder Permissions [are loose (0777)]' as it fails to change them if I try swap to strict (it's a windows apache install on a dev box)
Comments
However, internal server errors are typically caused by file permissions. For instance, some servers will not execute script code from folders with permissions that allow anyone to write to them. (IMHO a good policy.)
I installed apache, php and mysql myself as I have done many times, it's a near-default install with no heavy security settings as it's an entirely offline server just used for development.
when attempting to move it to strict it fails to change the permissions on all but the locale folders.
[code]
# Zenphoto core file permissions [not correct]
Warning!
Setup could not set the one or more components to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# .htaccess file (RewriteEngine is ON)
# .htaccess RewriteBase is /
# robots.txt file [Not created] Notice! click for details
Notice!
Setup did not create a robots.txt file because one already exists.
# albums folder [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# cache folder [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# locale folders
# uploaded folder [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# zp-data folder [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# HTML cache folder (cache_html) [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
# Third party plugins folder (plugins) [permissions failure]
Warning!
Setup could not set the folder to the selected permissions level. You will have to set the permissions manually. See the Troubleshooting guide for details on Zenphoto permissions requirements.
[/code]
I was simply trying to give you as much information as available about any errors/warnings in the hope that you can identify why zenphoto is the only site I have tried that refuses to complete the database population stage of it's install process.
I do not believe the site is 'protecting me from myself' as it is a default apache install with php 5.3.1 that I installed and configured myself (very minor config changes unrelated to security), and I have installed and run happily drupal 6.15, wordpress 2.9.1, phpmyadmin 3.2.5.
for each CMS/ site I test I give it it's own database on my localhost mysql server, with one login with full permissions to that database.
All the sites being tested are installed with full file/folder permissions, I modify them later only if necessary for testing.
nb. as I have been writing this post I have also installed joomla 1.5.1.5 without issue.
zenhphoto is currently the only site that is failing to install and run, so it seems very much to me the problem is more likely to be an issue with zenphoto and not my test system.
However, if you feel this is not the case I must presume you know better than I. Therefore I can be of no help.