Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: vikasiz on September 03, 2007, 02:01:05 PM

Title: internal server error
Post by: vikasiz on September 03, 2007, 02:01:05 PM
hello

i am getting a internal server error when i try to run the script on my server
any advises ? :-\

thanks
vik
Title: Re: internal server error
Post by: SKaero on September 03, 2007, 04:17:45 PM
Try deleting the .htaccess in the main folder and in the config folder.
Title: Re: internal server error
Post by: vikasiz on September 03, 2007, 11:24:23 PM
will it have any effect on the script ?
Title: Re: internal server error
Post by: SKaero on September 04, 2007, 05:03:57 AM
No if will not have any effect on roundcube, the .htaccess doesn't work right on some severs and deleting it should solve the problem.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 07:36:47 AM
Removing them gives a

Parse error: syntax error, unexpected T_SL in /home/httpd/html/roundcube/program/include/main.inc on line 1587

Looks like it's using some of the stuff in the .htaccess files, i dunno, any ideas?
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 08:38:38 AM
PHP doesn't read the .htaccess files, Apache does. The error you're getting is a syntax error meaning that PHP found something wrong.

What SVN version are you using?
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 09:37:41 AM
774 I removed .htaccess in root folder and config/
There were other .htaccess files in root which i deleted too, just to test, still same error.
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 09:56:05 AM
I'll say it again:
Quote from: bpat1434
PHP doesn't read the .htaccess files, Apache does. The error you're getting is a syntax error meaning that PHP found something wrong.

What SVN version are you using?
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 10:16:38 AM
There is nothing to say again:) im using svn 774,
i understand that apache reads the htaccess files.

Sorry i didn't make it clear which svn I was using...
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 12:58:41 PM
Browsing the source shows nothing out of the ordinary. Try updating program/include/main.inc from the SVN again and see if that fixes it. Could have just been a fluke in the checkout process.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 01:46:51 PM
Still no joy. I must add though, that about 3 months ago I added a solution I found in these forums to only login with your username, but I can't find the post.
Is this solution something that has been added to roundcube? I could try fetching a clean copy and install it on another db just to test, but I rather not mess too much with it, since I have several clients using it already, hehe...
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 01:51:42 PM
I'm pretty sure that's been available for a while. I know that it automatically adds the current domain to the name if an email address isn't entered.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 01:54:04 PM
Cool! Yeah it's been a while since I added that mod.
I'll backup my database and install a clean copy. Let you know how it goes:)
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 02:15:11 PM
Are there any configuration to do this, or is it done by default?
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 02:24:57 PM
I'm pretty sure it's done by default. From the way it looks in the code (looking at the main.inc) I see this:
Code: [Select]
572 /* Modify username with domain if required
573   Inspired by Marco <P0L0_notspam_binware.org>
574 */
575 // Check if we need to add domain
576 if (!empty($CONFIG['username_domain']) && !strstr($user, '@'))
577  {
578  if (is_array($CONFIG['username_domain']) && isset($CONFIG['username_domain'][$host]))
579   $user .= '@'.$CONFIG['username_domain'][$host];
580  else if (is_string($CONFIG['username_domain']))
581   $user .= '@'.$CONFIG['username_domain'];
582  }

Which tells me as long as the $CONFIG['username_domain'] is filled in, you should automatically have the @domain.com appended to the username.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 02:29:58 PM
Oh, what about mulithosting? Im hosting multiple domains, it's all virtual, so the mod i had looks like this in my config

$tempDomain = array_reverse(explode(".",$_SERVER['HTTP_HOST']));

I think it was this mod: http://roundcubeforum.net/forum/index.php?topic=212.0
It looks like you guys have dicussed this quite alot, but I don't see your solution from that thread, sorry.


Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 02:44:36 PM
Multiple domains for login are supported, but the username only login for multiple domains isn't. You'll have to reapply your patch.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 02:46:09 PM
Ok.

You think the mod is the reason i cant update?
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 02:48:33 PM
Update? There's no defined path to update between SVN versions, so no, the patch isn't a reason you can't update.
Title: Re: internal server error
Post by: Jonn3 on September 04, 2007, 02:51:47 PM
Oh, im sorry, I did it again, think I must be typing before i think.

I meant, might this modification be the reason I got the parse error in main.inc after i did svn update?

Parse error: syntax error, unexpected T_SL in /home/httpd/html/roundcube/program/include/main.inc on line 1587

Im currently on svn 652 with that mod.
Title: Re: internal server error
Post by: bpat1434 on September 04, 2007, 02:55:23 PM
If you updated from SVN, the SVN should* throw something to you. You should get an error or a message noting that there's a difference and ask you to manually merge them.

Now, if you're using a visual SVN program (tortoiseSVN) then you should be able to diff your main.inc file with that of the HEAD on SVN. You should then be able to update all other files except your main.inc and should manually merge the main.inc 652 with the HEAD main.inc.
Title: Re: internal server error
Post by: Jonn3 on September 05, 2007, 04:25:07 AM
Ok, I will try that. Thanks:)