Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: baby_benz on December 01, 2023, 12:04:42 AM

Title: Can't use Roundcube and PostfixAdmin on the same server?
Post by: baby_benz on December 01, 2023, 12:04:42 AM
Hello everyone,

I am totally newbie to Roundcube. I've just recently setup my first Email server with the detail program below, all at the latest version

1/ Unbuntu server 22.04 LTS @ 192.168.10.11
2/ LAMP stack
3/ Postfix
4/ Dovecot
5/ PostfixAdmin
6/ SpamAssassin
7/ Roundcube

When I complete step 5, postfixadmin is located in /var/www/html/postfixadmin
Postfixadmin.conf is located in /etc/apache2/sites-available/ with the content below
==========================================
   DocumentRoot /var/www/html/postfixadmin/public
   ServerName testdomain.com
   ServerAlias postfixadmin.testdomain.com

   <Directory /var/www/html/postfixadmin/>
      Options FollowSymlinks
      AllowOverride All
      Require all granted
   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/error.log
   CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
===========================================
Then I run the command below to enable the site
$ a2ensite /etc/apache2/sites-available/postfixadmin.conf
$ systemctl restart apache2

Then from a web browser within the same network, I can access the postfixadmin web-based interface at
http://192.168.10.11/login.php

After I complete step 7, installing RoundCube, I have the roundcube located at the same folder as postfixadmin e.g. /var/www/html/roundcube/

The content of roundcube.conf file is
=========================================
<VirtualHost *:80>
   DocumentRoot /var/www/html/roundcube
     
   ServerName testdomain.com
        ServerAlias webmail.testdomain.com

   <Directory /var/www/html/roundcube/>       
      Options -Indexes       
      AllowOverride All       
      Order allow,deny       
      Allow from all       
   </Directory>
       
   ErrorLog ${APACHE_LOG_DIR}/roundcube_error.log       
   CustomLog ${APACHE_LOG_DIR}/roundcube_access.log combined       
</VirtualHost>
=============================================

I also enable the site running
$ a2ensite /etc/apache2/sites-available/roundcube.conf

BUT, I cannot access the Roundcube web-based interface for installer, as indicated in the user guide, at
http://192.168.10.11/installer

Error 403 - the URL is not found on this server

Am I missing any step in this process? I know both postfixadmin and roundcube web-based interface are using port 80.

My question is, how do I access both services?

Thank you very much for you patience

Cheers


Title: Re: Can't use Roundcube and PostfixAdmin on the same server?
Post by: JohnDoh on December 01, 2023, 02:40:04 AM
Virtual hosts rely on the hostname to identify which vhost you want to access. You cannot use the IP address. Also you configured both your vhosts to listen for the name host name.

This is really outside the scope of this community, you should ask in the Apache community for help configuring Apache.