Author Topic: 500 Error when browsing mysite.com/roundcube  (Read 4834 times)

Offline randomness

  • Newbie
  • *
  • Posts: 3
500 Error when browsing mysite.com/roundcube
« on: November 05, 2015, 12:37:36 AM »
Hi all,

Learning about linux some, so I intalled postfix/dovecot/squirrelmail... all went well, decided to try roundcube since a man I know mentioned it. I followed https://www.howtoforge.com/tutorial/roundcube-installation-on-debian-8-jessie/ to get this far.

When I browse to mysite.com/roundcube, I get this message:
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I am running Apache 2.2.2, dovecot 2.1.7, Debian 7.9 (Wheezy), and Roundcube 1.1.3. Various sites I have read say that the error is most likely with a line in my .htaccess file (/opt/roundcube/.htaccess), which occurs if the line "Require all granted" is present, which is it not. I followed the original .htaccess which is listed in the tutorial, and also a different one with the same results. I get the 500 error even if I remove the .htaccess from /opt/roundcube, so I am not even sure if that's what the error is stemming from. There is no .htaccess in /var/www/.

I am also getting this error in /var/log/apache2/error.log :
Quote
[crit] [client 12.34.56.78] configuration error:  couldn't perform authentication. AuthType not set!: /roundcube

Could someone care to point me in the right direction? If the website is doing the same thing even without the .htaccess, (to me) I don't think it would be the .htaccess but that's what all of the other sites are suggesting. I am also pretty green at linux, and the AuthType error isn't much help to me from what I could gather from Google. I can supply output from other commands if necessary. Any further tips?

Thanks

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: 500 Error when browsing mysite.com/roundcube
« Reply #1 on: November 05, 2015, 05:15:21 AM »
Can you post your virtual host file?

Offline randomness

  • Newbie
  • *
  • Posts: 3
Re: 500 Error when browsing mysite.com/roundcube
« Reply #2 on: November 05, 2015, 09:35:29 AM »
Sure thing - here is /etc/apache2/sites-enabled/000-default... I have a feeling the issue may be in there, I never got to this file last night
Code: [Select]
<VirtualHost *:80>
        ServerAdmin admin@mysite.com

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Also, in /etc/apache2/sites-available, there is a roundcube.conf, but it is not in ../sites-enabled
« Last Edit: November 05, 2015, 09:52:55 AM by randomness »

Offline randomness

  • Newbie
  • *
  • Posts: 3
Re: 500 Error when browsing mysite.com/roundcube
« Reply #3 on: November 05, 2015, 09:57:38 AM »
Thanks to SKaero I knew to look in the 000-default file and not the .htaccess like everyone had been suggesting.

The error was actually in /etc/apache2/sites-available/roundcube.conf, which I did
Code: [Select]
cp roundcube.conf roundcube to.

After that I opened up the roundcube file and there was the
Quote
Require all granted
line everyone had been talking about, which I had been looking for in my /opt/roundcube/.htaccess directory (this is where the tutorial I followed suggested installing roundcube)

After commenting out the 'Require all granted' line, I ran
Code: [Select]
a2ensite roundcube and it began working.