Wiem, że to pytanie było często sprawdzane, ale rozwiązania nie rozwiązują ich.httpd: Nie można wiarygodnie określić w pełni kwalifikowanej nazwy domeny serwera
Zacznijmy trochę informacji tła:
OS X 10.8.4 Apache 2.2.22
Problem: otrzymuję ten błąd w konsoli i Apache nie mogę znaleźć mojego localhost , ale zaczyna się dobrze. Dziwne.
[Sat Aug 17 13:40:06 2013] [info] mod_ssl/2.2.22 compiled against Server: Apache/2.2.22, Library: OpenSSL/0.9.8r
httpd: Could not reliably determine the server's fully qualified domain name, using Specter.local for ServerName
Zwykle wskazywałoby to, że moja nazwa serwera nie jest ustawiona poprawnie. Cóż, to jest:/i próbowałem z różnymi wariantami, takimi jak Spectre.local, localhost, itp.
Oto kopia mojego /private/etc/httpd.conf & to jest to samo dla/private/etc/apache2 /httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost
Mój plik hosta jest ustawiony w następujący sposób:
127.0.0.1 localhost localhost.local
255.255.255.255 broadcasthost
127.0.0.1 themill.dev
127.0.0.1 phpmyadmin.dev
127.0.0.1 Specter.local
W moim /private/etc/apache2/users/ta.conf jest następujący
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# DEV: THEMILL SITE
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/ta/Sites/themill/htdocs"
ServerName themill.dev
ServerAlias *.themill.dev
ErrorLog "/Users/ta/Sites/themill/log/error_log"
CustomLog "/Users/ta/Sites/themill/log/access_log" common
</VirtualHost>
# PHPMYADMIN
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/ta/Sites/phpmyadmin"
ServerName phpmyadmin.dev
ServerAlias *.phpmyadmin.dev
ErrorLog "/Users/ta/Sites/phpmyadmin/log/error_log"
CustomLog "/Users/ta/Sites/phpmyadmin/log/access_log" common
</VirtualHost>
Nie jestem pewien, co jeszcze należy skonfigurować. Kiedyś pracował, ale po aktualizacji 10.7, to nigdy nie zadziałało, a teraz, gdy próbuję go rozwiązać, wpada mi to do głowy.
Daj mi znać, jeśli potrzebujesz więcej informacji.
Kod, który powoduje, że komunikat pojawia się tylko wtedy, gdy konfiguracja globalna nie ma nazwy serwera, czy jesteś pewien, że te pliki konfiguracyjne są używane? – covener