Help - Search - Members - Calendar
Full Version: 404 Error On .cgi Scripts
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
EtherSite
Sometime between 11 May 2007 and now something has changed to my movable type, apparently (I didn't change anything - in fact I didn't even login), and now all i get when I try to access mt.cgi, I get a 404 page not found error. The same goes for mt-check.cgi and the other .cgi files in the mt folder. Still, the files are there when I look at them in FTP, they're there AND I can edit them and the permissions are right (755)... The "output "pages are still working perfectly.

The error log shows no weird errors and my hosting provider claim they haven't changed anything themselves. Does anyone have an idea what might cause this? I don't like not logging in. smile.gif

Could this be PERL-related or should i just upload everything again (I tried replacing the mt.cgi on the server with the one on my computer - which should be the same - but when that didn't work I restored the "old" version).

As far as I'm aware I have the latest version (3.33)
Any help is very much appreciated.

www.turinbrakes.nl/cgi-bin/mt/mt.cgi
OtherNiceMan
Apart from doublechecking the logs I would look to see if .htaccess has been changed to block cgi etc.

Place a text file in the /cgi-bin/mt/ directory and try and access that www.turinbrakes.nl/cgi-bin/mt/text.txt
if that works change the extension from txt to cgi and try again. If you get 404 error after changing the extension then there is some filtering going on by your host.
EtherSite
QUOTE (OtherNiceMan @ May 29 2007, 10:09 AM) *
Apart from doublechecking the logs I would look to see if .htaccess has been changed to block cgi etc.

Place a text file in the /cgi-bin/mt/ directory and try and access that www.turinbrakes.nl/cgi-bin/mt/text.txt
if that works change the extension from txt to cgi and try again. If you get 404 error after changing the extension then there is some filtering going on by your host.


Thanks!

But what if it doesn't work as a .txt-file?

(http://www.turinbrakes.nl/cgi-bin/mt/test.txt)

sad.gif

(update: I've also tried placing it in the cgi-bin folder, same result: http://www.turinbrakes.nl/cgi-bin/test.txt, so I think it's not the /mt folder then :s, but rather the /cgi-bin folder?)
OtherNiceMan
QUOTE (EtherSite @ May 29 2007, 09:23 AM) *
QUOTE (OtherNiceMan @ May 29 2007, 10:09 AM) *

Apart from doublechecking the logs I would look to see if .htaccess has been changed to block cgi etc.

Place a text file in the /cgi-bin/mt/ directory and try and access that www.turinbrakes.nl/cgi-bin/mt/text.txt
if that works change the extension from txt to cgi and try again. If you get 404 error after changing the extension then there is some filtering going on by your host.


Thanks!

But what if it doesn't work as a .txt-file?

(http://www.turinbrakes.nl/cgi-bin/mt/test.txt)

sad.gif

(update: I've also tried placing it in the cgi-bin folder, same result: http://www.turinbrakes.nl/cgi-bin/test.txt, so I think it's not the /mt folder then :s, but rather the /cgi-bin folder?)


Then there is a problem with your host and/or the permissions on the cgi-bin directory itself.

The text file works ok at the root of your site?
EtherSite
I've emailed to my hosting provider again to ask whether they could check again. Because it appears to be any file in the cgi-bin dir that doesn't work... The permissions are still 755, like they should be (nor have I changed that).
The text file works in any other place apart from the cgi-bin folder.
EtherSite
Right, I got an email back from the hosting thing that they couldn't help me because it wasn't a regular setting, or sth like that... Anyway, desperate as I was I just changed the dir to something else (cgi-bin to auto) and when I changed the mt-config.cgi it suddenly worked again. Hurrah to that.

Thanks for your time. smile.gif
OtherNiceMan
Glad to see it is working now, it may have been a problem with a .htaccess file setting.
EtherSite
QUOTE (OtherNiceMan @ May 29 2007, 09:32 PM) *
Glad to see it is working now, it may have been a problem with a .htaccess file setting.


I checked the .htaccess file, but couldn't understand much of it, though I don't think it said it was blocking anything... :S

Oh well, I'll try to figure out what's wrong in the weekend. For now it's working, which makes me happy. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.