Hello,
I migrated Piwigo to another hoster, together with several domains with Wordpress sites. The Wordpress sites went without a hitch, but Piwigo is giving me issues.
The whole root including al directories and files are copied from the old hoster to the new, and the database was exported and imported.
The whole interface of Piwigo is functional, except that all the pictures will not load. Not public, not logged in and not in the administration interface.
All the folder/files rights seem to be OK with 755 for the folders and 644 for all the files.
All the data is also there where it should be in the right paths, so it's not that the path is wrong, or the files are missing. With a direct link to the image, it just displays in the browser, but not when accessed through Piwigo.
All kinds of cleanup/maintence tasks are tried via the administration interface, but with no difference. I also tried upgrading to the latest beta version, hoping that would fix something, but alas.
When I look at the developer console, I see 403's on the images. But I don't understand where this is coming from, see screenshot:
Sidenote: Piwigo was active before on this exact same host, but that was several years and updates ago.
Environment:
Piwigo 15.0.0beta3
Installed on 21 December 2018, 5 years 9 months 1 day ago
Operating system: Linux
PHP: 7.4.33 (Show info) [2024-09-22 17:07:24]
MySQL: 5.5.5-10.6.19-MariaDB-log [2024-09-22 17:07:24]
Graphics Library: ImageMagick ImageMagick 7.1.1-38
Piwigo URL: https://album.deblijeekster.nl
Does anybody have any clue what is going that all the pictures get a 403 forbidden when accessed from piwigo, but with direct linking you can just access and display them?
Offline
Are you really sure that all folders are set to 755? It only takes one folder having the wrong setting and then the photos won't be displayed. I tested it. All folders and subfolders are set to 755 and the files are set to 644.
Best regards
Olaf
Offline
Yes. I checked all the folders, and all the directories have 755 and all files have 644.
Offline
Which FTP transfer type did you use? Binary, ASCII or automatic?
Offline
It was uploaded as binary in a *.zip and unpacked on the host.
It was a subdomain that I also selected to backup with the Wordpress plugin "Duplicator" that I used to migrate the Wordpress site, including all files. So when I "installed" the backup on the new host, all the Piwigo folders where included in the subdomain folder.
All that remained was to export and import the Piwigo database, to get Piwigo functional again.
Last edited by gameover-nl (2024-09-22 22:03:42)
Offline
Just in case: does the database have the same name on the old and new hosting?
Offline
This is a problem with your subdomaincconfiguration, as the pics are not shown on
album.deblijeekster.nl
but show well on
deblijeekster.nl/album
Offline
Katryne wrote:
Just in case: does the database have the same name on the old and new hosting?
No, the database is renamed, but I editted the file /local/config/database.inc.php accordingly with the new name, db-user and password.
gueba wrote:
This is a problem with your subdomaincconfiguration, as the pics are not shown on
album.deblijeekster.nl
but show well on
deblijeekster.nl/album
Great find! I will look into that.
Last edited by gameover-nl (2024-09-23 17:35:28)
Offline
Hello,
Because I always hate support request tickets without a solution on the internet, I shouldn't do the same. ;)
The error was indeed in the subdomain configuration on my VPS, which @gueba pointed out.
This took some time and explaining to my hoster, but it is solved now.
So the Piwigo configuration, database and file permissions were all copied over fine, the fault was in the subdomain.
Thanks everyone for replying!
Offline
Good to know. Great that everything is running now. Good luck.
Olaf
Offline