Hello
Upgrade to 11.5.0 failed due to some file permission errors. I corrected those permissions, but now I still can't continue.
http://fristersoft.net redirects to http://fristersoft.net/upgrade.php
The resulting page reads
Cannot load ./local/config/database.inc.php
this is indeed true, as the file does not exist.
So, what do I do now?
Offline
Hi :-)
by FTP file exist ?
Offline
First ask yourself how your "corrected those permissions" could had lead to not having access to an existing file anymore.
Correct the permissions if it exists.
Then, if the file really does not exist, restore the backup you did before upgrading.
You did not? Dig into some backup and restore the file local/config/database.inc.php, it doesn't change after installation if database credentials didn't change.
Offline
Hello ddtddt & erAck,
thanks for your suggestions, but they still leave me stuck.
Why were there permissions problems? Because initial install was done by root, while upgrade was started by the apache user. i changed that so that now all files in /var/www/piwigo are owned by the apache user.
No, database.inc.php does not exist anywhere on my server. Why is there no backup? Because i started the upgrade by clicking the button on the admin page of my gallery, not from the command line. All that the upgrade pane proposed (and which I did) was to make a dump of the database.
I will proceed by reinstalling the last version I had downloaded (2.10.2, a year ago) ,restoring the database, and then trying the upgrade again. This time i will make a backup fo the whole installation before clicking upgrade.
BTW, I notice that my old config.inc.php contains all the database connection parameters, since when are those a separate file? Could I have built database.inc.php manually?
Regards,
JJF
Last edited by JJF (2021-07-22 05:06:15)
Offline
Hi :-)
You can change CHMOD
Offline
Database parameters and credentials were never written to config.inc.php (since 2010 at least), unless you put them there. If the directories were owned by root then the webserver may not had been able to create local/config/database.inc.php either and first installation told you to manually copy the lines and you pasted them into config.inc.php instead. However that may have worked, because Piwigo was always trying to include local/config/database.inc.php so should had a hickup if that wasn't there.
Offline