LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2003, 09:25 AM   #1
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
Downgrade apache 2 to 1.3 ssl problems...


Hi I'm downgrading apache 2 on my Redhat 9 server because I want to use a cms that doesn't support apache 2 yet (2 causes problems with workflows and general admin functions).

My problem is that once I've made and installed apache I can't start it with ssl support:

# /usr/sbin/apachectl startssl
Syntax error on line 1070 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl startssl: httpd could not be started

At first I thought it was maybe something to do with SSLEngine being an apache 2 only command, Is this the case? The reason why I'm not so sure it because httpd.conf (appears) to be a brand-new config file, generated by the make; make install process.

This is how I've gone about it so far:

# apt-get remove httpd

(this removed httpd mod_auth_mysql mod_auth_pgsql mod_perl mod_python mod_ssl php php-imap php-ldap php-manual php-mysql php-odbc php-pgsql packages)

I didn't want to remove open-ssl or mysql because it seemed unnecessary and, as I'm sure you can probably imagine, I have quite a few other programs that depend on open-ssl in a system I also use as a workstation!

Then download and configure mod_ssl with

./configure --with-apache=../apache_1.3.29/ (where my unpacked apache sources are) --with-ssl --enable-shared=ssl

Then download and configure apache like so:

./configure --with-layout=config.layout:RedHat --enable-module=ssl --enable-shared=ssl --enable-module=rewrite --enable-shared=rewrite --enable-module=so

Then make; make install in the apache sources directory

I haven't gotten around to sorting out php yet, I thought I'd do one thing at a time - is this a good approach? I think the problem is most likely because apache doesn't know where/how to use ssl, does this sound about right?

Thanks in advance,

~James~

UPDATE: I tried playing with the apache configuration and found that setting SSL_BASE to SSL_BASE=/usr will work in the configure script, only when I add AddModule mod_ssl.c

# /usr/sbin/apachectl startssl
Syntax error on line 232 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_ssl.c': not in list of loaded modules
/usr/sbin/apachectl startssl: httpd could not be started

Last edited by jimieee; 12-15-2003 at 10:37 AM.
 
Old 12-19-2003, 04:09 AM   #2
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
By the way, I found what I was doing wrong in an article (http://blogs.law.harvard.edu/rlucas/2003/08/18).

Incase anyone's interested: Apparently there are some issues with the way Redhat installs kerberos part of openssl, all you have to do to fix it is so put

if pkg-config openssl; then
CFLAGS="$CFLAGS `pkg-config --cflags openssl`"
LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi

in the ./configure for Apache.

~James~
 
  


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 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 and apache-ssl questions merana Debian 4 03-10-2005 10:10 AM
Need to downgrade windows to 98, problems? Toker Linux - Hardware 0 10-08-2003 04:06 PM
Apache 2 -> 1.3 How to downgrade? RH8 pkdunn Linux - Software 0 07-13-2003 12:51 PM
Apache and SSL problems Pete Dogg Linux - Software 2 06-12-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 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