Apache + PHP

來源:互聯網
上載者:User

標籤:sdn   ash   ror   dir   must   sharp   reg   bin   win   


參考連結:

https://www.cnblogs.com/godlei/p/6445391.html 

一、安裝Apache 

"D:\soft\Apache24\bin\httpd.exe" -k install

"D:\soft\Apache24\bin\httpd.exe" -k start

 "D:\soft\Apache24\bin\httpd.exe" -k stop

 

: AH00436: No installed service named"Apache2.4"

 

參考連結:50848166

I had absolutely the same problem with the "AH00436: No installed service named “Apache2.4”" after I downloaded Apache 2.4 for Windows and tried to start it the first time.The solution was very very simple. You get the error message when you manually try to start the webserver by "httpd -k start", but no service was defined yet.just do a "httpd -k install" and the windows service is added to the registry. after that, the "httpd -k start" works without error message.

 

C:\WINDOWS\system32>"D:\soft\Apache24\bin\httpd.exe" -k install  

Errors reported here must be corrected before the service can be started.AH00558: httpd.exe: Could not reliably determine the server‘s fully qualified domain name, using fe80::49d9:2c7d:7039:73fb. Set the ‘ServerName‘ directive globally to suppress this message(OS 10048)通常每個通訊端地址(協議/網路地址/連接埠)只允許使用一次。  : AH00072: make_sock: could not bind to address [::]:443(OS 10048)通常每個通訊端地址(協議/網路地址/連接埠)只允許使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443AH00451: no listening sockets available, shutting downAH00015: Unable to open logs

 

C:\WINDOWS\system32>"D:\soft\Apache24\bin\httpd.exe" -k install -n "Apache24"Installing the ‘Apache24‘ serviceThe ‘Apache24‘ service is successfully installed.Testing httpd.conf....Errors reported here must be corrected before the service can be started.(OS 10048)通常每個通訊端地址(協議/網路地址/連接埠)只允許使用一次。  : AH00072: make_sock: could not bind to address [::]:443(OS 10048)通常每個通訊端地址(協議/網路地址/連接埠)只允許使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443AH00451: no listening sockets available, shutting downAH00015: Unable to open logsC:\WINDOWS\system32>netstat -ano | findstr "443"  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       6248  TCP    127.0.0.1:443          127.0.0.1:51032        ESTABLISHED     6248  TCP    127.0.0.1:443          127.0.0.1:64897        ESTABLISHED     6248  TCP    127.0.0.1:51032        127.0.0.1:443          ESTABLISHED     20144  TCP    127.0.0.1:64897        127.0.0.1:443          ESTABLISHED     20144  C:\WINDOWS\system32>tasklist | findstr "6248"vmware-hostd.exe              6248 Services                   0     17,272 K

進入Apache的安裝目錄,搜尋httpd-ssl.conf,右擊文本開啟。尋找443替換成其他不常用的連接埠號碼,比如442。接下來就可以正常啟動Apache了。

#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
Define SSL_PORT 442
Listen ${SSL_PORT}
ProtocolsHonorOrder On
Protocols h2 http/1.1


 二、安裝PHP

  

[email protected]:~$ su rootPassword: [email protected]:/home/zhl# rabbitmqctl list_usersListing usersadmin[administrator]guest[administrator][email protected]:/home/zhl# rabbitmqctl  set_permissions -p / admin ‘.*‘ ‘.*‘ ‘.*‘Setting permissions for user "admin" in vhost "/"[email protected]:/home/zhl# 

 

Apache + PHP

相關文章

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。