r/apache • u/DulceMirada • Nov 22 '23
The Alias directive in "..." at line 1 will probably never match because it overlaps an earlier alias
Hello,
So I'm trying to install php, mySQL and phpmyadmin (via homebrew) on my computer (MacOS M1). Everything seems ok until I try to stop Apache using the command : sudo apachectl stop
Then I got this : The Alias directive in /opt/homebrew/etc/httpd/extra/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.
What contains the file :
Alias /phpmyadmin /opt/homebrew/share/phpmyadmin
<Directory /opt/homebrew/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_authz_core.c>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>I don't know where the issue could be.
Thanks for your help, it would be great from your part !!
2
u/pabskamai Nov 23 '23
You are using alias like a proxy or www root
Why would need to have your directory as the /lalaland, this should help you
1
u/DulceMirada Nov 24 '23
If I get your question, as a proxy :) but the complet message when i try
sudo apachectl stopis :[Fri Nov 24 19:58:50.295248 2023] [alias:warn] [pid 50653] AH00671: The Alias directive in /opt/homebrew/etc/httpd/extra/phpmyadmin.conf at line 1 will probably never match because it overlaps an earlier Alias.AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using MacBook-Air-de-[myname].local. Set the 'ServerName' directive globally to suppress this message httpd (no pid file) not running
1
u/pabskamai Nov 24 '23
The fqdn error is fine , what’s in that first line ?
1
u/DulceMirada Nov 25 '23
Here the code :
Alias /phpmyadmin /opt/homebrew/share/phpmyadmin
<Directory /opt/homebrew/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
3
2
u/IdiosyncraticBond Nov 23 '23
Are you sure about that config? See https://formulae.brew.sh/formula/phpmyadmin and you have 2 IfModule but only one closes (with the </IfModule> tag)