Author |
|
shashi.kumar@gmail.com
Joined: 15 Jan 2013 Posts: 8 Location: India
|
Posted: Sat 19 Jan '13 22:30 Post subject: How to install mod_ssl |
|
|
Hi,
I have a problem and require help from Froum members.
I have installed Apache 2.2.23 on RHEL 64 bit, but missed to enable ssl at time of ./config. Now i have enable SSL, Can someone please tell me how to install mod_ssl now?
Thanks in advance.
Shashi |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Sun 20 Jan '13 5:28 Post subject: |
|
|
I just configured my Apache server to run SSL. Here are the steps I did that will answer your question:
Open up conf\httpd.conf in a text editor and look for the line:
LoadModule ssl_module modules/mod_ssl.so and remove any pound sign (#) characters preceding it.
Include conf/extra/httpd-ssl.conf and remove any pound sign (#) characters preceding it.
Hope this gets you up and running.
- S |
|
Back to top |
|
shashi.kumar@gmail.com
Joined: 15 Jan 2013 Posts: 8 Location: India
|
Posted: Sun 20 Jan '13 10:37 Post subject: |
|
|
Hi,
Thanks, But the problem is i dont have mod_ssl.so, since i didnt compiled it by using --enable=ssl at the time i was compiling Apache, So now i want to compile and mod_ssl.so,Now the Apache is installed but without mod_ssl. Is there a way to intall it now. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Sun 20 Jan '13 20:18 Post subject: |
|
|
I am more of a Windows person, and have only configured and installed Apache in a Unix/Linux environment on my MAC (versus RHEL) a couple of times, I am going to speculate that if you ./configure without the SSL option enabled, you will probably have to re-configure and install Apache with the SSL option enabled to accomplish what you are trying to do. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 20 Jan '13 23:07 Post subject: |
|
|
shashi.kumar@gmail.com wrote: | Hi,
Thanks, But the problem is i dont have mod_ssl.so, since i didnt compiled it by using --enable=ssl at the time i was compiling Apache, So now i want to compile and mod_ssl.so,Now the Apache is installed but without mod_ssl. Is there a way to intall it now. |
If you compile it with ssl, you can load mod_ssl.so like all other so file. DnvrSysEngr is right, you have to recompile it if you want to use the self compiled version and not the distro one. |
|
Back to top |
|
shashi.kumar@gmail.com
Joined: 15 Jan 2013 Posts: 8 Location: India
|
Posted: Tue 22 Jan '13 17:09 Post subject: |
|
|
Thanks James,
In that case, i guess i need to recompile apache. Can you please provide me ./config command which isntalls all the possible modules in apache 2.2.23 or do i have mention every module specifically?
This will help me avoid this sort of issue's in future.
Note: I am trying to uninstall and install back on rhel 64 bit
Thanks,
Shashi. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 22 Jan '13 17:50 Post subject: |
|
|
it has been a long while since I compiled apache 2.2 on linux.
I don't use ./config, but ./configure. ./configure --help should show all options.
I used to use --all=shared (maybe it was --enable-mods-shared=all )so I can load only the needed modules and did not had to worry not having a module when needed And I also had to enable ssl option extra on the configure script. Can't remember how the options named. See the --help option.
Since you already compile apache yourself you could compile the current 2.4.x yourself.
I wrote a how to for it. Take also a look at the comments.
I recommend to use apache 2.4 |
|
Back to top |
|
shashi.kumar@gmail.com
Joined: 15 Jan 2013 Posts: 8 Location: India
|
Posted: Tue 22 Jan '13 18:14 Post subject: |
|
|
Thanks a Lot again James, I read your article, it is great.
Can you also provide some tips on uninstalling now on RHEL.
Note: I had installed it from source.
There is no make uninstall or make deinstall in the make file
Thanks,
Shashi |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 22 Jan '13 18:26 Post subject: |
|
|
Code: | sudo make deinstall |
or
Code: | sudo make uninstall |
in the source directory. |
|
Back to top |
|
mrjules44
Joined: 13 Oct 2016 Posts: 1 Location: Reston, VA
|
Posted: Thu 13 Oct '16 16:21 Post subject: |
|
|
Hi Shashi,
I have Apache Server 2.2.15 installed on RHEL 6.8 (64-bit).
To solve the issue of missing mod_ssl, I ran command: "yum search all mod_ssl"
Which output "mod_ssl.x86_64"
Then, to install this available library, I ran "yum install mod_ssl.x86_64"
Then, I restarted Apache Server and presto - Apache Server with SSL!
Reference: http://stackoverflow.com/questions/19646150/installing-mod-ssl-amazon-linux/21781886#21781886 |
|
Back to top |
|