The simpler media website CMS
Hi,
I'm trying to make a new installation of Zenphoto on a Ubuntu Server. I have installed Apache, MySQL, and PHP. I store the folder in /var/www/html/zenphoto. I go to the setup URL and I get an error 500.
Is this something to do with htaccess file?
Comments
Surely possible. Or your server setup/configuration. Sorry, can't help with that.
Hi,
I checked the apache error log and this is what I am getting:
[Fri Jul 07 16:26:06.472037 2023] [php:warn] [pid 1010] [client 98.114.223.209:56422] PHP Warni
ng: filemtime(): stat failed for /var/www/html/zenphoto/zp-data/zenphoto.cfg.php in /var/www/h
tml/zenphoto/zp-core/setup/index.php on line 116, referer: http://18.233.93.77/
[Fri Jul 07 16:26:06.472127 2023] [php:warn] [pid 1010] [client 98.114.223.209:56422] PHP Warni
ng: fileperms(): stat failed for /var/www/html/zenphoto/zp-data/zenphoto.cfg.php in /var/www/h
tml/zenphoto/zp-core/setup/class-setup.php on line 688, referer: http://18.233.93.77/
[Fri Jul 07 16:26:06.472231 2023] [php:warn] [pid 1010] [client 98.114.223.209:56422] PHP Warni
ng: Undefined variable $selected_database in /var/www/html/zenphoto/zp-core/setup/index.php on
line 346, referer: http://18.233.93.77/
[Fri Jul 07 16:26:06.472261 2023] [php:error] [pid 1010] [client 98.114.223.209:56422] PHP Fata
l error: Uncaught Error: Class "dbBase" not found in /var/www/html/zenphoto/zp-core/setup/inde
x.php:371\nStack trace:\n#0 {main}\n thrown in /var/www/html/zenphoto/zp-core/setup/index.php
on line 371, referer: http://18.233.93.77/
[Fri Jul 07 16:26:13.085047 2023] [php:warn] [pid 564] [client 98.114.223.209:56425] PHP Warnin
g: fopen(/var/www/html/zenphoto/zp-data/debug.log): Failed to open stream: Permission denied i
n /var/www/html/zenphoto/zp-core/functions/functions-basic.php on line 1404, referer: http://18
.233.93.77/
[Fri Jul 07 16:26:13.085076 2023] [php:warn] [pid 564] [client 98.114.223.209:56425] PHP Warnin
g: fopen(/var/www/html/zenphoto/zp-data/debug.log): Failed to open stream: Permission denied i
n /var/www/html/zenphoto/zp-core/functions/functions-basic.php on line 1404, referer: http://18
.233.93.77/
[Fri Jul 07 16:26:13.103093 2023] [php:warn] [pid 564] [client 98.114.223.209:56425] PHP Warnin
g: filemtime(): stat failed for /var/www/html/zenphoto/zp-data/zenphoto.cfg.php in /var/www/ht
ml/zenphoto/zp-core/setup/index.php on line 116, referer: http://18.233.93.77/
[Fri Jul 07 16:26:13.103186 2023] [php:warn] [pid 564] [client 98.114.223.209:56425] PHP Warnin
g: fileperms(): stat failed for /var/www/html/zenphoto/zp-data/zenphoto.cfg.php in /var/www/ht
ml/zenphoto/zp-core/setup/class-setup.php on line 688, referer: http://18.233.93.77/
[Fri Jul 07 16:26:13.103276 2023] [php:warn] [pid 564] [client 98.114.223.209:56425] PHP Warnin
g: Undefined variable $selected_database in /var/www/html/zenphoto/zp-core/setup/index.php on
line 346, referer: http://18.233.93.77/
[Fri Jul 07 16:26:13.103305 2023] [php:error] [pid 564] [client 98.114.223.209:56425] PHP Fatal
error: Uncaught Error: Class "dbBase" not found in /var/www/html/zenphoto/zp-core/setup/index
.php:371\nStack trace:\n#0 {main}\n thrown in /var/www/html/zenphoto/zp-core/setup/index.php o
n line 371, referer: http://18.233.93.77/
Could the files be corrupted for Zenphoto?
I would rather suspect wrong file permissions.
Aha!
It was permissions. I tried to set the folder permission