开发者社区> 问答> 正文

Windows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不了

Apache配置https后启动不了,
操作系统是Windows Server 2012 R2服务器,
镜像预装了护卫神主机大师,
然后申请了阿里云的免费证书,
安装Apache证书配置教程一步一步配置下去,然后Apache启动不了。

[Mon Sep 04 14:44:18 2017] [error] FastCGI process 3476 still did not exit, terminating forcefully
[Mon Sep 04 14:44:19 2017] [notice] Child 3084: Child process is exiting
[Mon Sep 04 14:44:19 2017] [notice] Parent: Child process exited successfully.
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 120.76.245-30 for ServerName
[Mon Sep 04 14:44:56 2017] [notice] Apache/2.2.22 (Win32) mod_fcgid/2.3.6 configured -- resuming normal operations
[Mon Sep 04 14:44:56 2017] [notice] Server built: Jan 28 2012 11:16:39
[Mon Sep 04 14:44:56 2017] [notice] Parent: Created child process 3432
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 120.76.245-30 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 120.76.245-30 for ServerName
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Child process is running
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Acquired the start mutex.
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Starting 64 worker threads.
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Starting thread to listen on port 81.
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Starting thread to listen on port 999.
[Mon Sep 04 14:44:56 2017] [notice] Child 3432: Starting thread to listen on port 80.
[Mon Sep 04 14:46:09 2017] [error] [client 61.140.181-31] File does not exist: C:/huweishen/wwwroot/17gi_sbni20/css/magnific-popup.css, referer: htt://17.cn/
[Mon Sep 04 14:46:09 2017] [error] [client 61.140.181-31] File does not exist: C:/huweishen/wwwroot/17gi_sbni20/404.html, referer: htt://17.cn/
[Mon Sep 04 14:46:17 2017] [error] [client 61.140.181-31] File does not exist: C:/huweishen/wwwroot/17gi_sbni20/favicon.ico, referer: htt://17.cn/
[Mon Sep 04 14:46:17 2017] [error] [client 61.140.181-31] File does not exist: C:/huweishen/wwwroot/17gi_sbni20/404.html, referer: htt://17.cn/
[Mon Sep 04 15:02:33 2017] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon Sep 04 15:02:33 2017] [notice] Child 3432: Exit event signaled. Child process is ending.
[Mon Sep 04 15:02:34 2017] [notice] Child 3432: Released the start mutex
[Mon Sep 04 15:02:35 2017] [notice] Child 3432: All worker threads have exited.
[Mon Sep 04 15:02:44 2017] [error] FastCGI process 2240 still did not exit, terminating forcefully
[Mon Sep 04 15:02:44 2017] [error] FastCGI process 3732 still did not exit, terminating forcefully
[Mon Sep 04 15:02:44 2017] [error] FastCGI process 1576 still did not exit, terminating forcefully
[Mon Sep 04 15:02:44 2017] [error] FastCGI process 3976 still did not exit, terminating forcefully

展开
收起
lkf 2017-09-04 17:53:07 9643 0
4 条回答
写回答
取消 提交回答
  • ReWindows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不
    请教楼主,httpd-ssl.conf这样配置有什么问题吗 加密的lite.winiss.com/ 还是无法访问



    # WARNING! On some platforms /dev/random blocks if not enough entropy
    # is available. This means you then cannot use the /dev/random device
    # because it would lead to very long connection times (as long as
    # it requires to make more entropy available). But usually those
    # platforms additionally provide a /dev/urandom device which doesn't
    # block. So, if available, use this one instead. Read the mod_ssl User
    # Manual for more details.
    #
    #SSLRandomSeed startup file:/dev/random  512
    #SSLRandomSeed startup file:/dev/urandom 512
    #SSLRandomSeed connect file:/dev/random  512
    #SSLRandomSeed connect file:/dev/urandom 512




    #
    # When we also provide SSL we have to listen to the
    # standard HTTP port (see above) and to the HTTPS port
    #
    # Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
    #       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
    #
    Listen 443


    ##
    ##  SSL Global Context
    ##
    ##  All SSL configuration in this context applies both to
    ##  the main server and all SSL-enabled virtual hosts.
    ##


    #
    #   Some MIME-types for downloading Certificates and CRLs
    #
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl    .crl


    #   Pass Phrase Dialog:
    #   Configure the pass phrase gathering process.
    #   The filtering dialog program (`builtin' is a internal
    #   terminal dialog) has to provide the pass phrase on stdout.
    SSLPassPhraseDialog  builtin


    #   Inter-Process Session Cache:
    #   Configure the SSL Session Cache: First the mechanism
    #   to use and second the expiring timeout (in seconds).
    #SSLSessionCache         "dbm:E:/Huweishen.com/HwsApacheMaster/Apache2.2/logs/ssl_scache"
    #SSLSessionCache        "shmcb:E:/Huweishen.com/HwsApacheMaster/Apache2.2/logs/ssl_scache(512000)"
    SSLSessionCache         "shmcb:logs/ssl_scache(512000)"
    SSLSessionCacheTimeout  300


    #   Semaphore:
    #   Configure the path to the mutual exclusion semaphore the
    #   SSL engine uses internally for inter-process synchronization.
    SSLMutex default
    <VirtualHost *:443>
            SSLEngine on
            SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
            SSLCertificateFile      "E:\HwsApacheMaster\Apache\conf\ssl\lite_winiss_com.crt"
            SSLCertificateKeyFile   "E:\HwsApacheMaster\Apache\conf\ssl\lite_winiss_com.key"
            ServerName      "lite.winiss.com"
            DocumentRoot    "E:\HwsApacheMaster\wwwroot\lite_XynWMB"
    </VirtualHost>
    2017-11-09 20:36:26
    赞同 展开评论 打赏
  • ReWindows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不
    详细步骤有吗,我和你一样额问题,就是我是菜鸟,不知道怎么解决
    2017-10-21 01:27:49
    赞同 展开评论 打赏
  • lkf
    回 1楼dongshan8的帖子
    你好,之前,我又换了一个Phpstudy环境试试,在httpd文件引入Include conf/vhostssl.conf,

    Listen 443
    SSLStrictSNIVHostCheck off
    SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL
    SSLProtocol all -SSLv2 -SSLv3
    <VirtualHost *:443>
        DocumentRoot "C:\phpStudy20161103\WWW\solo"
        ServerName solo.uesto.com
        ServerAlias solo.uesto.com
      <Directory "C:\phpStudy20161103\WWW\solo">
          Options FollowSymLinks ExecCGI
          AllowOverride All
          Order allow,deny
          Allow from all
          Require all granted
      </Directory>
    SSLEngine on
    SSLCertificateFile      "C:\phpStudy20161103\Apache\conf\ssl\yun\public.pem"
    SSLCertificateKeyFile   "C:\phpStudy20161103\Apache\conf\ssl\yun\phpStudy20161103.key"
    </VirtualHost>

    -------------------------

    回 1楼dongshan8的帖子
    然后只要是引入了#Include conf/extra/httpd-ssl.conf
    Include conf/vhostssl.conf这两个,apache就不能启动了,注释掉才可以启动。

    -------------------------

    回 1楼dongshan8的帖子
    现在的环境是windows  service 2012 R2 +phpstudy2016 +php5.6 +apache ,证书用的是阿里云免费的那个证书,不知啥原因,配置了就是启动不了。0-0

    -------------------------

    回 5楼dongshan8的帖子
    error.log
    [Mon Sep 04 23:04:15.711483 2017] [mpm_winnt:crit] [pid 1352:tid 500] AH02538: Child: Parent process exited abruptly. Child process is ending
    Starting the 'Apache2a' service
    The 'Apache2a' service is running.
    core:warn] [pid 1140:tid 600] AH00098: pid file C:/phpStudy20161103/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Tue Sep 05 09:52:55.008411 2017] [mpm_winnt:notice] [pid 1140:tid 600] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 configured -- resuming normal operations
    [Tue Sep 05 09:52:55.008411 2017] [mpm_winnt:notice] [pid 1140:tid 600] AH00456: Server built: Jul  1 2016 16:42:20
    [Tue Sep 05 09:52:55.008411 2017] [core:notice] [pid 1140:tid 600] AH00094: Command line: 'C:\\phpStudy20161103\\Apache\\bin\\httpd.exe -d C:/phpStudy20161103/Apache'
    [Tue Sep 05 09:52:55.023977 2017] [mpm_winnt:notice] [pid 1140:tid 600] AH00418: Parent: Created child process 2988
    [Tue Sep 05 09:52:55.586540 2017] [mpm_winnt:notice] [pid 2988:tid 500] AH00354: Child: Starting 150 worker threads.
    [Tue Sep 05 09:57:39.274000 2017] [mpm_winnt:crit] [pid 2988:tid 500] AH02538: Child: Parent process exited abruptly. Child process is ending

    -------------------------

    回 5楼dongshan8的帖子
    我进去Apache的bin 然后运行httpd.exe 结果
    <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 : 443
    AH00451:no listening sockets available,shutting down
    AH00015:  Unable to open logs

    -------------------------

    回 5楼dongshan8的帖子
    这样的话我要把443端口改成442才行?但是这样我不是每次访问都要带442端口才可以进行访问?

    -------------------------

    ReWindows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不
    怎么样才可是配置了https,正常访问域名不带端口号访问

    -------------------------

    ReWindows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不
    查看了443被httpd.exe 1392 RDP-Tcp#7占用了,然后就不知道怎么整了

    -------------------------

    回 12楼dongshan8的帖子
    我在cmd那里查看了,发现就httpd.exe这个,但是我去终止这个服务的话,我phpstudy会停止了apache

    -------------------------

    回 12楼dongshan8的帖子
    发不了图片,不然上截图了,我在任务管理器那里,看了,有两个httpd.exe服务。但是都是属于phpstudy里面的apache的

    -------------------------

    回 12楼dongshan8的帖子
    然后我试过关闭其中的一个,但是只要我的httpd-ssl.conf442端口改成443就不能启动了,

    -------------------------

    回 12楼dongshan8的帖子
    我直接netstat -aon|findstr "443"
    TCP 0.0.0.0:443  0.0.0.0:0   LISTENING  128
    TCP [::]:443  [::]:0   LISTENING  128
    然后tasklist|findstr "128"
    phpstudy.exe   2128 RDP-Tcp#7  2
    httpd.exe         128 RDP-Tcp#7  2
    结果就这里了

    -------------------------

    ReWindows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不
    解决了。是多个文件重复监听了
    2017-09-04 23:05:51
    赞同 展开评论 打赏
  • 旺旺:nectar2。
    Re:Windows Server 2012 R2服务器,装了护卫神主机大师,Apache配置https后启动不 ..
    楼主您好,

    欢迎来到阿里云论坛。

    日志里好象没直接关于SSL配置错误的信息,

    能否同时贴出您的apache配置文件内容?

    -------------------------

    回 4楼(lkf) 的帖子
    您好,

    如果是phpstudy的套件,这里有一个例子,您可以参考一下:

    《在 Windows 2008 系统为 phpstudy apache 不同网站配置不同SSL证书(SNI)》 - https://bbs.aliyun.com/read/304092.html?

    -------------------------

    回 11楼(lkf) 的帖子
    您好,

    请问您查看到的,443端口是被httpd.exe进程占用了吗?

    您同时启动了多个apache服务?

    -------------------------

    回 14楼(lkf) 的帖子
    您好,

    您可以尝试查看这个apache引用的配置文件中,是不是重复配置了443的监听端口。

    或是不是apache在启动时,加载了不同的httpd.conf配置文件。
    2017-09-04 18:52:31
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
大规模云服务器高效使用及管理最佳实践 立即下载
TAKING WINDOWS 10 KERNEL 立即下载
ECS运维指南之Windows系统诊断 立即下载

相关镜像