When you apt-get apache2 and activate ssl, you get this strange error “-12263”.
Thanks to theatons.com where I found the solution.
The apt-get installation is indeed incomplete, you have to continue the process to make SSL effective :
wget apache2-ssl.tar.gz
tar xzvf apache2-ssl.tar.gz
sudo mv ssleay.cnf /usr/share/apache2/
sudo mv apache2-ssl-certificate /usr/bin/
sudo mkdir /etc/apache2/ssl
sudo apache2-ssl-certificate
Then, you need to enable SSL in your apache config files :
sudo a2enmod ssl
sudo ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/ssl
sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/sslsudo gedit /etc/apache2/sites-available/ssl
NameVirtualHost *:443
ServerAdmin webmaster@localhostSSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pemDocumentRoot /var/www/
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warnCustomLog /var/log/apache2/access.log combined
ServerSignature OnAlias /doc/ “/usr/share/doc/”
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
sudo gedit /etc/apache2/sites-available/default
and make sure the following lines say this:NameVirtualHost *:80
You will also need to edit sites-available default, and ssl:
sudo gedit /etc/apache2/sites-available/default
And the same again for the ssl file.
Here you will need to change the section which says ‘AllowOverride None’ to:AllowOverride All
Then, reload your config and that’s all !
/etc/init.d/apache2 force-reload