{"id":352,"date":"2007-12-10T09:37:03","date_gmt":"2007-12-10T08:37:03","guid":{"rendered":"http:\/\/www.dotmana.com\/index.php\/?p=352"},"modified":"2007-12-10T09:37:03","modified_gmt":"2007-12-10T08:37:03","slug":"apache2-ssl-ubuntu-error-12263","status":"publish","type":"post","link":"http:\/\/www.dotmana.com\/weblog\/2007\/12\/apache2-ssl-ubuntu-error-12263\/","title":{"rendered":"Apache2 + SSL + Ubuntu : error 12263"},"content":{"rendered":"<p>When you apt-get apache2 and activate ssl, you get this strange error &#8220;-12263&#8221;.<\/p>\n<p>Thanks to theatons.com where I found the solution.<br \/>\nThe apt-get installation is indeed incomplete, you have to continue the process to make SSL effective :<\/p>\n<blockquote><p>wget \u00a0<a title=\"apache2-ssl.tar.gz\" id=\"p351\" href=\"http:\/\/www.dotmana.com\/index.php\/apache2-ssltar.gz\">apache2-ssl.tar.gz<br \/>\n<\/a>tar xzvf apache2-ssl.tar.gz<br \/>\nsudo mv ssleay.cnf \/usr\/share\/apache2\/<br \/>\nsudo mv apache2-ssl-certificate \/usr\/bin\/<br \/>\nsudo mkdir \/etc\/apache2\/ssl<br \/>\nsudo apache2-ssl-certificate<\/p><\/blockquote>\n<p>Then, you need to enable SSL in your apache config files :<\/p>\n<blockquote><p>sudo a2enmod ssl<br \/>\nsudo ln -s \/etc\/apache2\/sites-available\/ssl \/etc\/apache2\/sites-enabled\/ssl<br \/>\nsudo cp \/etc\/apache2\/sites-available\/default \/etc\/apache2\/sites-available\/ssl<\/p>\n<p>sudo gedit \/etc\/apache2\/sites-available\/ssl<\/p>\n<blockquote><p>NameVirtualHost *:443<\/p>\n<p><virtualhost *:443><br \/>\nServerAdmin webmaster@localhost<\/p>\n<p>SSLEngine On<br \/>\nSSLCertificateFile \/etc\/apache2\/ssl\/apache.pem<\/p>\n<p>DocumentRoot \/var\/www\/<br \/>\n<directory \/><br \/>\nOptions FollowSymLinks<br \/>\nAllowOverride None<br \/>\n<\/directory><\/p>\n<p><directory \/var\/www\/><br \/>\nOptions Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride None<br \/>\nOrder allow,deny<br \/>\nallow from all<br \/>\n# This directive allows us to have apache2&#8217;s default start page<br \/>\n# in \/apache2-default\/, but still have \/ go to the right place<br \/>\n# Commented out for Ubuntu<br \/>\n#RedirectMatch ^\/$ \/apache2-default\/<br \/>\n<\/directory><\/p>\n<p>ScriptAlias \/cgi-bin\/ \/usr\/lib\/cgi-bin\/<br \/>\n<directory \"\/usr\/lib\/cgi-bin\"><br \/>\nAllowOverride None<br \/>\nOptions ExecCGI -MultiViews +SymLinksIfOwnerMatch<br \/>\nOrder allow,deny<br \/>\nAllow from all<br \/>\n<\/directory><\/p>\n<p>ErrorLog \/var\/log\/apache2\/error.log<\/p>\n<p># Possible values include: debug, info, notice, warn, error, crit,<br \/>\n# alert, emerg.<br \/>\nLogLevel warn<\/p>\n<p>CustomLog \/var\/log\/apache2\/access.log combined<br \/>\nServerSignature On<\/p>\n<p>Alias \/doc\/ &#8220;\/usr\/share\/doc\/&#8221;<br \/>\n<directory \"\/usr\/share\/doc\/\"><br \/>\nOptions Indexes MultiViews FollowSymLinks<br \/>\nAllowOverride None<br \/>\nOrder deny,allow<br \/>\nDeny from all<br \/>\nAllow from 127.0.0.0\/255.0.0.0 ::1\/128<br \/>\n<\/directory><\/p>\n<p><\/virtualhost><\/p><\/blockquote>\n<\/blockquote>\n<blockquote><p>sudo gedit \/etc\/apache2\/sites-available\/default<br \/>\nand make sure the following lines say this:<\/p>\n<blockquote><p>NameVirtualHost *:80<br \/>\n<virtualhost *:80><\/p><\/blockquote>\n<p>You will also need to edit sites-available default, and ssl:<\/p>\n<p>sudo gedit \/etc\/apache2\/sites-available\/default<\/p>\n<p>And the same again for the ssl file.<br \/>\nHere you will need to change the section which says \u2018AllowOverride None\u2019 to:<\/p>\n<blockquote><p>AllowOverride All<\/p><\/blockquote>\n<\/blockquote>\n<blockquote><p>Then, reload your config and that&#8217;s all !<\/p><\/blockquote>\n<blockquote><p>\/etc\/init.d\/apache2 force-reload<\/p><\/blockquote>\n<p><a target=\"_blank\" href=\"http:\/\/www.theatons.com\/blog\/2007\/07\/01\/ubuntu-install-php5-mysql-apache2-ssl-pdo-pdo_mysql\/#comment-1603\"> source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you apt-get apache2 and activate ssl, you get this strange error &#8220;-12263&#8221;. 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 \u00a0apache2-ssl.tar.gz &hellip; <a href=\"http:\/\/www.dotmana.com\/weblog\/2007\/12\/apache2-ssl-ubuntu-error-12263\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":0,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dotmana.com\/weblog\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}