Topic: Error 404 after moving servers - help required

Hi there

I have just taken over the hosting of a website that uses svManager. However, after uploading the whole site to the new server, I get 404 errors on the svManager login page and any page including a gallery, it seems. Or it maybe any page including the swf file?

I have no previous experience with svManager, so I don't fully understand how it works.

After reading the Support page, I changed all the folder/file permissions to 755/664 respectively, as advised. I have also tried changing the svManager folder, data folder and data files to 777, with no success.

Website is:
http://www.steffenbinke.com

Any help is fully appreciated.

Cheers.

Re: Error 404 after moving servers - help required

Please forgive the silly question but before we go any further, are you sure svmanager is actually there and are you sure it's in the right place?

For instance, the Aqua babies page uses an iframe that links to a gallery in http://www.steffenbinke.com/svmanager/g4

Are you seeing this svmanager folder and the g4 folder inside it when you look at the server with ftp?

If everything looks ok with ftp but the gallery is still not showing then please come back to the forum and we'll try to dig a bit deeper.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Error 404 after moving servers - help required

No worries - there is no such thing as a silly question...

Yes, the svManager folder is located on the root of the web server, and the gallery folders (g1, g2, g3, g4, g5, g6, g7, g8, g11) are inside the svManager folder.

Screenshot: http://www.steffenbinke.com/Screen-shot-ftp-window.jpg

btw I also tried to activate the DEBUG mode [changed constants.php file to define('DEBGUG',true); and uploaded] but where should I see the error messages?

Last edited by howardpw (2011-02-09 19:54:32)

Re: Error 404 after moving servers - help required

Yep – there it is. Strange!

I think the best next step would be to try some troubleshooting in a simpler environment. I suggest you download the svManager server compatibility test and install it somewhere on your server. That might tell us if we have some basic incompatibility with the server or if it's some quirk of the particular svManager installation.

btw I also tried to activate the DEBUG mode...

The error messages would show up inside the svManager screens but I don't think you are getting as far as svManager. I don't think the svManager code is running at all.

Other thoughts:
- Is there anything in the server transaction log other than the 404 message?
- Are there any .htaccess files anywhere that could be preventing access?
- Are there any 301 redirects?

jack

Jack Hardie
SimpleViewer Support Team.

Re: Error 404 after moving servers - help required

Uploaded the svmtest folder and the server passed all the tests with no errors.

I was presuming it was an error 404 because of the page that was appearing. I presumed it was a custom 404 page that they created with the 'Snap' graphic. How do I check the Server Transaction log?

The Browser Activity log reads:
http://www.steffenbinke.com/svmanager/g4/ - internal server error

The error log in the cPanel refers to some permissions:
[Thu Feb 10 20:21:14 2011] [error] [client 203.122.139.58] SoftException in Application.cpp:256: File "/home/steffenb/public_html/svmanager/g4/index.php" is writeable by group, referer: http://www.steffenbinke.com/page/aqua_babies

The error log on the server, last line reads:
[09-Feb-2011 21:05:26] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/steffenb/public_html/includes/ezDB.php on line 115

Line 114-116 in ezDB.php reads:
            // Perform the query via std mysql_query function..
            $this->result = mysql_query($query,$this->dbh);
   
            if ( mysql_error() )

Only one .htaccess file, which only contains:

RewriteEngine on

RewriteRule .* - [env=REWRITE_ON:1]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?page=$1 [L]

No redirects set up.

Re: Error 404 after moving servers - help required

Uploaded the svmtest folder and the server passed all the tests with no errors.

Good, looks like the server itself is not the problem. So it's something to do with the site setup.

How do I check the Server Transaction log?

I think cPanel calls it the 'Raw Access Log' or you might find it by ftp in a directory off the site root (parent of public_html).

09-Feb-2011 21:05:26] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/steffenb/public_html/includes/ezDB.php on line 115

