Roundcube Community Forum

 

HTTP 405 - Resource not allowed

Started by nomicism, July 13, 2006, 06:12:21 AM

Previous topic - Next topic

nomicism

I am trying to install and run the webmail but after I entered the username and password, I received the error:

HTTP 405 - Resource not allowed

Could any one help?

Simon

simplistsims

try removing .htaccess from the directory ;)
Duca Duca Duca Duca - Dr. Evil *Say it fast*

nomicism

I tried to remove the .htaccess file from the directory. But it doesn't help. In fact, I am using IIS on a Windows 2K server. So I think the .htaccess files won't create any problems, right?

simplistsims

Do You have permissions on windows servers? ???
Duca Duca Duca Duca - Dr. Evil *Say it fast*

nomicism

Yes. I have the required permissions set.


bpat1434

Look in the IIS logs to see what's going on.... 405 is a vague HTML error.... and it's actually the server's response.... so IIS hit a wall somewhere..
 
 

ssenniug

Helo.

I have solved this on my installation with changing the source of roundcube. I have replaced all lines with "Action=./" to Action="index.php" This is nessesery in IIS 5.1 and older.

IIS 5.1 and older isent acepting the post from form with the ending / and the only resulution on this i found whas to change the code. Its a easy "Search and Replace" change, and its work on my server.

dogbody

ssenniug, doesn't that version of IIS let you set the default pages to look at? :-\

You're supposed to add index.php as a directory index \ default page on your web server when you install php. Sounds like you skipped this step.

ssenniug

Hello.

It should do that, but this is and "By design" bug in iis 5.1 and earlyer, but it is fixed in iis 6.

And i have set the index.php as the default file, but it still came with that errer message. And from this Kbase article from microsoft it telling abut it, but the resolution do not work like i think it shold. The kb can be found at this url: http://support.microsoft.com/kb/216493/en-us

ssenniug

After i changed the code, i can get the login to work, it create users and evrything, but i still se the login form and do not get anny error message in the browser or in the log files!

ThorstenS

You could install an apache on port 88 and proxy roundcube through your IIS - or just deinstall IIS and jus use apache (or lighttpd under linux) :D

bpat1434

Well, even though this is an IIS bug, it still raises a good point. To promote full inter-operability among all the different servers out there, it'd be best to remove the relative paths, and use proper full paths.

Glad you got this fixed though!

Switching to Issue & Bug, and moving to resolved.
 
 

ssenniug

Quote from: ssenniug After i changed the code, i can get the login to work, it create users and evrything, but i still se the login form and do not get anny error message in the browser or in the log files!

Now i actualy get it fiksed, i hade to edit one more line, and i found the ansver in the http://trac.roundcube.net/trac.cgi/ticket/1336523

Its only to edit all lines (Serch and replace) that have the following text in it action="./ with action="./index.php
and altso edit index.php change the line with this text
$COMM_PATH = sprintf('./?_auth=%s&_task=%s', $sess_auth, $_task);to this
$COMM_PATH = sprintf('./index.php?_auth=%s&_task=%s', $sess_auth, $_task);

henlon

I have found "$COMM_PATH = sprintf('./?_auth=%s&_task=%s', $sess_auth, $_task);" in index.php

but I can't find "action="./"

Which files do I have to edit?

bpat1434

If you have a better than Notepad text-editor, you should be able to do a "Search in files..." which will allow you to find all instances of 'action="./"' and even replace them in all open files. If you don't have an editor, try notepad++ or notetab or EditPlus.