Author Topic: "404 not found" error when logging in  (Read 8945 times)

Offline cpschnuffel

  • Newbie
  • *
  • Posts: 4
"404 not found" error when logging in
« on: August 28, 2009, 04:19:10 AM »
Hi there,
I use a small server with Windows 2000 Professional SP4, Apache 2.2.13, PHP 5.2.10, RoundCubeMail 0.2.2 and SQLite 2.8.17.

I want to set up a webmailer for my IMAP server running on the same PC and decided to use Roundcube 0:), being disappointed by the GUI of Squirrelmail I directly installed and tried out before (by the way: Squirrelmail ran without any functional problem!)

My directory structure:
Web content: C:\Programme\Apache Software Foundation\Apache2.2\htdocs
RC root: ...\htdocs\webmail
sqlite.db: ...\htdocs\webmail

The most important content from the db.inc.php:
$rcmail_config['db_dsnw'] = 'sqlite://./sqlite.db?mode=0646';

After some trouble during installation of Roundcube using PHP 5.3.0 (concerning SQLite) I went back to PHP 5.2.10, and nearly everything works fine during installation. The only thing I mentioned is that the installer does not expect the database in the RC root (see above), but in \installer, and when I tell him to initialize the DB structure (because he tells me that the DB structure is not initialized), he creates the sqlite.db in this installer directory, BUT after installation he tries to access to the database in the RC root :confused::confused::confused:

But my main problem is the following: When I try to login with a valid IMAP user name and password (calling \index.php), I get the following error:


404 Not Found

Not Found
The requested URL /webmail/ was not found on this server.


If I call this directory directly, I see the data structure in my browser, so I think it is no restriction by Apache, or am I wrong?

It seems to me that he don't check my login anyway, because using an invalid name/password produces the same error.

What could be the reason for that behaviour ?

Best regards from Berlin/Germany

cpschnuffel
« Last Edit: August 28, 2009, 04:21:37 AM by cpschnuffel »

Offline cpschnuffel

  • Newbie
  • *
  • Posts: 4
"404 not found" error when logging in
« Reply #1 on: August 28, 2009, 01:13:30 PM »
Hi again,
I forgot: This is what the error.log of Apache says when error 404 happens:

[Fri Aug 28 19:06:26 2009] [error] [client 127.0.0.1] Attempt to serve directory: C:/Programme/Apache Software Foundation/Apache2.2/htdocs/webmail/, referer: http://localhost/webmail/index.php


Best regards,
cpschnuffel

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
"404 not found" error when logging in
« Reply #2 on: August 29, 2009, 06:52:25 AM »
check if index.php is specified in the DirectoryIndex option in your apache config
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cpschnuffel

  • Newbie
  • *
  • Posts: 4
Got it!
« Reply #3 on: August 29, 2009, 07:31:04 AM »
Hi JohnDoh,
that's it!! :D:D:D Thank you so much!

One final question, because I'm no expert in configuring Apache: Is it possible to define index.php for one directory and index.html for another using the DirectoryIndex option?

Best regards, and have a nice weekend!

cpschnuffel

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
"404 not found" error when logging in
« Reply #4 on: August 29, 2009, 08:37:11 AM »
Hi,

you can set as many files are you like for that option eg.

Code: [Select]

DirectoryIndex index.htm index.html index.php


here is more info mod_dir - Apache HTTP Server
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cpschnuffel

  • Newbie
  • *
  • Posts: 4
"404 not found" error when logging in
« Reply #5 on: August 29, 2009, 09:11:15 AM »
Hi JohnDoh,
that's great! Thanks again for your quick reply.

cpschnuffel