New installation, Apache instead of Zammad site

  • Used Zammad version:
  • Used Zammad installation type: (package)
  • Operating system: Ubuntu 24.04
  • Browser + version: Google, Mozilla

Hello,

I installed Zammad for the first time on an Unbuntu 24.04 according to the documentation at Configure the Webserver — Zammad System Documentation documentation. Everything worked fine but the first page of Zammad doesn’t appear. Only the standard Apache page can be seen.

Can someone tell me what I’m doing wrong?
I have adapted everything possible to the zammad.conf file (according to the documentation)

Greetings

Not without knowing what you’re actually doing.

Should the answer help me in some way?
Everyone installs it for the first time at some point.

No. How could it.

As this is what you’ve written which helps people helping you as little as my answer:

Everything worked fine but the first page of Zammad doesn’t appear. Only the standard Apache page can be seen.

Can someone tell me what I’m doing wrong?
I have adapted everything possible to the zammad.conf file (according to the documentation)

My answer would be the same if you would have said "installed it for the 20th time. It’s not about your first time, it’s about the information you provide which forces people to poke in your nose.

So more information, but I don’t want to write things that might not help anyone here.
What would be relevant for you? What information would be important to help me with the problem?

As already written, I installed according to the Zammad instructions.

Here is the contents of the zammad.conf file.

this is an example apache 2.4 config for zammad

Please visit https://docs.zammad.org for further input on how to configure

your apache to work with Zammad

security - prevent information disclosure about server version

ServerTokens Prod

<VirtualHost *:80>
ServerName test-domain.com
Redirect permanent / https://test-domain.com/

<VirtualHost *:443>
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH

SSLCertificateFile /etc/letsencrypt/live/test-domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/test-domain.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/test-domain.com/cert.pem
SSLOpenSSLConfCmd DHParameters /etc/ssl/dhparam.pem

# replace 'localhost' with your fqdn if you want to use zammad from remote
ServerName test-domain.com

## don't loose time with IP address lookups
HostnameLookups Off

## needed for named virtual hosts
UseCanonicalName Off

## configures the footer on server-generated documents
ServerSignature Off

ProxyRequests Off
ProxyPreserveHost On

<Proxy 127.0.0.1:3000>
  Require local
</Proxy>

ProxyPass /assets !
ProxyPass /favicon.ico !
ProxyPass /apple-touch-icon.png !
ProxyPass /robots.txt !
# legacy web socket server
ProxyPass /ws ws://127.0.0.1:6042/
# action cable
ProxyPass /cable ws://127.0.0.1:3000/cable
ProxyPass / http://127.0.0.1:3000/

# change this line in an SSO setup
RequestHeader unset X-Forwarded-User

# Use settings below if proxying does not work and you receive HTTP-Errror 404
# if you use the settings below, make sure to comment out the above two options
# This may not apply to all systems, applies to openSuse
#ProxyPass /ws ws://127.0.0.1:6042/ "retry=1 acque=3000 timeout=600 keepalive=On"
#ProxyPass /cable ws://127.0.0.1:3000/cable "retry=1 acque=3000 timeout=600 keepalive=On"
#ProxyPass / http://127.0.0.1:3000/ "retry=1 acque=3000 timeout=600 keepalive=On"

DocumentRoot "/opt/zammad/public"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/opt/zammad/public">
    Options FollowSymLinks
          Require all granted
</Directory>

Hello Miro,

Zammad.conf is a good start :slight_smile: ! at first look conf file look fine for me.

  • Have you done “a2ensite zammad” and then restart apache ?

  • Do you have check “ls -l /etc/apache2/sites-enabled/” ? ( You should see the link zammad.conf → /etc/apache2/sites-available/zammad.conf)

  • Maybe try to disable the default configuration "sudo a2dissite 000-default.conf "and “sudo a2dissite default.conf”

Dont miss to restart apache after each

Thanks in advance for the answers.

Yes, I have that, but there is no default.conf file

