RE: [module] SSL_manager [linux]
03-11-2015, 04:09 PM
(This post was last modified: 03-11-2015, 04:22 PM by seenko.)
Quote:Invalid command 'IncludeOptional', perhaps misspelled or defined by a module not included in the server configuration
MarkDark found a fix for it, but I got another error right after, then I kinda fixed it and made this tutorial so people can easily follow, until we get an official fix, at least it worked for me!
Currently using Ubuntu 12.04.5
Instructions below:
Part I
Open the file: /etc/sentora/configs/apache/httpd.conf
Search for this (probably near the last line):
IncludeOptional /etc/sentora/configs/apache/users_ssl/*.conf
Replace it to:
Include /etc/sentora/configs/apache/users_ssl/*.conf
Now try to restart apache:
service apache2 restart
If it said something about TLS and failed to restart, continue to part 2.
If it didn't and apache restarted successfully, you're done here.
Part II
Open the file: /etc/sentora/panel/modules/SSL_manager/code/controller.ext.php
Search for this (around line 180):
$write = "SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2\n";
Replace it to:
$write = "SSLProtocol All -SSLv2 -SSLv3\n";
Now go back to your control panel and remove the SSLs you added, and add them back, so it uses the updated code.
You're DONE!
Don't forget to restart apache!
service apache2 restart
WARNING: Maybe this change to the SSL mode created a security problem, maybe not, I'm not an expert at this, but it worked for me