hello
i am getting a internal server error when i try to run the script on my server
any advises ? :-\
thanks
vik
Try deleting the .htaccess in the main folder and in the config folder.
will it have any effect on the script ?
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.
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?
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?
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.
I'll say it again:
Quote from: bpat1434PHP 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?
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...
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.
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...
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.
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:)
Are there any configuration to do this, or is it done by default?
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:
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.
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.
Multiple domains for login are supported, but the username only login for multiple domains isn't. You'll have to reapply your patch.
Ok.
You think the mod is the reason i cant update?
Update? There's no defined path to update between SVN versions, so no, the patch isn't a reason you can't update.
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.
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.
Ok, I will try that. Thanks:)