Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Error I dont know coming from

Sun Apr 12, 2015 7:31 am

Since yesterday I installed an ssmtp server and phpmyadmin on both my raspberry's.
This is working fine.

I do only receive now suddenly mails containing two errors like:

Code: Select all

/etc/cron.daily/logrotate:
 [Sun Apr 12 06:25:17 2015] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
The first third line in the config file says:

Code: Select all

# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

Does somebody knows where this comes from?
Does it harm?
What to do to avoid this messages?

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: Error I dont know coming from

Sun Apr 12, 2015 8:24 am

These are two separate messages.

Code: Select all

/etc/cron.daily/logrotate:
 [Sun Apr 12 06:25:17 2015] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
This message seems to tell you nearly everything you need to know. It's a warning ([warn]), so no, this issue shouldn't cause any serious harm. You already figured out that you should check line 3 of that phpmyadmin config file. It's basically saying that an Alias directive declared before the Alias directive mentioned ("Alias /phpmyadmin /usr/share/phpmyadmin") in /etc/phpmyadmin/apache.conf is too similar and therefore the Alias directive in /etc/phpmyadmin/apache.conf may never be applied to any requests because the prior Alias will catch any requests that might have matched "/phpmyadmin".

In order to find the earlier Alias directive this warning is describing, you can check through the other apache2 config files. Check /etc/apache2/apache2.conf as this file will usually tell you the locations of all of the other config files you might want to check in your search for the other overlapping Alias directive. You'll probably want to check for any files in these directories: /etc/apache2/conf.d/*, /etc/apache2/mods-enabled/*, /etc/apache2/sites-enabled/*. Those last two locations are directories that normally only contain symlinks pointing to config files which are actually located in /etc/apache2/mods-available/* and /etc/apache2/sites-available/*. Seeing which symlink files are located in the *-enabled directories can be helpful for letting you know which config files are currently enabled and being used in the related *-available directories. You should view/edit the config files in the *-available directories. See if you can find another apache2 config file which contains an Alias directive similar to the "/phpmyadmin" Alias.

Code: Select all

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
You're seeing this message because you aren't using a domain name. This should be expected for most users playing around with non-public installations of the apache2 web server on a Raspberry Pi.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: Error I dont know coming from

Sun Apr 12, 2015 12:27 pm

ktb wrote:These are two separate messages.

Code: Select all

/etc/cron.daily/logrotate:
 [Sun Apr 12 06:25:17 2015] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
This message seems to tell you nearly everything you need to know. It's a warning ([warn]), so no, this issue shouldn't cause any serious harm. You already figured out that you should check line 3 of that phpmyadmin config file. It's basically saying that an Alias directive declared before the Alias directive mentioned ("Alias /phpmyadmin /usr/share/phpmyadmin") in /etc/phpmyadmin/apache.conf is too similar and therefore the Alias directive in /etc/phpmyadmin/apache.conf may never be applied to any requests because the prior Alias will catch any requests that might have matched "/phpmyadmin".

In order to find the earlier Alias directive this warning is describing, you can check through the other apache2 config files. Check /etc/apache2/apache2.conf as this file will usually tell you the locations of all of the other config files you might want to check in your search for the other overlapping Alias directive. You'll probably want to check for any files in these directories: /etc/apache2/conf.d/*, /etc/apache2/mods-enabled/*, /etc/apache2/sites-enabled/*. Those last two locations are directories that normally only contain symlinks pointing to config files which are actually located in /etc/apache2/mods-available/* and /etc/apache2/sites-available/*. Seeing which symlink files are located in the *-enabled directories can be helpful for letting you know which config files are currently enabled and being used in the related *-available directories. You should view/edit the config files in the *-available directories. See if you can find another apache2 config file which contains an Alias directive similar to the "/phpmyadmin" Alias.

Code: Select all

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
You're seeing this message because you aren't using a domain name. This should be expected for most users playing around with non-public installations of the apache2 web server on a Raspberry Pi.

Thanks for the clear explanation.

Return to “Troubleshooting”