#1 2024-09-22 17:24:58

gameover-nl
Member
2024-09-22
5

Photo's/Thumbnails not displaying since move to another VPS

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:

https://tweakers.net/fotoalbum/image/AIHcanq3UVgdC5JQeYSFjkjw.jpg

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

 

#2 2024-09-22 18:11:26

Schneider-Fotografie
Member
Berlin
2023-04-16
71

Re: Photo's/Thumbnails not displaying since move to another VPS

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


-Schneider-Fotografie- Galerie
----------------------------------
  Piwigo 15.3.0 / PHP: 8.3.12

Offline

 

#3 2024-09-22 19:30:40

gameover-nl
Member
2024-09-22
5

Re: Photo's/Thumbnails not displaying since move to another VPS

Yes. I checked all the folders, and all the directories have 755 and all files have 644.

Offline

 

#4 2024-09-22 20:12:46

Schneider-Fotografie
Member
Berlin
2023-04-16
71

Re: Photo's/Thumbnails not displaying since move to another VPS

Which FTP transfer type did you use? Binary, ASCII or automatic?


-Schneider-Fotografie- Galerie
----------------------------------
  Piwigo 15.3.0 / PHP: 8.3.12

Offline

 

#5 2024-09-22 21:40:17

gameover-nl
Member
2024-09-22
5

Re: Photo's/Thumbnails not displaying since move to another VPS

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

 

#6 2024-09-23 08:07:20

Katryne
Member
2016-12-03
421

Re: Photo's/Thumbnails not displaying since move to another VPS

Just in case: does the database have the same name on the old and new hosting?


https://album.chauvigne.info/ v.15.3.0  PHP: 8.2.26
https://balades.comoni.org/  v.15.3.0 PHP: 8.2.26
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#7 2024-09-23 10:54:36

gueba
Member
2021-12-31
57

Re: Photo's/Thumbnails not displaying since move to another VPS

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

 

#8 2024-09-23 17:34:12

gameover-nl
Member
2024-09-22
5

Re: Photo's/Thumbnails not displaying since move to another VPS

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

 

#9 2024-10-03 17:54:17

gameover-nl
Member
2024-09-22
5

Re: Photo's/Thumbnails not displaying since move to another VPS

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

 

#10 2024-10-03 22:26:21

Schneider-Fotografie
Member
Berlin
2023-04-16
71

Re: Photo's/Thumbnails not displaying since move to another VPS

Good to know. Great that everything is running now. Good luck.

Olaf


-Schneider-Fotografie- Galerie
----------------------------------
  Piwigo 15.3.0 / PHP: 8.3.12

Offline

 

Board footer

Powered by FluxBB

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