http error 500 after fresh installation

Hi,
I'm using zenphoto meanwhile some years.

Now I've to change to a new server, where I'm trying a fresh installation. Data migration isn't important at this time.

So I've downloaded the actual tar.gz (I've tryed it multiple times with 1.6.6 and 1.6.8) to my server and unpacked it under /var/www/html (debian). changed the user/group to www-data and the zp-data to 0600. apache2 restart.

trying http://my.server.tld with standard index.html works. But calling http://my.server.tld/zp-core/setup was extended to http://my.server.tld/zp-core/setup/index.php?autorun=admin and gives http error 500 ("kann diese Anfrage momentan nicht verarbeiten."). This is independent from browser.

No config files under zp-data.

Are there any cache files in other dirs?

Any suggestion for a frustrated user?

Many thanks
Frank

Comments

  • acrylian Administrator, Developer
    edited June 7

    A reason for 1.6.7 was that fresh installs indeed were broken in 1.6.6.
    Try accesssing yourdomain.com/zp-core/setup.php instead.

    No config files under zp-data.

    No, the config filei will get generated on setup. Note the special behaviour regarding entering db credentials: https://www.zenphoto.org/news/installation-and-upgrading/

    500 errors often indicate some issue with htaccess redirections. Also try lowering the file persmissions. On some hosts this also causes trouble if too strict.
    https://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders/

  • zpghile Member

    I know, that the config file is generated by setup. My note was only, that there isn't any file which can blocking the setup.
    .../setup.php give the same error.

    What I've found in the apache logs:
    access.log:
    "GET /zp-core/setup.php HTTP/1.1" 302 283 "-" ... (redirect?)

    error.log:
    [Sat Jun 07 16:10:31.806547 2025] [proxy_fcgi:error] [pid 70607:tid 70648] [client 77.22.166.94:38168] AH01071: Got error 'PHP message: PHP Warning: fopen(/var/www/html/zp-data/debug.log): Failed to open stream: Permission denied in /var/www/html/zp-core/functions/functions-basic.php on line 1515'
    [Sat Jun 07 16:10:31.844684 2025] [proxy_fcgi:error] [pid 70607:tid 70650] [client 77.22.166.94:38168] AH01071: Got error 'PHP message: PHP Warning: filemtime(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/index.php on line 118; PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/class-setup.php on line 682; PHP message: PHP Warning: Undefined variable $selected_database in /var/www/html/zp-core/setup/index.php on line 348; PHP message: PHP Fatal error: Uncaught Error: Class "dbBase" not found in /var/www/html/zp-core/setup/index.php:373\nStack trace:\n#0 {main}\n thrown in /var/www/html/zp-core/setup/index.php on line 373'
    [Sat Jun 07 16:11:35.247480 2025] [proxy_fcgi:error] [pid 70607:tid 70656] [client 77.22.166.94:22266] AH01071: Got error 'PHP message: PHP Warning: filemtime(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/index.php on line 118; PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/class-setup.php on line 682; PHP message: PHP Warning: Undefined variable $selected_database in /var/www/html/zp-core/setup/index.php on line 348; PHP message: PHP Fatal error: Uncaught Error: Class "dbBase" not found in /var/www/html/zp-core/setup/index.php:373\nStack trace:\n#0 {main}\n thrown in /var/www/html/zp-core/setup/index.php on line 373'
    [Sat Jun 07 17:01:28.669685 2025] [proxy_fcgi:error] [pid 70608:tid 70628] [client 77.22.166.94:53807] AH01071: Got error 'PHP message: PHP Warning: fopen(/var/www/html/zp-data/debug.log): Failed to open stream: Permission denied in /var/www/html/zp-core/functions/functions-basic.php on line 1515'
    [Sat Jun 07 17:01:28.807861 2025] [proxy_fcgi:error] [pid 70608:tid 70615] [client 77.22.166.94:53807] AH01071: Got error 'PHP message: PHP Warning: filemtime(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/index.php on line 118; PHP message: PHP Warning: fileperms(): stat failed for /var/www/html/zp-data/zenphoto.cfg.php in /var/www/html/zp-core/setup/class-setup.php on line 682; PHP message: PHP Warning: Undefined variable

  • acrylian Administrator, Developer

    I know, that the config file is generated by setup. My note was only, that there isn't any file which can blocking the setup.

    Okay, misunderstood that.

    Those errors you listed seem to indicate that indeed something is not right with the file/folder permissions. Too strict and/or the wrong user probably.

  • zpghile Member

    SOLVED
    I've experimented with mod_rewrite and the security of zp-data. Now it works :-)
    Many thanks for assistance.

  • acrylian Administrator, Developer

    Great you managed it. Anything specific you did that may be of help to others?

Sign In or Register to comment.