LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-14-2004, 01:04 AM   #1
john lee
Member
 
Registered: Jun 2001
Location: Sydney, Australia
Posts: 42

Rep: Reputation: 15
Confusion in directory in Apache SSL installation


Hi everyone,

I have been using Apache for a while but this is the first time I installed Apache 1.3.33 and OpenSSL 0.9.7d and I have got into this file location problem resulting in compilation errors when running "make" in Apache.

Can anyone please give me a hint of what I have done wrong?

Thanks in advance.

*** OPENSSL

#cd /usr/src
#gunzip < /home/openssl-0.9.7d.tar.gz | tar xvf -
#cd /usr/src/openssl-0.9.7d
#./config --prefix=/usr/local
#make
#make test
#make install

*** APACHE + SSL

#cd /usr/src
#gunzip < /home/apache_1.3.33.tar.gz | tar xvf -
#cd /usr/src/apache_1.3.33
#gunzip < /home/u91067/apache_1.3.33+ssl_1.55.tar.gz | tar xvf -
#patch -p1 < SSLpatch

SSL related variables in a file called Configuration located in /usr/src/apache_1.3.33/src

SSL_BASE=/usr/src/openssl-0.9.7d <== Anything wrong here???
SSL_INCLUDE= -I$(SSL_BASE)/include
SSL_CFLAGS= -DAPACHE_SSL
SSL_LIB_DIR=/usr/local/ssl/lib <== Anything wrong here???
SSL_LIBS= -L$(SSL_LIB_DIR) -lssl -lcrypto
SSL_APP_DIR=/usr/local/ssl/bin
SSL_APP=/usr/local/ssl/bin/openssl

*** APACHE

#cd /usr/src/apache_1.3.33
#./configure
#make
...
gcc -DLINUX=22 -DTARGET=\"httpsd\" -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED -DAPACHE_SSL './apaci' -o httpsd buildmark.o modules.o modules/standard/libstandard.a modules/ssl/libssl.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a -lm -lcrypt -lexpat -L/usr/local/ssl/lib -lssl -lcrypto
modules/ssl/libssl.a(apache_ssl.o): In function 'InitCRL':
apache_ssl.o(.text+0x206d): undefined reference to 'X509_STORE_set_flags'
collect2: Id returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory '/usr/src/apache_1.3.33/src'
make[1]: *** [target_static] Error 2
make[1]: Leaving directory '/usr/src/apache_1.3.33'
make: *** [build] Error 2
 
Old 12-14-2004, 02:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Here is what I do whenever I want to compile my apache+ssl and never had a problem with that:
First of all I extract all the tarballs under the same directory (i.e. /tmp)
Configure, install openssl in /usr/local/ssl (Btw use the latest version 0.9.7e for security reasons):
Code:
./config –prefix=/usr/local/ssl
make
make test
make install
Configure mod-ssl (http://www.modssl.org). Also pick the latest version.
Code:
./configure –with-apache=../apache_1.3.33
Finally compile, install apache:
Code:
SSL_BASE=../openssl-0.9.7e ./configure --enable-module=ssl –prefix=/usr/local/apache [--enable-other-options]
As you see, for the apache configure you need the sources of openssl and you must also provide a prefix for apache to be installed.
 
Old 12-15-2004, 11:45 PM   #3
john lee
Member
 
Registered: Jun 2001
Location: Sydney, Australia
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks for your suggestion.

I am actually not installing mod_ssl but OPENSSL, Apache and Apache+SSL.
I was under the impression that this is different from mod_ssl?!

Anyway, I got around the install by not putting the prefix in the OPENSSL installation just ./config

Now, my problem is once I finished running "make install" in the Apache installation,
when I entered "/usr/local/apache/bin/httpsdctl start",
it can back and say "cannot start".

I looked at /usr/local/apache/logs/httpsd_error_log and it says:
mmddyy [crit] Required SSLCacheServerPort missing

When I looked at /usr/local/apache/conf/httpsd.conf, the file does not even contain any SSL directive.
It appears to me that the httpsd.conf file contains just normal Apache config without the SSL configuration.

Should I replace the existing httpsd.conf file with something from SSLconf?

I am not a newbie to Apache but this SSL configuration is surely not straightforward to me!

Can any security guru please shed some light on my problem?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Apache directory Confusion Raggit Linux - Software 23 02-16-2005 03:50 PM
N/I/C Installation on Redhat 8.0 Confusion NemesisStar Linux - Hardware 1 10-20-2003 11:43 PM
apache confusion antken Linux - General 1 08-02-2002 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration