Search…

X3 Photo Gallery Support Forums

Search…
 
pleibling
Experienced
Topic Author
Posts: 45
Joined: 02 Jan 2017, 09:59

Problems with Imagevue 3.24 after Migration on new Server

01 Jan 2018, 18:17

Hi,

i change my Webserver and move to an own Server with Debian and Apache 2.4. On the old Server everything works well, but on the new Server I have the problem, that the links doesn't work.

I want to open https://galerie.leibling.de/public/ - but I get this Error all the Time:

Code
2
file_put_contents(../../../_cache/images/rendered/xxxxxxxxxxx):
failed to open stream: No such file or directory
File: /var/www/galerie/app/parser/slir/slir.class.php
Line 1200
The folder ./_cache/images is empty.

If I fo on the Picture, I can see the Image - but not in the preview.

I try:
Tools > Preload > Create Site Objects
Tools > Cache > Clear Page Cache
Tools > Preview > Update Preview Images

But all the time the same Error.

Can you tell me what goes wrong an how I can fix it?

Thanks a lot for your help.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14010
Joined: 30 Sep 2006, 03:37

Re: Problems with Imagevue 3.24 after Migration on new Server

01 Jan 2018, 22:34

Seems to be working now. Did you fix it?

Looks to me like you either you didn't move all directories, or some directories did not have write permissions. Always check your diagnostics page after installing X3 or moving to a new location/server. Having said that, your diagnostics page is insane slow (takes several minutes to load the POST request), which makes me somewhat suspicious, although I don't think it is related. The diagnostics page is sometimes required to fix issues, like creating cache folders that don't exist, which may have been the issue in your case.

On a separate note, I wonder why you have a directory /public/ in the URL and the same URL can be accessed without /public/? Your apache config should point the subdomain to go to the /public/ directory and not have multiple url's.
 
pleibling
Experienced
Topic Author
Posts: 45
Joined: 02 Jan 2017, 09:59

Re: Problems with Imagevue 3.24 after Migration on new Server

02 Jan 2018, 02:03

Strange, yesterday it doesn't work.

I try to use the Diagnostic, but it only loading all the time, but doesn't show an result.

I installed it like this:

Code
Create a folder: /var/www/galerie
This Folder change owner: chown -R /var/www/galerie
Change the permission with: chmod 755 /var/www/galerie
Add this configuration in my 000-default-site.conf and ssl.conf
Disable and Enable this sites a2dissite 000-default-site.conf / a2dissite ss.conf - also a2ensite ...
After adding an SSL Certificate I go to https://galerie.leibling.de and run the installer.
After this steps it was all the Time "loading ..." (Diagnostic)
But after Disabling the Diagnostic the Page runs, so I change the config and content Folder. And everything working - only the Cache Folder makes the problems.

I host on the Server multiple Sites, the Masterpage is my website https://www.leibling.de and the second Site is this https://galerie.leibling.de

Is this configuration ok, or need I other Steps for the configuration?

Thanks a lot for your help :).
 
pleibling
Experienced
Topic Author
Posts: 45
Joined: 02 Jan 2017, 09:59

Re: Problems with Imagevue 3.24 after Migration on new Server

02 Jan 2018, 02:10

Strange, now I get an other problem - if I go to https://galerie.leibling.de/public I get an Error "Not Found" 404 on the Page, yesterday it works well - it looks like an error with permalink / URL rewrite Mode :(.

But I changed nothings since yesterday.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14010
Joined: 30 Sep 2006, 03:37

Re: Problems with Imagevue 3.24 after Migration on new Server

02 Jan 2018, 04:12

pleibling wrote:Strange, now I get an other problem - if I go to https://galerie.leibling.de/public I get an Error "Not Found" 404 on the Page, yesterday it works well - it looks like an error with permalink / URL rewrite Mode :(.
Works fine here.
Image
Do you have multiple URL's that go to the same website?

I'm guessing the problem with images before was because one of the cache directories was missing. Diagnostics page creates cache directories for you (if missing), and I accessed your diagnostics yesterday and although slow, it did eventually load. If everything is working, I wouldn't worry much about this anyway ... Diagnostics does some CURL request to check for REWRITE capabilities, something that seems to take ages on your server for some reason.
 
pleibling
Experienced
Topic Author
Posts: 45
Joined: 02 Jan 2017, 09:59

Re: Problems with Imagevue 3.24 after Migration on new Server

02 Jan 2018, 06:44

Ok, now works here too.

Now the Diagnostic is a little bit faster then yesterday.

I have only this Page under this Url, the other folders are for other Websites.

This IMAGEVUEX Site is a little big greater, round about 25 GB.

Thanks a lot for your help.
 
pleibling
Experienced
Topic Author
Posts: 45
Joined: 02 Jan 2017, 09:59

Re: Problems with Imagevue 3.24 after Migration on new Server

05 Jan 2018, 14:59

OK, i found the Error:

The Error comes on http Access, not on https Access - so it could only be on the Apache Config - in the 000-default.conf in /etc/apach2/sites-aviable was the following entry in the specific virtualhost Part:

Code
                <Directory /var/www/galerie>
                        Options Indexes FollowSymLinks MultiViews
                        AllowOverride All
                        Order allow,deny
                        allow from all
                </Directory>
But not in the /etc/apache2/sits-enabled - so it needs only some commands to link the configuration new an reload the config (if you are not root, you need sudo before the commands):

Code
a2dissite 000-default.conf
a2ensite 000-default.conf
service apache2 reload
Maybe it can help some other user :).