AWS installing mod_ssl on apache
23,190
Run the command dpkg -S mod_ssl.so
. Chances are that it will display something like:
apache2.2-common: /usr/lib/apache2/modules/mod_ssl.so
It means that mod_ssl
is already installed on your system, as it does not come in a separate package, but it is bundled in apache2.2-common
. Run
a2enmod ssl
to enable it, if it is not already enabled.
Related videos on Youtube
Author by
user1263374
Updated on September 18, 2022Comments
-
user1263374 over 1 year
I tried installing mod_ssl,I used this command
apt-get install mod_ssl
to install but I got an error sayingunable to locate package mod_ssl
.After executing the above command, I got below output
Reading package list.. Done Build dependency tree Reading state information done.. E:unable to locate package mod_ssl
How do I resolve it ?
-
user1263374 over 11 years:Thank you,it worked.I'm trying to install SSL on my ec2,following this post akadia.com/services/ssh_test_certificate.html but struck.In step 5 ,when i type cp server.crt /usr/local/apache/conf/ssl.crt ,i get an error saying no such dir or file.How to resolve this ?
-
teej over 11 yearsThat guide isn't meant for Ubuntu. It is instructing you to copy the server certificate into a folder that does not exist on your machine. You may want to follow linode.com/wiki/index.php/Apache2_SSL_in_Ubuntu or help.ubuntu.com/10.04/serverguide/httpd.html . Make sure to look carefully at what you specify in the configuration file for the SSLCertificateFile and SSLCertificateKeyFile directives, and copy the files into the right directories, with the right names.