![](/img/trans.png)
[英]After I install Wampserver2, while opening phpmyadmin i got error Firefox can't establish a connection to the server at localhost
[英]WAMPSERVER Localhost Crashes and Apache variable '${INSTALL_DIR}' is not defined errors
所以我得到了這些錯誤。
下面是顯示 INSTALL_DIR 指令已定義的行。 我究竟做錯了什么?
Define INSTALL_DIR c:/wamp64
Define APACHE_DIR ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
Define SRVROOT ${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}
ServerRoot "${SRVROOT}"*
將路徑放在引號之間(並且必須刪除“$ {SRVROOT}”之后的星號),如下所示:
Define INSTALL_DIR "c:/wamp64"
Define APACHE_DIR "${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}"
Define SRVROOT "${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}"
ServerRoot "${SRVROOT}"
因為兩個變量 APACHE_DIR 和 SRVROOT 都指向同一個位置,你也可以這樣做:
Define INSTALL_DIR "c:/wamp64"
Define APACHE_DIR "${INSTALL_DIR}/bin/apache/apache${VERSION_APACHE}"
Define SRVROOT "${APACHE_DIR}"
ServerRoot "${SRVROOT}"
或者完全擺脫 SRVROOT,但我認為它在很多 xampp 文件中實現,所以最好不要刪除那個:-)
Also a way to test your config is: Navigate the Apache bin folder (in your case: c:\wamp64\bin\apache\apacheversionnumber\bin) in cmd (command prompt) and type: httpd -t and hit enter => you問 Apache 測試你的配置,如果有錯誤,它會告訴你在哪個文件的哪一行,否則它會說: Syntax OK
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.