Tôi biết câu hỏi này đã được xem xét rất nhiều, nhưng các giải pháp ở đây không giải quyết chúng.httpd: Không thể xác định một cách đáng tin cậy tên miền đầy đủ của máy chủ
Hãy bắt đầu với một chút thông tin nền:
OS X 10.8.4 Apache 2.2.22
Vấn đề: tôi nhận được lỗi này trong giao diện điều khiển và Apache không thể tìm thấy localhost của tôi , nhưng bắt đầu ok. Kỳ dị.
[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
Vì vậy, thông thường điều này sẽ trỏ đến ServerName của tôi không được đặt đúng. Vâng, đó là:/và tôi đã thử với các biến thể khác nhau như Spectre.local, localhost, v.v.
Đây là bản sao /private/etc/httpd.conf & của tôi là như nhau cho/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
file host của tôi là thiết lập như sau:
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
Trong /private/etc/apache2/users/ta.conf của tôi là sau
#
# 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>
Không chắc chắn những gì khác nên được cấu hình thực sự. Nó được sử dụng để làm việc nhưng đăng 10,7 nâng cấp, nó không bao giờ làm việc và bây giờ tôi đang cố gắng giải quyết nó nó làm đầu của tôi.
Hãy cho tôi biết nếu bạn cần thêm thông tin.
Mã phát hành thư đó chỉ chạy khi cấu hình chung không có tên máy chủ, bạn có chắc là các tệp cấu hình đó đang được sử dụng không? – covener