關於該帖子Apache versions conflict。我再次嘗試的Apache以下步驟安裝從https://getgrav.org/blog/macos-sierra-apache-multiple-php-versionsApache版本衝突(續)
我仍然有一些問題,如果我想從我的本地網站文件夾測試本地主機。
阿帕奇的結果日誌
關於錯誤
無法可靠地確定了服務器的完全合格的域名,使用 127.0.0.1。設置「服務器名稱」 ......
我嘗試添加服務器名本地主機文件在/etc/apache2/apache2.conf中https://askubuntu.com/questions/454497/apache2-could-not-reliably-determine-the-servers-fully-qualified-domain-name的選擇,但我不知道這是否是作爲正確的文件,因爲我與Apache 2.4(/usr/local/etc/apache2/2.4/httpd.conf)工作
此外,如果我運行命令須藤的apachectl -k重啓我得到這個
(48)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
在我的文件/etc/apache2/httpd.conf
我有這樣的:
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User amhg
Group staff
# 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
DocumentRoot /Users/amhg/Sites
<Directory /Users/amhg/Sites>
#
AllowOverride All
我註釋掉LoadModule rewrite_module libexec/mod_rewrite.so
有什麼建議? 提前謝謝!
謝謝@elham_jahan您的回覆,最後我決定改用MAMP,我覺得這是更好地作爲一個起點開始。 – andreahg