root@ubuntu:/etc/apache2/sites-available# ls
000-default.conf default-ssl.conf test-domain.com-le-ssl.conf test-domain.com.conf zammad.conf

root@ubuntu:/etc/apache2/sites-available# ls -l /etc/apache2/sites-enabled/
total 0
lrwxrwxrwx 1 root root 52 Oct 20 17:25 test-domain.com-le-ssl.conf → /etc/apache2/sites-available/test-domain.com-le-ssl.conf
lrwxrwxrwx 1 root root 35 Oct 20 17:20 test-domain.com.conf → …/sites-available/test-domain.com.conf
lrwxrwxrwx 1 root root 40 Oct 19 18:05 zammad.conf → /etc/apache2/sites-available/zammad.conf
root@ubuntu:/etc/apache2/sites-available# sudo a2dissite 000-default.conf
Site 000-default already disabled
root@ubuntu:/etc/apache2/sites-available# sudo a2dissite default-ssl.conf
Site default-ssl already disabled
root@ubuntu:/etc/apache2/sites-available#

root@ubuntu:/etc/apache2/sites-available# systemctl restart apache2
root@ubuntu:/etc/apache2/sites-available# systemctl restart zammad
root@ubuntu:/etc/apache2/sites-available# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-10-21 13:19:35 UTC; 10s ago
Docs: Apache HTTP Server Version 2.4 Documentation - Apache HTTP Server Version 2.4
Process: 12482 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Tasks: 84 (limit: 14256)
Memory: 25.0M (peak: 31.7M)
CPU: 257ms
CGroup: /system.slice/apache2.service
├─12519 /usr/sbin/apache2 -k start
├─12522 /usr/sbin/apache2 -k start
├─12524 “Passenger watchdog”
├─12528 “Passenger core”
├─12554 /usr/sbin/apache2 -k start
└─12555 /usr/sbin/apache2 -k start

Oct 21 13:19:35 ubuntu systemd[1]: Starting apache2.service - The Apache HTTP Server…
Oct 21 13:19:35 ubuntu systemd[1]: Started apache2.service - The Apache HTTP Server.
root@ubuntu:/etc/apache2/sites-available# systemctl status zammad
● zammad.service
Loaded: loaded (/etc/systemd/system/zammad.service; enabled; preset: enabled)
Active: active (running) since Mon 2024-10-21 13:19:42 UTC; 12s ago
Main PID: 12625 (sleep)
Tasks: 1 (limit: 14256)
Memory: 196.0K (peak: 332.0K)
CPU: 1ms
CGroup: /system.slice/zammad.service
└─12625 /bin/sleep infinity

Oct 21 13:19:42 ubuntu systemd[1]: Started zammad.service.
root@ubuntu:/etc/apache2/sites-available#

root@ubuntu:/etc/apache2/sites-available# ufw status
Status: active

To Action From


80 ALLOW Anywhere
443 ALLOW Anywhere
22/tcp LIMIT Anywhere
80/tcp ALLOW Anywhere # Allow Apache HTTP
443/tcp ALLOW Anywhere # Allow Apache HTTPS
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
22/tcp (v6) LIMIT Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6) # Allow Apache HTTP
443/tcp (v6) ALLOW Anywhere (v6) # Allow Apache HTTPS

What is theses 2 configurations ?

Thanks for the help.

I found it.

I also deactivated the other 2 .conf files and they already worked.

root@ubuntu:/etc/apache2/sites-enabled# a2dissite test-domain.com-le-ssl.conf
Site test-domain.com-le-ssl disabled.

root@ubuntu:/etc/apache2/sites-enabled# a2dissite test-domain.com.conf
Site test-domain.com disabled.

1 Like

they were created by lentsencrypt python3-certbot-apache

Haha I suspected that the problem came from theses 2 conf files :).

If you check theses 2 files, it will certainly redirect to the default configuration apache ( something like /var/www/html )

exactly :frowning_face: :+1: :+1: