This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Can't run mod_ssl?
#1
Can't run mod_ssl?
Hello, whenever I enmod mod_ssl, it gives me this error in apache:

Code:
[Wed Apr 26 08:17:59.453103 2017] [:notice] [pid 6518] mod_bw : Memory Allocated 0 bytes (each conf takes 48 bytes)
[Wed Apr 26 08:17:59.453188 2017] [:notice] [pid 6518] mod_bw : Version 0.92 - Initialized [0 Confs]
[Wed Apr 26 08:17:59.479391 2017] [mpm_prefork:notice] [pid 6518] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Wed Apr 26 08:17:59.479428 2017] [core:notice] [pid 6518] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 26 08:20:31.250667 2017] [mpm_prefork:notice] [pid 6518] AH00169: caught SIGTERM, shutting down
[Wed Apr 26 08:20:32.340331 2017] [:notice] [pid 6616] mod_bw : Memory Allocated 0 bytes (each conf takes 48 bytes)
[Wed Apr 26 08:20:32.340426 2017] [:notice] [pid 6616] mod_bw : Version 0.92 - Initialized [0 Confs]
[Wed Apr 26 08:20:32.368202 2017] [mpm_prefork:notice] [pid 6616] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Wed Apr 26 08:20:32.368236 2017] [core:notice] [pid 6616] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 26 08:20:44.756913 2017] [mpm_prefork:notice] [pid 6616] AH00169: caught SIGTERM, shutting down
[Wed Apr 26 08:20:45.853162 2017] [ssl:emerg] [pid 6671] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
[Wed Apr 26 08:20:45.853234 2017] [ssl:emerg] [pid 6671] AH02312: Fatal error initialising mod_ssl, exiting.

What am I doing wrong? I followed the instructions here: http://docs.sentora.org/?node=21 but to no avail. Can I edit the global conf for sentora?

Further, now when I dismod mod_ssl, i get the following:

Code:
root@ohioiproject:/var/log/apache2# a2dismod ssl
Module ssl disabled.
To activate the new configuration, you need to run:
 service apache2 restart
root@ohioiproject:/var/log/apache2# service apache2 restart
* Restarting web server apache2                                                                                                                                                 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/sentora/configs/apache/httpd-vhosts.conf:32
AH00526: Syntax error on line 34 of /etc/sentora/configs/apache/httpd-vhosts.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.

And the log follows up with:

Code:
[Wed Apr 26 08:20:32.368202 2017] [mpm_prefork:notice] [pid 6616] AH00163: Apache/2.4.7 (Ubuntu) configured -- resuming normal operations
[Wed Apr 26 08:20:32.368236 2017] [core:notice] [pid 6616] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 26 08:20:44.756913 2017] [mpm_prefork:notice] [pid 6616] AH00169: caught SIGTERM, shutting down
[Wed Apr 26 08:20:45.853162 2017] [ssl:emerg] [pid 6671] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
[Wed Apr 26 08:20:45.853234 2017] [ssl:emerg] [pid 6671] AH02312: Fatal error initialising mod_ssl, exiting.

But that makes it seem like I didn't disable mod_ssl! But as you can see from the terminal above, I did! Please help, if you can. Anything is greatly appreciated. 



WARNING TO THE ADMINS WHO MIGHT OFFER HELP: I HAVE UPDATED THE SERVER TO PHP7.0 AND CONFIRMED EVERYTHING SECURE AND WORKING, I UNDERSTAND THIS MAY AFFECT THE WAY THE PROGRAM WORKS AND ACCEPT THAT ANY HELP YOU MAY GIVE MAY CORRUPT, DESTROY, OR EFFECT PARTS OF MY SERVER IN WAYS THAT YOU DID NOT INTEND TO DO, AND THE BLAME FOR DOING SO LIES SQUARELY ON MY SHOULDERS IF I BREAK SOMETHING.

Addendum: The line it seems to dislike (line 34) is:

Code:
<virtualhost *:443>

from the Sentora-generated vhost file, this is the whole thing:

Code:
# DOMAIN: ohioiproject.co.uk
<virtualhost *:443>
ServerName ohioiproject.co.uk
ServerAlias  www.ohioiproject.co.uk
ServerAdmin admin@ohioiproject.co.uk
DocumentRoot "/var/sentora/hostdata/ohioipro/public_html/ohioiproject_co_uk"
php_admin_value open_basedir "/var/sentora/hostdata/ohioipro/public_html/ohioiproject_co_uk:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_clos$
ErrorLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-error.log"
CustomLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-access.log" combined
CustomLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-bandwidth.log" common
<Directory "/var/sentora/hostdata/ohioipro/public_html/ohioiproject_co_uk">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php

ErrorLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-error.log"
CustomLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-access.log" combined
CustomLog "/var/sentora/logs/domains/ohioipro/ohioiproject.co.uk-bandwidth.log" common
<Directory "/var/sentora/hostdata/ohioipro/public_html/ohioiproject_co_uk">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 404 /_errorpages/404.html
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 500 /_errorpages/500.html
ErrorDocument 403 /_errorpages/403.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)

</virtualhost>

Hope this helps in any way shape or form.
Reply
Thanks given by:


Messages In This Thread
Can't run mod_ssl? - by jstacklin - 04-26-2017, 10:29 PM
RE: Can't run mod_ssl? - by TGates - 04-28-2017, 05:29 AM
RE: Can't run mod_ssl? - by jstacklin - 04-28-2017, 05:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
apt-get install mod_ssl ERROR CMs222 9 25 ,908 11-11-2022, 09:14 PM
Last Post: zustudios

Forum Jump:


Users browsing this thread: 1 Guest(s)