Roundcube Community Forum

 

Error HTTP 405 after authorization screen

Started by wan, June 07, 2010, 03:06:42 AM

Previous topic - Next topic

wan

Good day to everyone!

Please, help me!
I just installed RoundCube on Win7 + IIS 7 + MySQL 5.35 + hMailServer

Now I'm trying to log in on http://localhost/roundcubemail/index.php browser redirects me to http://localhost/roundcubemail/ and tells me about the error: HTTP 405.0 - Method Not Allowed

I found 1 post about this problem for RoundCube v0.1 on Win Platform, but solution is not suitable:
#1336523 (Better Microsoft IIS support) ? Roundcube Webmail

QuoteSolution:
Change all links from "./" to "index.php" - or directly to the full path of
the current shown page represented by $_SERVER["PHP_SELF"]. I.E.:

- ./index.php:

old:

$COMM_PATH = sprintf('index.php?_auth=%s&_task=%s', $sess_auth, $_task);

new:

$COMM_PATH = sprintf('./?_auth=%s&_task=%s', $sess_auth, $_task);

- ./skins/default/templates/login.htm(l):

old:

"./"

new:

"index.php
- All other references to "./" as links must be replaced with "index.php" as
well.

But this solution is not suitable for 0.3. I just can't find those strings in files neither $COMM_PATH=..... in index.php nor any other strings containing './' in other files.

dziobak


wan

Quote from: dziobak;27892what version of php are you using?
I'm using PHP 5.3.0

wan

#3
I think i've found solution to fix error 405.
That's it:
GoTo IIS (to access it via Run print "inetmgr")
Find Default Documents. Here we can determine for IIS all possible starting pages.
In example we are requesting http://localhost/roundcube/
so IIS will try to find suitable startPage document such as index.html in folder to suite something like this: http://localhost/roundcube/index.html
So we need to add index.php to Default Documents in IIS.
And when user requests http://localhost/roundcube IIS will automatically redirect him to firstFound startPage like http://localhost/roundcube/index.php

BUT now I'm getting error 500. Can anybody help me pls??? =)) Developers where are u???? HELP ME PLS!!!!!
.... =) Well ok, now I've found how to fix error 500. In my case the reason was autoban on hmailserver. I made too many requests and it just banned my IP 127.0.0.1 ))
AND now I have a new error!! =))
When I login I get a message that I just logged out after login. What should I do??