在httpd.conf里邊開啟#Include conf/extra/httpd-ssl.conf 重啟apache就報(bào)錯(cuò) apache日志文件
[Thu May 10 11:53:55.515054 2018] [core:warn] [pid 6988:tid 312] AH00098: pid file D:/software/phpstudy/PHPTutorial/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu May 10 11:53:55.609059 2018] [mpm_winnt:notice] [pid 6988:tid 312] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 configured -- resuming normal operations
[Thu May 10 11:53:55.609059 2018] [mpm_winnt:notice] [pid 6988:tid 312] AH00456: Server built: Jul ?1 2016 16:42:20
[Thu May 10 11:53:55.609059 2018] [core:notice] [pid 6988:tid 312] AH00094: Command line: 'D:\\software\\phpstudy\\PHPTutorial\\Apache\\bin\\httpd.exe -d D:/software/phpstudy/PHPTutorial/Apache'
[Thu May 10 11:53:55.611059 2018] [mpm_winnt:notice] [pid 6988:tid 312] AH00418: Parent: Created child process 7948
[Thu May 10 11:53:56.432106 2018] [mpm_winnt:notice] [pid 7948:tid 328] AH00354: Child: Starting 150 worker threads.
[Thu May 10 12:48:20.615807 2018] [mpm_winnt:crit] [pid 7948:tid 328] AH02538: Child: Parent process exited abruptly. Child process is ending
Secondly, you can install VMware. VMware occupies port 443. Here is a tutorial on disabling it https://blog.csdn.net/bwlab/article/details/46953569
phpStudy?不要安裝在c盤?。。?!
httpd-ssl.conf?示例:
Listen 443
SSLPassPhraseDialog? builtin
SSLSessionCache? ? ? ? "shmcb:logs/ssl_scache(512000)"
SSLSessionCacheTimeout? 300
<VirtualHost _default_:443>
#? ?General setup for the virtual host
DocumentRoot "e:/www/mysite"? #?改
ServerName www.mysite.com:443? #改?
?ServerAdmin admin@example.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "conf/ssl/mysite_server.crt"? #改
SSLCertificateKeyFile "conf/ssl/mysite_server.key"? #改
<FilesMatch "\.(cgi|shtml|phtml|php)$">
? ? SSLOptions +StdEnvVars
</FilesMatch>
<Directory "D:/phpStudy/PHPTutorial/Apache/cgi-bin">
? ? SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
? ? ? ? ?nokeepalive ssl-unclean-shutdown \
? ? ? ? ?downgrade-1.0 force-response-1.0
#? ?Per-Server Logging:
#? ?The home of a custom SSL log file. Use this when you want a
#? ?compact non-error SSL logfile on a virtual host basis.
CustomLog "D:/phpStudy/PHPTutorial/Apache/logs/ssl_request.log" \? ?#改
? ? ? ? ? "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
Has the problem been solved? How to solve it? I also encountered the same problem and Baidu couldn't solve it for a day. .