ZenphotoCMS Forum
Installation Setup Won't Run - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Installation Setup Won't Run (/thread-13914.html)



Installation Setup Won't Run - Lapel3170 - 08-02-2024

I'm installing Zenphoto for the first time by following the instruction here:
https://www.zenphoto.org/news/installation-and-upgrading/

When I visit my website, the setup won't run. Apache's log displays the following:

[Thu Feb 08 11:09:53.860794 2024] [php:warn] [pid 1137] [client 202.186.128.89:10873] PHP Warning: filemtime(): stat failed for /var/www/example.com/zp-data/zenphoto.cfg.php in /var/www/example.com/zp-core/setup/index.php on line 115
[Thu Feb 08 11:09:53.861088 2024] [php:warn] [pid 1137] [client 202.186.128.89:10873] PHP Warning: fileperms(): stat failed for /var/www/example.com/zp-data/zenphoto.cfg.php in /var/www/example.com/zp-core/setup/class-setup.php on line 686
[Thu Feb 08 11:09:53.861407 2024] [php:warn] [pid 1137] [client 202.186.128.89:10873] PHP Warning: Undefined variable $selected_database in /var/www/example.com/zp-core/setup/index.php on line 345
[Thu Feb 08 11:09:53.861550 2024] [php:error] [pid 1137] [client 202.186.128.89:10873] PHP Fatal error: Uncaught Error: Class "dbBase" not found in /var/www/example.com/zp-core/setup/index.php:370\nStack trace:\n#0 {main}\n thrown in /var/www/example.com/zp-core/setup/index.php on line 370

Help is greatly appreciated.




Installation Setup Won't Run - acrylian - 08-02-2024

Your file/folder permissions are not correct or run with the wrong server user so the config file cannot be loaded: https://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders/

You may have to ask your host about that.




Installation Setup Won't Run - Lapel3170 - 08-02-2024

Thanks, it works now. I had set the files and folders' owner to the wrong user, it should be 'www-data'.