SvManager doesn't use mySQL and doesn't have a file called ezDB.php so it looks like you have more than one problem with this site.

Only one .htaccess file, which only contains:

I'm suspicious of this one. Is there some kind of content management system on the site? Make sure everything is backed-up, including the database if there is one. Then try disabling the .htaccess temporarily, like rename it to htaccess.bak or something and see what happens. Don't delete it, you'll probably need it again.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Error 404 after moving servers - help required

Here is a snapshot of the Raw Access Log:

118.208.150.189 - - [11/Feb/2011:01:10:25 +1100] "GET /page/aqua_babies HTTP/1.1" 200 6523 "http://www.steffenbinke.com/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:26 +1100] "GET /images/snap.gif HTTP/1.1" 304 - "http://www.steffenbinke.com/svmanager/g4/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:25 +1100] "GET /svmanager/g4/ HTTP/1.1" 500 6127 "http://www.steffenbinke.com/page/aqua_babies" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:28 +1100] "GET /page/aqua_kids HTTP/1.1" 200 6371 "http://www.steffenbinke.com/page/aqua_babies" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:28 +1100] "GET /svmanager/g2/ HTTP/1.1" 500 6127 "http://www.steffenbinke.com/page/aqua_kids" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:30 +1100] "GET /page/aqua_lovers__ HTTP/1.1" 200 6598 "http://www.steffenbinke.com/page/aqua_kids" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:31 +1100] "GET /svmanager/g3/ HTTP/1.1" 500 6127 "http://www.steffenbinke.com/page/aqua_lovers__" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:38 +1100] "GET /page/weddings_and_events HTTP/1.1" 200 6903 "http://www.steffenbinke.com/page/aqua_lovers__" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"
118.208.150.189 - - [11/Feb/2011:01:10:38 +1100] "GET /svmanager/g1/ HTTP/1.1" 500 6127 "http://www.steffenbinke.com/page/weddings_and_events" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4"

Looks like the galleries are returning a 500 error. But that's about as much as I can read into them! What does the 6127 number refer to? "HTTP/1.1" 500 6127 ..."

Yes there is a cms in a folder called 'office', and I think the .htaccess file is for this, as there is an identical .htaccess file inside the 'office' folder. The cms is working fine - I can log in and make changes with no problem. So it is accessing the database ok.

I temporarily removed the .htaccess file and then all the page links returned an Error 404 blank page, so it's definitely required.

The only problem appears to be with svManager, and that's why I'm a little stumped.

Re: Error 404 after moving servers - help required

The 6127 is just the number of bytes.

The 500 error is a bit of a catchall so it's hard to know what's causing it. However, the urls for the GET requests in the log seem ok to me so that would seem to rule out any problem with mod rewrite.

Some servers are set-up to throw a 500 error if they don't like the permissions on a php file or other script. Usually they do this if the permissions are too generous for their liking. Are the file and folder permissions on svManager any different from the ones on svmTest which is working ok? Make sure you look at the permissions on the svmanager folder itself as well as the contents.

You could also search through the support documents for your server and see if they recommend certain permissions for php. Or google your host name and 500 error to see if anyone else has your problem.

If all this fails then contact your server support/helpdesk. Tell them you are getting 500 errors when you try to access a php script and maybe quote the log.

I'm fairly certain that the problem is not inside svManager. It's something to do with the svManager files and the server is never getting as far as actually running the script.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Error 404 after moving servers - help required

I've tried several different permissions on the files and folders.

Anyway, I thought I would just try and delete the whole svManager folder and re-upload - and hey presto, it's now working.

By reuploading, it set all the permissions to the default 755/644 for folders/files. So I don't know if it was that or a file that had corrupted on the upload previously?

Relieved to get in working. Thanks for all your suggestions. I should have tried a delete and reload straight away!

cheers,
H

Re: Error 404 after moving servers - help required

Good-oh  smile

jack

Jack Hardie
SimpleViewer Support Team.