登陆

开启httpd-ssl.conf,apache停止!

在httpd.conf里边开启#Include conf/extra/httpd-ssl.conf 重启apache就报错 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


# PHP
周宏亮周宏亮1284 天前3668 次浏览

全部回复(4)我要回复

  • a游侠儿.evil

    a游侠儿.evil2018-06-05 04:14:29

    其次是你可以安装了VMware,VMware占用了443端口,这里禁用教程https://blog.csdn.net/bwlab/article/details/46953569

    回复
    0
  • a游侠儿.evil

    a游侠儿.evil2018-06-05 02:25:40


    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>                                  


    回复
    0
  • 嗨儿卷卷菲司圆圆

    嗨儿卷卷菲司圆圆2018-05-13 15:36:18

    问题解决了吗?怎么解决的?我也遇到了同样的问题百度了一天都没解决。。

    回复
    0
  • 周宏亮

    并没有,不用phpstudy自己建环境。才搞定。

    周宏亮 · 2018-07-01 15:09:54
  • 取消回复发送