Reference Links:
Https://www.cnblogs.com/godlei/p/6445391.html
First, install 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"
Reference link: https://blog.csdn.net/wuzongpo/article/details/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 cure 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) Usually each socket address (protocol/network address/port) is only allowed to be used once. : AH00072: make_sock: could not bind to address [::]:443
(OS 10048) Usually each socket address (protocol/network address/port) is only allowed to be used once. : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
C:\WINDOWS\system32>"D:\soft\Apache24\bin\httpd.exe" -k install -n "Apache24"
Installing the ‘Apache24‘ service
The ‘Apache24’ service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10048) Usually each socket address (protocol/network address/port) is only allowed to be used once. : AH00072: make_sock: could not bind to address [::]:443
(OS 10048) Usually each socket address (protocol/network address/port) is only allowed to be used once. : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
C:\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
Go to the Apache installation directory, search for httpd-ssl.conf, and right-click on the text to open it. Look for 443 and replace it with other port numbers that are not commonly used, such as 442. Then you can start Apache normally.
#
# when we also provide SSL we had 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
Second, install PHP
[email protected]:~$ su root
Password:
[email protected]:/home/zhl# rabbitmqctl list_users
Listing users
admin [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