Roundcube Community Forum

 

blank page on install

Started by entertheraptor, December 16, 2010, 07:03:05 AM

Previous topic - Next topic

entertheraptor

Hi all,

I am running a home server setup by following "The Perfect Server - Ubuntu 10.10 [ISPConfig 3]" guide on HowtoForge.com so that should give you a pretty good idea of exactly what I'm working with.

I (while following the guide) installed SquirrelMail which works just fine but after looking around I decided that I like the look of Roundcube and would like to give it a run.

I got right to the end of the instillation process when I was greeted with a blank white page and no real indication of what had gone wrong. I've checked everything I can think of (like the main.inc.php and db.inc.php files were created correctly and the database name, user, etc are correct) and can't figure it.

The only other clue I have is this...


[Thu Dec 16 16:46:33 2010] [error] [client 192.168.1.3] PHP Parse error:  syntax error, unexpected T_DEFAULT in /var/www/mail/config/main.inc.php on line 156

which A, I found in the apache error log and B, means nothing to me (being by no means an expert).

I think it's the latest stable version I downloaded, (I think) all I know for sure is it came in the form of roundcubemail-0.4.2.tar.gz

Any clue would be greatly appreciated, thanks.

alec

Show lines 150-160 of /var/www/mail/config/main.inc.php

entertheraptor

The following are lines 150-160 (according to Notepad++)

$rcmail_config['message_cache_lifetime'] = '10d';

// enforce connections over https
// with this option enabled, all non-secure connections will be redirected.
// set the port for the ssl connection as value of this option if it differs from the default 443
$rcmail_config['force_https'] = false;

// automatically create a new Roundcube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = true;

Thanks

entertheraptor

OK, fixed the issue thanks to a post by TheWierd on HowtoForge.com. The problem was that the main.inc.php and db.inc.php files as they were presented to me by roundcube during the instillation process were both missing the closing ?> tags. As soon as I inserted these tags into the files the instillation process continued and completed successfully.

The issue I have now is I want to be able to access Roundcube Webmail from (for example) mydomain.com/mailbox.

Roundcube is installed in /var/www/mail and the site was created using ISPConfig 3 control panel on a Ubuntu 10.10 server edition powered machine so the site is in /var/www/clients/client1/web1/web or /var/www/mydomain.com/web.

I have tried to achieve this through two methods, both achieve the same unsatisfactory result.

First it was suggested to me to create a file /etc/apache2/conf.d/roundcube.conf with the following content.

Alias /mailbox /var/www/mail

        php_admin_value open_basedir /var/www/mail
        AllowOverride All
        Order allow,deny
        Allow from all


The theory being that roundcube will be accessible from any domain on the server by appending /mailbox to the domain name. All I got was a "error 500 server error".

The second method I tried was to create a symlink in the sites web directory with the command "ln -s /path/to roundcube /mydomain.com/web/mailbox" this created the symlink just fine and when I use "ls -l" the symlink points to the roundcube instillation but when I try to go to mydomain.com/mailbox I get a server error again.

Can anyone help?