Issues after moving to new server

shrnky

Joined: 2011-12-03
Posts: 6
Posted: Mon, 2013-11-11 14:30

Moved my Gallery installation to a new server. The file and database move worked great, but now I seem to have a path, dns, and/or permissions issue that I can't shake out.
The Gallery is located at the link below and as you can see thumbnails and images don't show up.
http://www.theriot.mobi/

If you use the full path using the ip address as in the link below, everything shows up.
http://162.243.72.99/theriot.mobi/public_html/gallery3/

I've put a copy of my apache2 virtual host config for the site below.

<VirtlHost *:80>
ServerAdmin redacted :)
ServerName www.theriot.mobi
ServerAlias theriot.mobi
DocumentRoot /var/www/theriot.mobi/public_html/gallery3/
ErrorLog /var/www/theriot.mobi/logs/error.log
CustomLog /var/www/theriot.mobi/logs/access.log combined
</VirtualHost>

Figured out that Apache's rewrite module was not enabled. In Ubuntu ran the command "a2enmod rewrite" then restarted apache "service apache2 restart"

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-11-11 17:50
Quote:
and/or permissions issue

Looks like it to me:
http://www.theriot.mobi/var/albums/Pellerins/01.jpg
show that to your host and they should be able to sort it out.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
shrnky

Joined: 2011-12-03
Posts: 6
Posted: Mon, 2013-11-11 22:43

FYI, I am the admin. :) It's a Digital Ocean VPS.
Changed the permissions on that folder and contents to 777, but still get the same "403 Forbidden" error.
Any ideas?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2013-11-12 00:55
Quote:
Any ideas?

Not from me. Perhaps a server expert can chime in.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-11-12 02:46

your php files cannot be 777 or your server won't execute them. they need to be 755 or below.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
shrnky

Joined: 2011-12-03
Posts: 6
Posted: Tue, 2013-11-12 03:49

My php files weren't, just the folder with the pictures in them.

 
shrnky

Joined: 2011-12-03
Posts: 6
Posted: Wed, 2013-11-13 20:39

Looked at the log files and I'm getting the error when trying to access files:
"client denied by server configuration: /var/www/theriot.mobi/public_html/gallery3/var/thumbs/Pellerins/03.jpg"

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2013-12-06 23:17

I'm late to this and not sure if you're still working on it.
That error could be caused by a lot of things.
I'd say first look through the htaccess files that are being applied. Then look through server files and settings.

Could be a <filematch> or <directory> setting, or any of a handful of other things.

 
grease62period
grease62period's picture

Joined: 2013-12-26
Posts: 1
Posted: Thu, 2013-12-26 18:11

The problem could be mod_evasive. You might get too many false positives, especially with AJAX. Disabled it and see. Could also be an invalid V host config.