LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-25-2005, 12:41 PM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
fail to start apache with ssl


Hi all,

I have no idea on fixing this problem and I spent some time on googling with no luck. I want to start my apache with SSL support. I created a new cert and key, however, apache tells me she cannot find server.key but when I ls the ssl.key directory. The file exists and is of non-zero size.
How can I fix that?

Quote:
tsun@K-Zone:~$ sudo cp new.cert.crt /etc/apache/ssl.crt/server.crt
tsun@K-Zone:~$ sudo cp new.cert.key /etc/apache/ssl.key/server.key
tsun@K-Zone:~$ /etc/rc.d/rc.httpd start
Syntax error on line 136 of /etc/apache/mod_ssl.conf:
SSLCertificateKeyFile: file '/etc/apache/ssl.key/server.key' not exists or empty
/usr/sbin/apachectl startssl: httpd could not be started
tsun@K-Zone:~$ sudo ls /etc/apache/ssl.key/server.key
/etc/apache/ssl.key/server.key
tsun@K-Zone:~$ sudo ls /etc/apache/ssl.key/server.key -l
-rw-r--r-- 1 root root 887 2005-06-26 01:30 /etc/apache/ssl.key/server.key
Thanks.
 
Old 06-25-2005, 01:23 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Is the directory readable? Can you post the output from:
ls -la /etc/apache/ssl.key
stat /etc/apache/ssl.key/server.key
 
Old 07-07-2005, 12:05 PM   #3
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by david_ross
Is the directory readable? Can you post the output from:
ls -la /etc/apache/ssl.key
stat /etc/apache/ssl.key/server.key
Oh, I forgot the permission problem.
The folder is set to root "rwx" initially. (rwx------)

Thank david_ross for pointing it out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 & SSL Help, Services Won't start mikeybuk Linux - Software 1 03-17-2005 05:41 AM
kde fail to start eddy98 Suse/Novell 1 03-07-2005 02:15 AM
Fail to start Gnome satimis Fedora 1 07-30-2004 10:30 AM
Fail to start KDE satimis *BSD 2 02-26-2004 08:46 PM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration