Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 69.58 KB | None | 0 0
  1. Last login: Mon Feb 17 11:24:02 on ttys000
  2. npm WARN npm npm does not support Node.js v7.2.0
  3. npm WARN npm You should probably upgrade to a newer version of node as we
  4. npm WARN npm can't make any promises that npm will work with this version.
  5. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13, 14.
  6. npm WARN npm You can find the latest version at https://nodejs.org/
  7.  
  8. The default interactive shell is now zsh.
  9. To update your account to use zsh, please run `chsh -s /bin/zsh`.
  10. For more details, please visit https://support.apple.com/kb/HT208050.
  11. Matthews-MacBook-Pro:~ mmurphy$ ssh cmshosting.xyZ
  12. Enter passphrase for key '/Users/mmurphy/.ssh/id_rsa':
  13. Last login: Tue Feb 18 05:12:38 2020 from 107-192-115-129.lightspeed.frokca.sbcglobal.net
  14. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  46. [mmurphy@instance-1 ~]$ sudo su
  47. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  48. cmshosting_xyz.csr  cmshosting_xyz.key  
  49. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  50. cmshosting_xyz.csr  cmshosting_xyz.key  
  51. [root@instance-1 mmurphy]# nano /etc/httpd/conf.d/ssl.conf
  52. [root@instance-1 mmurphy]# cd /var/www/html/
  53. [root@instance-1 html]# ls
  54. admin                 banned.php             dist.loghandler.php  includes           modules               serverstatus.php    viewemail.php
  55. affiliates.php        bundle.crt             dl.php               index.php          networkissues.php     status              viewinvoice.php
  56. aff.php               cart.php               documentation        info.php           networkissuesrss.php  submitticket.php    viewquote.php
  57. announcements.php     clientarea.php         dologin.php          init.php           node_modules          supporttickets.php  viewticket.php
  58. announcementsrss.php  configuration.php      domainchecker.php    knowledgebase.php  oauth                 templates           whmcs
  59. antler                configuration.php.new  downloads            lang               pipe                  templates_c         whois.php
  60. Archive               configuressl.php       downloads.php        link.php           pwreset.php           unsubscribe.php
  61. archive.zip?dl=0      contact.php            EULA.txt             login.php          README.txt            upgrade.php
  62. assets                creditcard.php         feeds                logout.php         register.php          uppy
  63. attachments           crons                  hubspot.php          media              resources             vendor
  64. [root@instance-1 html]# rm archive.zip\?dl\=0
  65. rm: remove regular file ‘archive.zip?dl=0’? y
  66. [root@instance-1 html]# nano /etc/httpd/conf.d
  67. [root@instance-1 html]# cd  /etc/httpd/conf.d
  68. [root@instance-1 conf.d]# ls
  69. autoindex.conf  php.conf  README  ssl.conf  userdir.conf  welcome.conf
  70. [root@instance-1 conf.d]# cd ..
  71. [root@instance-1 httpd]# ls
  72. conf  conf.d  conf.modules.d  logs  modules  run  ssl
  73. [root@instance-1 httpd]# cd ssl/
  74. [root@instance-1 ssl]# ls
  75. cmshosting_xyz.csr  cmshosting_xyz.key
  76. [root@instance-1 ssl]# pwd
  77. /etc/httpd/ssl
  78. [root@instance-1 ssl]# /etc/httpd/ssl/cmshosting_xyz.key
  79. bash: /etc/httpd/ssl/cmshosting_xyz.key: Permission denied
  80. [root@instance-1 ssl]# locate www_cms
  81. bash: locate: command not found
  82. [root@instance-1 ssl]# updatedb
  83. bash: updatedb: command not found
  84. [root@instance-1 ssl]# cd /etc/pki/tls/certs/
  85. [root@instance-1 certs]# ls
  86. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  87. [root@instance-1 certs]# /etc/pki/tls/certs/www_cmshosting_xyz.crt
  88. bash: /etc/pki/tls/certs/www_cmshosting_xyz.crt: Permission denied
  89. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  90. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  91. [root@instance-1 certs]# apache restart
  92. bash: apache: command not found
  93. [root@instance-1 certs]# service httpd restart
  94. Redirecting to /bin/systemctl restart httpd.service
  95. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  96. [root@instance-1 certs]# systemctl status httpd.service
  97. ● httpd.service - The Apache HTTP Server
  98.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  99.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:14:05 UTC; 10s ago
  100.     Docs: man:httpd(8)
  101.           man:apachectl(8)
  102.  Process: 3815 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  103.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  104.  Process: 3814 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  105. Main PID: 3814 (code=exited, status=1/FAILURE)
  106.  
  107. Feb 18 19:14:04 instance-1 systemd[1]: Stopped The Apache HTTP Server.
  108. Feb 18 19:14:04 instance-1 systemd[1]: Starting The Apache HTTP Server...
  109. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  110. Feb 18 19:14:05 instance-1 kill[3815]: kill: cannot find process ""
  111. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  112. Feb 18 19:14:05 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  113. Feb 18 19:14:05 instance-1 systemd[1]: Unit httpd.service entered failed state.
  114. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service failed.
  115. [root@instance-1 certs]# cd /etc/pki/tls/private
  116. [root@instance-1 private]# ls
  117. localhost.key
  118. [root@instance-1 private]# cd /etc/httpd/ssl
  119. [root@instance-1 ssl]# ls
  120. cmshosting_xyz.csr  cmshosting_xyz.key
  121. [root@instance-1 ssl]# mv * /etc/pki/tls/private
  122. [root@instance-1 ssl]# ls
  123. [root@instance-1 ssl]# cd /etc/pki/tls/private
  124. [root@instance-1 private]# ls
  125. cmshosting_xyz.csr  cmshosting_xyz.key  localhost.key
  126. [root@instance-1 private]# nano /etc/httpd/conf.d/ssl.conf
  127. [root@instance-1 private]# cd /etc/pki/tls/certs
  128. [root@instance-1 certs]# ls
  129. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  130. [root@instance-1 certs]# service httpd start
  131. Redirecting to /bin/systemctl start httpd.service
  132. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  133. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  134. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  135. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  136. [root@instance-1 certs]#
  137. [root@instance-1 certs]# service httpd start
  138. Redirecting to /bin/systemctl start httpd.service
  139. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  140. [root@instance-1 certs]# systemctl status httpd.service
  141. ● httpd.service - The Apache HTTP Server
  142.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  143.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:30:00 UTC; 8s ago
  144.     Docs: man:httpd(8)
  145.           man:apachectl(8)
  146.  Process: 4106 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  147.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  148.  Process: 4105 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  149. Main PID: 4105 (code=exited, status=1/FAILURE)
  150.  
  151. Feb 18 19:30:00 instance-1 systemd[1]: Starting The Apache HTTP Server...
  152. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  153. Feb 18 19:30:00 instance-1 kill[4106]: kill: cannot find process ""
  154. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  155. Feb 18 19:30:00 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  156. Feb 18 19:30:00 instance-1 systemd[1]: Unit httpd.service entered failed state.
  157. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service failed.
  158. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  159. [root@instance-1 certs]# service httpd restart
  160. Redirecting to /bin/systemctl restart httpd.service
  161. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  162. [root@instance-1 certs]# service httpd start
  163. Redirecting to /bin/systemctl start httpd.service
  164. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  165. [root@instance-1 certs]# systemctl status httpd.service
  166. ● httpd.service - The Apache HTTP Server
  167.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  168.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:35:09 UTC; 6s ago
  169.     Docs: man:httpd(8)
  170.           man:apachectl(8)
  171.  Process: 4195 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  172.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  173.  Process: 4194 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  174. Main PID: 4194 (code=exited, status=1/FAILURE)
  175.  
  176. Feb 18 19:35:09 instance-1 systemd[1]: Starting The Apache HTTP Server...
  177. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  178. Feb 18 19:35:09 instance-1 kill[4195]: kill: cannot find process ""
  179. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  180. Feb 18 19:35:09 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  181. Feb 18 19:35:09 instance-1 systemd[1]: Unit httpd.service entered failed state.
  182. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service failed.
  183. [root@instance-1 certs]# tail /var/log/httpd/error_log
  184. [Tue Feb 18 19:14:05.004452 2020] [ssl:emerg] [pid 3814] AH02312: Fatal error initialising mod_ssl, exiting.
  185. [Tue Feb 18 19:30:00.677680 2020] [core:notice] [pid 4105] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  186. [Tue Feb 18 19:30:00.679064 2020] [suexec:notice] [pid 4105] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  187. [Tue Feb 18 19:30:00.680236 2020] [ssl:emerg] [pid 4105] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  188. [Tue Feb 18 19:35:04.317827 2020] [core:notice] [pid 4173] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  189. [Tue Feb 18 19:35:04.318884 2020] [suexec:notice] [pid 4173] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  190. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  191. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  192. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  193. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  194. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  195. [Tue Feb 18 09:05:04.743639 2020] [php7:error] [pid 25239] [client 5.9.156.121:10466] script '/var/www/html/whmcs/cart.php' not found or unable to stat
  196. [Tue Feb 18 19:30:00.680181 2020] [ssl:warn] [pid 4105] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  197. [Tue Feb 18 19:30:00.680209 2020] [ssl:emerg] [pid 4105] AH02238: Unable to configure RSA server private key
  198. [Tue Feb 18 19:30:00.680232 2020] [ssl:emerg] [pid 4105] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  199. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  200. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  201. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  202. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  203. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  204. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  205. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  206. [root@instance-1 certs]# service httpd restart
  207. Redirecting to /bin/systemctl restart httpd.service
  208. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  209. [root@instance-1 certs]# service httpd restart
  210. Redirecting to /bin/systemctl restart httpd.service
  211. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  212. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  213. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  214. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  215. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  216. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  217. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  218. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  219. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  220. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  221. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  222. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  223. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  224. [root@instance-1 certs]# tail /var/log/httpd/error_log
  225. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  226. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  227. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  228. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  229. [Tue Feb 18 19:42:12.141231 2020] [core:notice] [pid 4315] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  230. [Tue Feb 18 19:42:12.142841 2020] [suexec:notice] [pid 4315] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  231. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  232. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  233. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  234. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  235. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  236. [root@instance-1 certs]# service httpd restart
  237. Redirecting to /bin/systemctl restart httpd.service
  238. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  239. [root@instance-1 certs]# service httpd start
  240. Redirecting to /bin/systemctl start httpd.service
  241. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  242. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  243. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  244. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  245. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  246. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  247. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  248. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  249. [Tue Feb 18 19:45:08.772466 2020] [ssl:emerg] [pid 4393] AH02238: Unable to configure RSA server private key
  250. [Tue Feb 18 19:45:08.772515 2020] [ssl:emerg] [pid 4393] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  251. [Tue Feb 18 19:45:13.324614 2020] [ssl:emerg] [pid 4414] AH02238: Unable to configure RSA server private key
  252. [Tue Feb 18 19:45:13.324659 2020] [ssl:emerg] [pid 4414] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  253. [root@instance-1 certs]# tail /var/log/httpd/error_log
  254. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  255. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  256. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  257. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  258. [Tue Feb 18 19:45:08.763735 2020] [core:notice] [pid 4393] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  259. [Tue Feb 18 19:45:08.764794 2020] [suexec:notice] [pid 4393] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  260. [Tue Feb 18 19:45:08.772521 2020] [ssl:emerg] [pid 4393] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  261. [Tue Feb 18 19:45:13.315449 2020] [core:notice] [pid 4414] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  262. [Tue Feb 18 19:45:13.316577 2020] [suexec:notice] [pid 4414] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  263. [Tue Feb 18 19:45:13.324665 2020] [ssl:emerg] [pid 4414] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  264. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  265.  
  266.  GNU nano 2.3.1                                File: /etc/httpd/conf.d/ssl.conf                                                                      
  267.  
  268. #
  269. # When we also provide SSL we have to listen to the
  270. # the HTTPS port in addition.
  271. #
  272. Listen 443 https
  273.  
  274. ##
  275. ##  SSL Global Context
  276. ##
  277. ##  All SSL configuration in this context applies both to
  278. ##  the main server and all SSL-enabled virtual hosts.
  279. ##
  280.  
  281. #   Pass Phrase Dialog:
  282. #   Configure the pass phrase gathering process.
  283. #   The filtering dialog program (`builtin' is a internal
  284. #   terminal dialog) has to provide the pass phrase on stdout.
  285. SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
  286.  
  287. #   Inter-Process Session Cache:
  288. #   Configure the SSL Session Cache: First the mechanism
  289. #   to use and second the expiring timeout (in seconds).
  290. SSLSessionCache         shmcb:/run/httpd/sslcache(512000)
  291. SSLSessionCacheTimeout  300
  292.  
  293. #   Pseudo Random Number Generator (PRNG):
  294. #   Configure one or more sources to seed the PRNG of the
  295. #   SSL library. The seed data should be of good random quality.
  296. #   WARNING! On some platforms /dev/random blocks if not enough entropy
  297. #   is available. This means you then cannot use the /dev/random device
  298. #   because it would lead to very long connection times (as long as
  299. #   it requires to make more entropy available). But usually those
  300. #   platforms additionally provide a /dev/urandom device which doesn't
  301. #   block. So, if available, use this one instead. Read the mod_ssl User
  302. #   Manual for more details.
  303. SSLRandomSeed startup file:/dev/urandom  256
  304. SSLRandomSeed connect builtin
  305. #SSLRandomSeed startup file:/dev/random  512
  306. #SSLRandomSeed connect file:/dev/random  512
  307. #SSLRandomSeed connect file:/dev/urandom 512
  308.  
  309. #  
  310. # Use "SSLCryptoDevice" to enable any supported hardware
  311. # accelerators. Use "openssl engine -v" to list supported
  312. # engine names.  NOTE: If you enable an accelerator and the
  313. # server does not start, consult the error logs and ensure
  314. # your accelerator is functioning properly.
  315. Last login: Mon Feb 17 11:24:02 on ttys000
  316. npm WARN npm npm does not support Node.js v7.2.0
  317. npm WARN npm You should probably upgrade to a newer version of node as we
  318. npm WARN npm can't make any promises that npm will work with this version.
  319. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13, 14.
  320. npm WARN npm You can find the latest version at https://nodejs.org/
  321.  
  322. The default interactive shell is now zsh.
  323. To update your account to use zsh, please run `chsh -s /bin/zsh`.
  324. For more details, please visit https://support.apple.com/kb/HT208050.
  325. Matthews-MacBook-Pro:~ mmurphy$ ssh cmshosting.xyZ
  326. Enter passphrase for key '/Users/mmurphy/.ssh/id_rsa':
  327. Last login: Tue Feb 18 05:12:38 2020 from 107-192-115-129.lightspeed.frokca.sbcglobal.net
  328. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  360. [mmurphy@instance-1 ~]$ sudo su
  361. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  362. cmshosting_xyz.csr  cmshosting_xyz.key  
  363. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  364. cmshosting_xyz.csr  cmshosting_xyz.key  
  365. [root@instance-1 mmurphy]# nano /etc/httpd/conf.d/ssl.conf
  366. [root@instance-1 mmurphy]# cd /var/www/html/
  367. [root@instance-1 html]# ls
  368. admin                 banned.php             dist.loghandler.php  includes           modules               serverstatus.php    viewemail.php
  369. affiliates.php        bundle.crt             dl.php               index.php          networkissues.php     status              viewinvoice.php
  370. aff.php               cart.php               documentation        info.php           networkissuesrss.php  submitticket.php    viewquote.php
  371. announcements.php     clientarea.php         dologin.php          init.php           node_modules          supporttickets.php  viewticket.php
  372. announcementsrss.php  configuration.php      domainchecker.php    knowledgebase.php  oauth                 templates           whmcs
  373. antler                configuration.php.new  downloads            lang               pipe                  templates_c         whois.php
  374. Archive               configuressl.php       downloads.php        link.php           pwreset.php           unsubscribe.php
  375. archive.zip?dl=0      contact.php            EULA.txt             login.php          README.txt            upgrade.php
  376. assets                creditcard.php         feeds                logout.php         register.php          uppy
  377. attachments           crons                  hubspot.php          media              resources             vendor
  378. [root@instance-1 html]# rm archive.zip\?dl\=0
  379. rm: remove regular file ‘archive.zip?dl=0’? y
  380. [root@instance-1 html]# nano /etc/httpd/conf.d
  381. [root@instance-1 html]# cd  /etc/httpd/conf.d
  382. [root@instance-1 conf.d]# ls
  383. autoindex.conf  php.conf  README  ssl.conf  userdir.conf  welcome.conf
  384. [root@instance-1 conf.d]# cd ..
  385. [root@instance-1 httpd]# ls
  386. conf  conf.d  conf.modules.d  logs  modules  run  ssl
  387. [root@instance-1 httpd]# cd ssl/
  388. [root@instance-1 ssl]# ls
  389. cmshosting_xyz.csr  cmshosting_xyz.key
  390. [root@instance-1 ssl]# pwd
  391. /etc/httpd/ssl
  392. [root@instance-1 ssl]# /etc/httpd/ssl/cmshosting_xyz.key
  393. bash: /etc/httpd/ssl/cmshosting_xyz.key: Permission denied
  394. [root@instance-1 ssl]# locate www_cms
  395. bash: locate: command not found
  396. [root@instance-1 ssl]# updatedb
  397. bash: updatedb: command not found
  398. [root@instance-1 ssl]# cd /etc/pki/tls/certs/
  399. [root@instance-1 certs]# ls
  400. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  401. [root@instance-1 certs]# /etc/pki/tls/certs/www_cmshosting_xyz.crt
  402. bash: /etc/pki/tls/certs/www_cmshosting_xyz.crt: Permission denied
  403. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  404. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  405. [root@instance-1 certs]# apache restart
  406. bash: apache: command not found
  407. [root@instance-1 certs]# service httpd restart
  408. Redirecting to /bin/systemctl restart httpd.service
  409. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  410. [root@instance-1 certs]# systemctl status httpd.service
  411. ● httpd.service - The Apache HTTP Server
  412.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  413.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:14:05 UTC; 10s ago
  414.     Docs: man:httpd(8)
  415.           man:apachectl(8)
  416.  Process: 3815 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  417.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  418.  Process: 3814 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  419. Main PID: 3814 (code=exited, status=1/FAILURE)
  420.  
  421. Feb 18 19:14:04 instance-1 systemd[1]: Stopped The Apache HTTP Server.
  422. Feb 18 19:14:04 instance-1 systemd[1]: Starting The Apache HTTP Server...
  423. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  424. Feb 18 19:14:05 instance-1 kill[3815]: kill: cannot find process ""
  425. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  426. Feb 18 19:14:05 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  427. Feb 18 19:14:05 instance-1 systemd[1]: Unit httpd.service entered failed state.
  428. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service failed.
  429. [root@instance-1 certs]# cd /etc/pki/tls/private
  430. [root@instance-1 private]# ls
  431. localhost.key
  432. [root@instance-1 private]# cd /etc/httpd/ssl
  433. [root@instance-1 ssl]# ls
  434. cmshosting_xyz.csr  cmshosting_xyz.key
  435. [root@instance-1 ssl]# mv * /etc/pki/tls/private
  436. [root@instance-1 ssl]# ls
  437. [root@instance-1 ssl]# cd /etc/pki/tls/private
  438. [root@instance-1 private]# ls
  439. cmshosting_xyz.csr  cmshosting_xyz.key  localhost.key
  440. [root@instance-1 private]# nano /etc/httpd/conf.d/ssl.conf
  441. [root@instance-1 private]# cd /etc/pki/tls/certs
  442. [root@instance-1 certs]# ls
  443. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  444. [root@instance-1 certs]# service httpd start
  445. Redirecting to /bin/systemctl start httpd.service
  446. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  447. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  448. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  449. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  450. [root@instance-1 certs]#
  451. [root@instance-1 certs]# service httpd start
  452. Redirecting to /bin/systemctl start httpd.service
  453. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  454. [root@instance-1 certs]# systemctl status httpd.service
  455. ● httpd.service - The Apache HTTP Server
  456.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  457.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:30:00 UTC; 8s ago
  458.     Docs: man:httpd(8)
  459.           man:apachectl(8)
  460.  Process: 4106 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  461.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  462.  Process: 4105 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  463. Main PID: 4105 (code=exited, status=1/FAILURE)
  464.  
  465. Feb 18 19:30:00 instance-1 systemd[1]: Starting The Apache HTTP Server...
  466. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  467. Feb 18 19:30:00 instance-1 kill[4106]: kill: cannot find process ""
  468. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  469. Feb 18 19:30:00 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  470. Feb 18 19:30:00 instance-1 systemd[1]: Unit httpd.service entered failed state.
  471. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service failed.
  472. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  473. [root@instance-1 certs]# service httpd restart
  474. Redirecting to /bin/systemctl restart httpd.service
  475. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  476. [root@instance-1 certs]# service httpd start
  477. Redirecting to /bin/systemctl start httpd.service
  478. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  479. [root@instance-1 certs]# systemctl status httpd.service
  480. ● httpd.service - The Apache HTTP Server
  481.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  482.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:35:09 UTC; 6s ago
  483.     Docs: man:httpd(8)
  484.           man:apachectl(8)
  485.  Process: 4195 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  486.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  487.  Process: 4194 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  488. Main PID: 4194 (code=exited, status=1/FAILURE)
  489.  
  490. Feb 18 19:35:09 instance-1 systemd[1]: Starting The Apache HTTP Server...
  491. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  492. Feb 18 19:35:09 instance-1 kill[4195]: kill: cannot find process ""
  493. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  494. Feb 18 19:35:09 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  495. Feb 18 19:35:09 instance-1 systemd[1]: Unit httpd.service entered failed state.
  496. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service failed.
  497. [root@instance-1 certs]# tail /var/log/httpd/error_log
  498. [Tue Feb 18 19:14:05.004452 2020] [ssl:emerg] [pid 3814] AH02312: Fatal error initialising mod_ssl, exiting.
  499. [Tue Feb 18 19:30:00.677680 2020] [core:notice] [pid 4105] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  500. [Tue Feb 18 19:30:00.679064 2020] [suexec:notice] [pid 4105] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  501. [Tue Feb 18 19:30:00.680236 2020] [ssl:emerg] [pid 4105] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  502. [Tue Feb 18 19:35:04.317827 2020] [core:notice] [pid 4173] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  503. [Tue Feb 18 19:35:04.318884 2020] [suexec:notice] [pid 4173] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  504. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  505. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  506. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  507. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  508. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  509. [Tue Feb 18 09:05:04.743639 2020] [php7:error] [pid 25239] [client 5.9.156.121:10466] script '/var/www/html/whmcs/cart.php' not found or unable to stat
  510. [Tue Feb 18 19:30:00.680181 2020] [ssl:warn] [pid 4105] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  511. [Tue Feb 18 19:30:00.680209 2020] [ssl:emerg] [pid 4105] AH02238: Unable to configure RSA server private key
  512. [Tue Feb 18 19:30:00.680232 2020] [ssl:emerg] [pid 4105] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  513. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  514. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  515. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  516. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  517. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  518. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  519. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  520. [root@instance-1 certs]# service httpd restart
  521. Redirecting to /bin/systemctl restart httpd.service
  522. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  523. [root@instance-1 certs]# service httpd restart
  524. Redirecting to /bin/systemctl restart httpd.service
  525. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  526. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  527. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  528. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  529. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  530. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  531. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  532. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  533. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  534. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  535. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  536. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  537. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  538. [root@instance-1 certs]# tail /var/log/httpd/error_log
  539. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  540. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  541. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  542. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  543. [Tue Feb 18 19:42:12.141231 2020] [core:notice] [pid 4315] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  544. [Tue Feb 18 19:42:12.142841 2020] [suexec:notice] [pid 4315] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  545. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  546. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  547. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  548. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  549. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  550. [root@instance-1 certs]# service httpd restart
  551. Redirecting to /bin/systemctl restart httpd.service
  552. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  553. [root@instance-1 certs]# service httpd start
  554. Redirecting to /bin/systemctl start httpd.service
  555. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  556. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  557. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  558. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  559. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  560. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  561. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  562. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  563. [Tue Feb 18 19:45:08.772466 2020] [ssl:emerg] [pid 4393] AH02238: Unable to configure RSA server private key
  564. [Tue Feb 18 19:45:08.772515 2020] [ssl:emerg] [pid 4393] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  565. [Tue Feb 18 19:45:13.324614 2020] [ssl:emerg] [pid 4414] AH02238: Unable to configure RSA server private key
  566. [Tue Feb 18 19:45:13.324659 2020] [ssl:emerg] [pid 4414] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  567. [root@instance-1 certs]# tail /var/log/httpd/error_log
  568. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  569. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  570. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  571. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  572. [Tue Feb 18 19:45:08.763735 2020] [core:notice] [pid 4393] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  573. [Tue Feb 18 19:45:08.764794 2020] [suexec:notice] [pid 4393] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  574. [Tue Feb 18 19:45:08.772521 2020] [ssl:emerg] [pid 4393] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  575. [Tue Feb 18 19:45:13.315449 2020] [core:notice] [pid 4414] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  576. [Tue Feb 18 19:45:13.316577 2020] [suexec:notice] [pid 4414] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  577. [Tue Feb 18 19:45:13.324665 2020] [ssl:emerg] [pid 4414] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  578. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  579.  
  580.  GNU nano 2.3.1                                File: /etc/httpd/conf.d/ssl.conf                                                                      
  581.  
  582. # server does not start, consult the error logs and ensure
  583. # your accelerator is functioning properly.
  584. #
  585. SSLCryptoDevice builtin
  586. #SSLCryptoDevice ubsec
  587.  
  588. ##
  589. ## SSL Virtual Host Context
  590. ##
  591.  
  592. <VirtualHost _default_:443>
  593.  
  594. # General setup for the virtual host, inherited from global configuration
  595. #DocumentRoot "/var/www/html"
  596. ServerName www.cmshosting.xyz
  597.  
  598. # Use separate log files for the SSL virtual host; note that LogLevel
  599. # is not inherited from httpd.conf.
  600. ErrorLog logs/ssl_error_log
  601. TransferLog logs/ssl_access_log
  602. LogLevel warn
  603.  
  604. #   SSL Engine Switch:
  605. #   Enable/Disable SSL for this virtual host.
  606. SSLEngine on
  607.  
  608. #   SSL Protocol support:
  609. # List the enable protocol levels with which clients will be able to
  610. # connect.  Disable SSLv2 access by default:
  611. SSLProtocol all -SSLv2 -SSLv3
  612.  
  613. #   SSL Cipher Suite:
  614. #   List the ciphers that the client is permitted to negotiate.
  615. #   See the mod_ssl documentation for a complete list.
  616. SSLCipherSuite HIGH:3DES:!aNULL:!MD5:!SEED:!IDEA
  617.  
  618. #   Speed-optimized SSL Cipher configuration:
  619. #   If speed is your main concern (on busy HTTPS servers e.g.),
  620. #   you might want to force clients to specific, performance
  621. #   optimized ciphers. In this case, prepend those ciphers
  622. #   to the SSLCipherSuite list, and enable SSLHonorCipherOrder.
  623. #   Caveat: by giving precedence to RC4-SHA and AES128-SHA
  624. #   (as in the example below), most connections will no longer
  625. #   have perfect forward secrecy - if the server's key is
  626. #   compromised, captures of past or future traffic must be
  627. #   considered compromised, too.
  628. #SSLCipherSuite RC4-SHA:AES128-SHA:HIGH:MEDIUM:!aNULL:!MD5
  629. #SSLHonorCipherOrder on
  630.  
  631. #   Server Certificate:
  632. # Point SSLCertificateFile at a PEM encoded certificate.  If
  633. # the certificate is encrypted, then you will be prompted for a
  634. # pass phrase.  Note that a kill -HUP will prompt again.  A new
  635. # certificate can be generated using the genkey(1) command.
  636. SSLCertificateFile /etc/pki/tls/certs/www_cmshosting_xyz.crt
  637.  
  638. #   Server Private Key:
  639. #   If the key is not combined with the certificate, use this
  640. #   directive to point at the key file.  Keep in mind that if
  641. #   you've both a RSA and a DSA private key you can configure
  642. #   both in parallel (to also allow the use of DSA ciphers, etc.)
  643. SSLCertificateKeyFile  /etc/pki/tls/private/cmshosting_xyz.key
  644.  
  645. #   Server Certificate Chain:
  646. #   Point SSLCertificateChainFile at a file containing the
  647. #   concatenation of PEM encoded CA certificates which form the
  648. #   certificate chain for the server certificate. Alternatively
  649. #   the referenced file can be the same as SSLCertificateFile
  650. #   when the CA certificates are directly appended to the server
  651. #   certificate for convinience.
  652. SSLCertificateChainFile /etc/pki/tls/certs/ca-bundle.crt
  653.  
  654. #   Certificate Authority (CA):
  655. #   Set the CA certificate verification path where to find CA
  656. #   certificates for client authentication or alternatively one
  657. #   huge file containing all of them (file must be PEM encoded)
  658. #SSLCACertificateFile /etc/pki/tls/certs/www_cmshosting_xyz.ca-bundle
  659.  
  660. #   Client Authentication (Type):
  661. #   Client certificate verification type and depth.  Types are
  662. #   none, optional, require and optional_no_ca.  Depth is a
  663. #   number which specifies how deeply to verify the certificate
  664. #   issuer chain before deciding the certificate is not valid.
  665. #SSLVerifyClient require
  666. #SSLVerifyDepth  10
  667.  
  668. #   Access Control:
  669. #   With SSLRequire you can do per-directory access control based
  670. #   on arbitrary complex boolean expressions containing server
  671. #   variable checks and other lookup directives.  The syntax is a
  672. #   mixture between C and Perl.  See the mod_ssl documentation
  673. #   for more details.
  674. #<Location />
  675. #SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
  676. #            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
  677. #            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
  678. #            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
  679. #            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
  680. #           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
  681. #</Location>
  682.  
  683. #   SSL Engine Options:
  684. #   Set various options for the SSL engine.
  685. #   o FakeBasicAuth:
  686. #     Translate the client X.509 into a Basic Authorisation.  This means that
  687. #     the standard Auth/DBMAuth methods can be used for access control.  The
  688. #     user name is the `one line' version of the client's X.509 certificate.
  689. #     Note that no password is obtained from the user. Every entry in the user
  690. #     file needs this password: `xxj31ZMTZzkVA'.
  691. #   o ExportCertData:
  692. #     This exports two additional environment variables: SSL_CLIENT_CERT and
  693. #     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
  694. #     server (always existing) and the client (only existing when client
  695. #     authentication is used). This can be used to import the certificates
  696. #     into CGI scripts.
  697. #   o StdEnvVars:
  698. #     This exports the standard SSL/TLS related `SSL_*' environment variables.
  699. #     Per default this exportation is switched off for performance reasons,
  700. #     because the extraction step is an expensive operation and is usually
  701. #     useless for serving static content. So one usually enables the
  702. #     exportation for CGI and SSI requests only.
  703. #   o StrictRequire:
  704. #     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
  705. #     under a "Satisfy any" situation, i.e. when it applies access is denied
  706. #     and no other module can change it.
  707. #   o OptRenegotiate:
  708. #     This enables optimized SSL connection renegotiation handling when SSL
  709. #     directives are used in per-directory context.
  710. #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
  711. <Files ~ "\.(cgi|shtml|phtml|php3?)$">
  712.     SSLOptions +StdEnvVars
  713. </Files>
  714. <Directory "/var/www/cgi-bin">
  715.     SSLOptions +StdEnvVars
  716. </Directory>
  717.  
  718. #   SSL Protocol Adjustments:
  719. Last login: Mon Feb 17 11:24:02 on ttys000
  720. npm WARN npm npm does not support Node.js v7.2.0
  721. npm WARN npm You should probably upgrade to a newer version of node as we
  722. npm WARN npm can't make any promises that npm will work with this version.
  723. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13, 14.
  724. npm WARN npm You can find the latest version at https://nodejs.org/
  725.  
  726. The default interactive shell is now zsh.
  727. To update your account to use zsh, please run `chsh -s /bin/zsh`.
  728. For more details, please visit https://support.apple.com/kb/HT208050.
  729. Matthews-MacBook-Pro:~ mmurphy$ ssh cmshosting.xyZ
  730. Enter passphrase for key '/Users/mmurphy/.ssh/id_rsa':
  731. Last login: Tue Feb 18 05:12:38 2020 from 107-192-115-129.lightspeed.frokca.sbcglobal.net
  732. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763. [mmurphy@instance-1 ~]$ nano /etc/httpd/conf.d/ssl.conf
  764. [mmurphy@instance-1 ~]$ sudo su
  765. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  766. cmshosting_xyz.csr  cmshosting_xyz.key  
  767. [root@instance-1 mmurphy]# nano /etc/httpd/ssl/cmshosting_xyz.
  768. cmshosting_xyz.csr  cmshosting_xyz.key  
  769. [root@instance-1 mmurphy]# nano /etc/httpd/conf.d/ssl.conf
  770. [root@instance-1 mmurphy]# cd /var/www/html/
  771. [root@instance-1 html]# ls
  772. admin                 banned.php             dist.loghandler.php  includes           modules               serverstatus.php    viewemail.php
  773. affiliates.php        bundle.crt             dl.php               index.php          networkissues.php     status              viewinvoice.php
  774. aff.php               cart.php               documentation        info.php           networkissuesrss.php  submitticket.php    viewquote.php
  775. announcements.php     clientarea.php         dologin.php          init.php           node_modules          supporttickets.php  viewticket.php
  776. announcementsrss.php  configuration.php      domainchecker.php    knowledgebase.php  oauth                 templates           whmcs
  777. antler                configuration.php.new  downloads            lang               pipe                  templates_c         whois.php
  778. Archive               configuressl.php       downloads.php        link.php           pwreset.php           unsubscribe.php
  779. archive.zip?dl=0      contact.php            EULA.txt             login.php          README.txt            upgrade.php
  780. assets                creditcard.php         feeds                logout.php         register.php          uppy
  781. attachments           crons                  hubspot.php          media              resources             vendor
  782. [root@instance-1 html]# rm archive.zip\?dl\=0
  783. rm: remove regular file ‘archive.zip?dl=0’? y
  784. [root@instance-1 html]# nano /etc/httpd/conf.d
  785. [root@instance-1 html]# cd  /etc/httpd/conf.d
  786. [root@instance-1 conf.d]# ls
  787. autoindex.conf  php.conf  README  ssl.conf  userdir.conf  welcome.conf
  788. [root@instance-1 conf.d]# cd ..
  789. [root@instance-1 httpd]# ls
  790. conf  conf.d  conf.modules.d  logs  modules  run  ssl
  791. [root@instance-1 httpd]# cd ssl/
  792. [root@instance-1 ssl]# ls
  793. cmshosting_xyz.csr  cmshosting_xyz.key
  794. [root@instance-1 ssl]# pwd
  795. /etc/httpd/ssl
  796. [root@instance-1 ssl]# /etc/httpd/ssl/cmshosting_xyz.key
  797. bash: /etc/httpd/ssl/cmshosting_xyz.key: Permission denied
  798. [root@instance-1 ssl]# locate www_cms
  799. bash: locate: command not found
  800. [root@instance-1 ssl]# updatedb
  801. bash: updatedb: command not found
  802. [root@instance-1 ssl]# cd /etc/pki/tls/certs/
  803. [root@instance-1 certs]# ls
  804. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  805. [root@instance-1 certs]# /etc/pki/tls/certs/www_cmshosting_xyz.crt
  806. bash: /etc/pki/tls/certs/www_cmshosting_xyz.crt: Permission denied
  807. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  808. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  809. [root@instance-1 certs]# apache restart
  810. bash: apache: command not found
  811. [root@instance-1 certs]# service httpd restart
  812. Redirecting to /bin/systemctl restart httpd.service
  813. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  814. [root@instance-1 certs]# systemctl status httpd.service
  815. ● httpd.service - The Apache HTTP Server
  816.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  817.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:14:05 UTC; 10s ago
  818.     Docs: man:httpd(8)
  819.           man:apachectl(8)
  820.  Process: 3815 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  821.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  822.  Process: 3814 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  823. Main PID: 3814 (code=exited, status=1/FAILURE)
  824.  
  825. Feb 18 19:14:04 instance-1 systemd[1]: Stopped The Apache HTTP Server.
  826. Feb 18 19:14:04 instance-1 systemd[1]: Starting The Apache HTTP Server...
  827. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  828. Feb 18 19:14:05 instance-1 kill[3815]: kill: cannot find process ""
  829. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  830. Feb 18 19:14:05 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  831. Feb 18 19:14:05 instance-1 systemd[1]: Unit httpd.service entered failed state.
  832. Feb 18 19:14:05 instance-1 systemd[1]: httpd.service failed.
  833. [root@instance-1 certs]# cd /etc/pki/tls/private
  834. [root@instance-1 private]# ls
  835. localhost.key
  836. [root@instance-1 private]# cd /etc/httpd/ssl
  837. [root@instance-1 ssl]# ls
  838. cmshosting_xyz.csr  cmshosting_xyz.key
  839. [root@instance-1 ssl]# mv * /etc/pki/tls/private
  840. [root@instance-1 ssl]# ls
  841. [root@instance-1 ssl]# cd /etc/pki/tls/private
  842. [root@instance-1 private]# ls
  843. cmshosting_xyz.csr  cmshosting_xyz.key  localhost.key
  844. [root@instance-1 private]# nano /etc/httpd/conf.d/ssl.conf
  845. [root@instance-1 private]# cd /etc/pki/tls/certs
  846. [root@instance-1 certs]# ls
  847. ca-bundle.crt  ca-bundle.trust.crt  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert  www_cmshosting_xyz.ca-bundle  www_cmshosting_xyz.crt
  848. [root@instance-1 certs]# service httpd start
  849. Redirecting to /bin/systemctl start httpd.service
  850. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  851. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  852. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  853. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  854. [root@instance-1 certs]#
  855. [root@instance-1 certs]# service httpd start
  856. Redirecting to /bin/systemctl start httpd.service
  857. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  858. [root@instance-1 certs]# systemctl status httpd.service
  859. ● httpd.service - The Apache HTTP Server
  860.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  861.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:30:00 UTC; 8s ago
  862.     Docs: man:httpd(8)
  863.           man:apachectl(8)
  864.  Process: 4106 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  865.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  866.  Process: 4105 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  867. Main PID: 4105 (code=exited, status=1/FAILURE)
  868.  
  869. Feb 18 19:30:00 instance-1 systemd[1]: Starting The Apache HTTP Server...
  870. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  871. Feb 18 19:30:00 instance-1 kill[4106]: kill: cannot find process ""
  872. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  873. Feb 18 19:30:00 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  874. Feb 18 19:30:00 instance-1 systemd[1]: Unit httpd.service entered failed state.
  875. Feb 18 19:30:00 instance-1 systemd[1]: httpd.service failed.
  876. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  877. [root@instance-1 certs]# service httpd restart
  878. Redirecting to /bin/systemctl restart httpd.service
  879. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  880. [root@instance-1 certs]# service httpd start
  881. Redirecting to /bin/systemctl start httpd.service
  882. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  883. [root@instance-1 certs]# systemctl status httpd.service
  884. ● httpd.service - The Apache HTTP Server
  885.   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  886.   Active: failed (Result: exit-code) since Tue 2020-02-18 19:35:09 UTC; 6s ago
  887.     Docs: man:httpd(8)
  888.           man:apachectl(8)
  889.  Process: 4195 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  890.  Process: 11686 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
  891.  Process: 4194 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
  892. Main PID: 4194 (code=exited, status=1/FAILURE)
  893.  
  894. Feb 18 19:35:09 instance-1 systemd[1]: Starting The Apache HTTP Server...
  895. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
  896. Feb 18 19:35:09 instance-1 kill[4195]: kill: cannot find process ""
  897. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service: control process exited, code=exited status=1
  898. Feb 18 19:35:09 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
  899. Feb 18 19:35:09 instance-1 systemd[1]: Unit httpd.service entered failed state.
  900. Feb 18 19:35:09 instance-1 systemd[1]: httpd.service failed.
  901. [root@instance-1 certs]# tail /var/log/httpd/error_log
  902. [Tue Feb 18 19:14:05.004452 2020] [ssl:emerg] [pid 3814] AH02312: Fatal error initialising mod_ssl, exiting.
  903. [Tue Feb 18 19:30:00.677680 2020] [core:notice] [pid 4105] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  904. [Tue Feb 18 19:30:00.679064 2020] [suexec:notice] [pid 4105] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  905. [Tue Feb 18 19:30:00.680236 2020] [ssl:emerg] [pid 4105] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  906. [Tue Feb 18 19:35:04.317827 2020] [core:notice] [pid 4173] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  907. [Tue Feb 18 19:35:04.318884 2020] [suexec:notice] [pid 4173] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  908. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  909. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  910. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  911. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  912. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  913. [Tue Feb 18 09:05:04.743639 2020] [php7:error] [pid 25239] [client 5.9.156.121:10466] script '/var/www/html/whmcs/cart.php' not found or unable to stat
  914. [Tue Feb 18 19:30:00.680181 2020] [ssl:warn] [pid 4105] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  915. [Tue Feb 18 19:30:00.680209 2020] [ssl:emerg] [pid 4105] AH02238: Unable to configure RSA server private key
  916. [Tue Feb 18 19:30:00.680232 2020] [ssl:emerg] [pid 4105] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  917. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  918. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  919. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  920. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  921. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  922. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  923. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  924. [root@instance-1 certs]# service httpd restart
  925. Redirecting to /bin/systemctl restart httpd.service
  926. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  927. [root@instance-1 certs]# service httpd restart
  928. Redirecting to /bin/systemctl restart httpd.service
  929. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  930. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  931. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  932. [Tue Feb 18 19:35:04.326416 2020] [ssl:warn] [pid 4173] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  933. [Tue Feb 18 19:35:04.326454 2020] [ssl:emerg] [pid 4173] AH02238: Unable to configure RSA server private key
  934. [Tue Feb 18 19:35:04.326477 2020] [ssl:emerg] [pid 4173] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  935. [Tue Feb 18 19:35:09.362873 2020] [ssl:warn] [pid 4194] AH01909: RSA certificate configured for instance-1.us-west2-a.c.whmcs-260607.internal:443 does NOT include an ID which matches the server name
  936. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  937. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  938. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  939. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  940. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  941. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  942. [root@instance-1 certs]# tail /var/log/httpd/error_log
  943. [Tue Feb 18 19:35:04.326483 2020] [ssl:emerg] [pid 4173] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  944. [Tue Feb 18 19:35:09.354673 2020] [core:notice] [pid 4194] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  945. [Tue Feb 18 19:35:09.355758 2020] [suexec:notice] [pid 4194] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  946. [Tue Feb 18 19:35:09.362930 2020] [ssl:emerg] [pid 4194] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  947. [Tue Feb 18 19:42:12.141231 2020] [core:notice] [pid 4315] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  948. [Tue Feb 18 19:42:12.142841 2020] [suexec:notice] [pid 4315] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  949. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  950. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  951. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  952. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  953. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  954. [root@instance-1 certs]# service httpd restart
  955. Redirecting to /bin/systemctl restart httpd.service
  956. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  957. [root@instance-1 certs]# service httpd start
  958. Redirecting to /bin/systemctl start httpd.service
  959. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  960. [root@instance-1 certs]# tail /var/log/httpd/ssl_error_log
  961. [Tue Feb 18 19:35:09.362904 2020] [ssl:emerg] [pid 4194] AH02238: Unable to configure RSA server private key
  962. [Tue Feb 18 19:35:09.362926 2020] [ssl:emerg] [pid 4194] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  963. [Tue Feb 18 19:42:12.150805 2020] [ssl:emerg] [pid 4315] AH02238: Unable to configure RSA server private key
  964. [Tue Feb 18 19:42:12.150866 2020] [ssl:emerg] [pid 4315] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  965. [Tue Feb 18 19:42:33.869951 2020] [ssl:emerg] [pid 4336] AH02238: Unable to configure RSA server private key
  966. [Tue Feb 18 19:42:33.869995 2020] [ssl:emerg] [pid 4336] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  967. [Tue Feb 18 19:45:08.772466 2020] [ssl:emerg] [pid 4393] AH02238: Unable to configure RSA server private key
  968. [Tue Feb 18 19:45:08.772515 2020] [ssl:emerg] [pid 4393] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  969. [Tue Feb 18 19:45:13.324614 2020] [ssl:emerg] [pid 4414] AH02238: Unable to configure RSA server private key
  970. [Tue Feb 18 19:45:13.324659 2020] [ssl:emerg] [pid 4414] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  971. [root@instance-1 certs]# tail /var/log/httpd/error_log
  972. [Tue Feb 18 19:42:12.150885 2020] [ssl:emerg] [pid 4315] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  973. [Tue Feb 18 19:42:33.862057 2020] [core:notice] [pid 4336] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  974. [Tue Feb 18 19:42:33.863086 2020] [suexec:notice] [pid 4336] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  975. [Tue Feb 18 19:42:33.870001 2020] [ssl:emerg] [pid 4336] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  976. [Tue Feb 18 19:45:08.763735 2020] [core:notice] [pid 4393] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  977. [Tue Feb 18 19:45:08.764794 2020] [suexec:notice] [pid 4393] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  978. [Tue Feb 18 19:45:08.772521 2020] [ssl:emerg] [pid 4393] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  979. [Tue Feb 18 19:45:13.315449 2020] [core:notice] [pid 4414] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
  980. [Tue Feb 18 19:45:13.316577 2020] [suexec:notice] [pid 4414] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
  981. [Tue Feb 18 19:45:13.324665 2020] [ssl:emerg] [pid 4414] AH02311: Fatal error initialising mod_ssl, exiting. See /etc/httpd/logs/ssl_error_log for more information
  982. [root@instance-1 certs]# nano /etc/httpd/conf.d/ssl.conf
  983.  
  984.  GNU nano 2.3.1                                File: /etc/httpd/conf.d/ssl.conf                                                                      
  985.  
  986.  
  987. #   SSL Protocol Adjustments:
  988. #   The safe and default but still SSL/TLS standard compliant shutdown
  989. #   approach is that mod_ssl sends the close notify alert but doesn't wait for
  990. #   the close notify alert from client. When you need a different shutdown
  991. #   approach you can use one of the following variables:
  992. #   o ssl-unclean-shutdown:
  993. #     This forces an unclean shutdown when the connection is closed, i.e. no
  994. #     SSL close notify alert is send or allowed to received.  This violates
  995. #     the SSL/TLS standard but is needed for some brain-dead browsers. Use
  996. #     this when you receive I/O errors because of the standard approach where
  997. #     mod_ssl sends the close notify alert.
  998. #   o ssl-accurate-shutdown:
  999. #     This forces an accurate shutdown when the connection is closed, i.e. a
  1000. #     SSL close notify alert is send and mod_ssl waits for the close notify
  1001. #     alert of the client. This is 100% SSL/TLS standard compliant, but in
  1002. #     practice often causes hanging connections with brain-dead browsers. Use
  1003. #     this only for browsers where you know that their SSL implementation
  1004. #     works correctly.
  1005. #   Notice: Most problems of broken clients are also related to the HTTP
  1006. #   keep-alive facility, so you usually additionally want to disable
  1007. #   keep-alive for those clients, too. Use variable "nokeepalive" for this.
  1008. #   Similarly, one has to force some clients to use HTTP/1.0 to workaround
  1009. #   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
  1010. #   "force-response-1.0" for this.
  1011. BrowserMatch "MSIE [2-5]" \
  1012.          nokeepalive ssl-unclean-shutdown \
  1013.          downgrade-1.0 force-response-1.0
  1014.  
  1015. #   Per-Server Logging:
  1016. #   The home of a custom SSL log file. Use this when you want a
  1017. #   compact non-error SSL logfile on a virtual host basis.
  1018. CustomLog logs/ssl_request_log \
  1019.           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  1020.  
  1021. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement