2014-11-06 100 views
0

我剛剛在我的64位Windows 8.1操作系統上安裝了WAMP。我改變了一部分顯然是錯誤的httpd.conf文件。我試圖按照YouTube視頻中的說明進行操作,但我對WAMP或PHP知之甚少。我只是想開始。我如何改變下面的信息,才能讓Wamp正常工作。我爲我的WAMP安裝輸入了錯誤的信息到我的httpd.conf中...

我剛剛安裝了它,因爲它不工作,我跟着我在網上找到的一些常見的建議,並試圖做一些改變,但沒有發生任何事。

我也看到有一個httpd.conf.build文件與httpd.conf文件本身有不同的信息。

如果我剛剛在Windows 8.1上安裝了WAMP,並且只做了我在下面分享的更改......我如何讓本地服務器工作,以便我可以在本地驅動器上測試PHP軟件。

我真的不知道該怎麼做。我剛剛開始使用PHP,當它應該是自動安裝時,我甚至無法讓WAMP運行。

我想我在正確的地方問了問題,因爲我爲自己做了一些自定義問題,所以我無法想象其他人問這個完全相同的問題。我是如何搞砸的,如何安裝WAMP安裝程序,並僅從原始文件中進行下面列出的更改,我如何才能運行WAMP安裝程序。

# Listen: Allows you to bind Apache to specific IP addresses and/or 
# ports, instead of the default. See also the <VirtualHost> 
# directive. 
# 
# 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 
Listen 0.0.0.0 
Listen 8888 

80 Dynamic Shared Object (DSO) Support 
+0

刪除'聽8888'重啓Apache服務器,看看它是否有幫助。 – 2014-11-06 05:23:16

回答

1

這是httpd.conf文件的相應部分應該是什麼樣子

# 
# Listen: Allows you to bind Apache to specific IP addresses and/or 
# ports, instead of the default. See also the <VirtualHost> 
# directive. 
# 
# 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 0.0.0.0:80 
Listen [::0]:80 

# 
# Dynamic Shared Object (DSO) Support 

,直到你知道你在做什麼,我可以建議你做的任何配置文件備份副本之前試圖改變它們。

如果你真的想將APache移動到端口8888上監聽,並且我建議你不要。相反,弄清楚還有什麼使用80端口並重新配置它。

但是如果你必須再試試這些更改的httpd.conf

# 
# Listen: Allows you to bind Apache to specific IP addresses and/or 
# ports, instead of the default. See also the <VirtualHost> 
# directive. 
# 
# 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 0.0.0.0:8080 
Listen [::0]:8080 

# 
# Dynamic Shared Object (DSO) Support 

然後找到行

ServerName localhost:80 

,並更改爲

ServerName localhost:8080 
+0

我認爲** Skype **和** Team Viewer **是我總是需要配置的應用程序*不*獲取端口80.另一個可能是IIS,如果你有這個運行。 – Svish 2014-11-06 10:03:32

+0

'netstat -aon'將列出正在使用的端口和使用它的PID。 – Svish 2014-11-06 10:06:45

相關問題