Author Topic: Error HTTP 405 after authorization screen  (Read 4347 times)

Offline wan

  • Newbie
  • *
  • Posts: 3
Error HTTP 405 after authorization screen
« on: June 07, 2010, 03:06:42 AM »
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

Quote
Solution:
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.
« Last Edit: June 13, 2010, 10:40:00 AM by wan »

Offline dziobak

  • Full Member
  • ***
  • Posts: 184
Error HTTP 405 after authorization screen
« Reply #1 on: June 07, 2010, 04:00:29 AM »
what version of php are you using?

Offline wan

  • Newbie
  • *
  • Posts: 3
Error HTTP 405 after authorization screen
« Reply #2 on: June 07, 2010, 09:49:53 AM »
Quote from: dziobak;27892
what version of php are you using?

I'm using PHP 5.3.0

Offline wan

  • Newbie
  • *
  • Posts: 3
Error HTTP 405 after authorization screen
« Reply #3 on: June 11, 2010, 09:20:22 AM »
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??
« Last Edit: June 13, 2010, 10:38:36 AM by wan »