Mantis Bug Tracker

Viewing Issue Simple Details Jump to Notes ] << ] >> ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
[naranai] 0000036 Error minor sometimes 2009-07-28 16:18 2009-09-13 04:11
Reporter Fox View Status public  
Assigned To randall
Priority normal Resolution no change required  
Status resolved   Product Version 0.10.6a
Summary 0000036: 500 Error After Uploading Files
Description So I thought maybe it's because I couldn't upload the upgrade.sql, but you said there was not DB change in this version. Anywho, I'm getting a "500 Internal Server Error" after uploading all the files. Tried running install.php, but getting the same 500 error. Checked the config and dbinfo file and they're correct. Then I tried restoring the old config + dbinfo file from the previous version, but still getting the same 500 error.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000051)
randall (administrator)
2009-07-28 16:53

Ok, so the problem is that your web server does not seem to find .htaccess files to be acceptable... Especially if there are IF statements involved. Without the IFs it just doesn't do anything rather than giving a 500 error.

So I am going to assume it's to do with your server rather than the software. I went through your .htaccess line by line and trying to make it work, but only turning stuff off make it load. And then the links don't work, obviously.
(0000052)
Fox (reporter)
2009-07-28 19:40
edited on: 2009-07-29 15:12

I removed a bunch of lines from the first section of the .htaccess file and the site is running now!

I have:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(img\.)?mysite\.com$ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

# This just redirects the files so they're a bit simpler to find.
etc...


So I guess resolved? I think it was these line's fault:
RewriteCond %{HTTP_REFERER} !^http(s)?://.*?\.?google.com [NC]
RewriteCond %{HTTP_REFERER} etc.


By the way, I'm not using img.mysite.com, so is the first line after "RewriteEngine On" correct or does it need to be adjusted?


- Issue History
Date Modified Username Field Change
2009-07-28 16:18 Fox New Issue
2009-07-28 16:18 Fox Status new => assigned
2009-07-28 16:18 Fox Assigned To => randall
2009-07-28 16:53 randall Note Added: 0000051
2009-07-28 16:53 randall Reproducibility always => sometimes
2009-07-28 16:53 randall Status assigned => confirmed
2009-07-28 19:40 Fox Note Added: 0000052
2009-07-29 15:12 Fox Note Edited: 0000052
2009-09-13 04:11 randall Status confirmed => resolved
2009-09-13 04:11 randall Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker