#1 2021-07-21 04:28:26

JJF
Member
2011-10-06
121

Upgrade to 11.5.0 failed...

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

 

#2 2021-07-21 06:20:03

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7283

Re: Upgrade to 11.5.0 failed...

Hi :-)

by FTP file exist ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2021-07-21 10:35:57

erAck
Only trying to help
2015-09-06
2210

Re: Upgrade to 11.5.0 failed...

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2021-07-22 04:42:47

JJF
Member
2011-10-06
121

Re: Upgrade to 11.5.0 failed...

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

 

#5 2021-07-22 06:54:49

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7283

Re: Upgrade to 11.5.0 failed...

Hi :-)

You can change CHMOD


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2021-07-22 10:21:50

erAck
Only trying to help
2015-09-06
2210

Re: Upgrade to 11.5.0 failed...

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact