LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-29-2007, 03:54 PM   #1
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
> Apache won't start after upgrading from 2006 to 2007


After putting in the mandriva 2007 DVD and upgrading my Mandriva 2006 install I now get an error when starting apache. I've also upgraded all the relevant packages through urpmi. Here's the error:

> /etc/init.d/httpd start
Starting httpd: Syntax error on line 46 of /etc/httpd/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
[FAILED]

Everything else is running smoothly after the upgrade (mysql, proftp server, etc).......
 
Old 01-29-2007, 07:55 PM   #2
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
well, if I comment out the line that's giving the error I get this when starting httpd:

Starting httpd: Syntax error on line 53 of /etc/httpd/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateKeyFile: file '/etc/pki/tls/private/localhost.key' does not exist or is empty

Comment out that line and I get no errors, but it doesn't start:

> /etc/init.d/httpd start
Starting httpd: [FAILED]

So this must have something to do with a SSL keys.......anyone with more knowledge here that can help me??
 
Old 01-30-2007, 01:42 PM   #3
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
I think I just need to replace these certificates (why they got removed with the upgrade is odd).

Can someone here help me with how I can go about re-creating these SSL certificates???
 
Old 01-30-2007, 02:58 PM   #4
tytower
Member
 
Registered: Jun 2006
Location: Oz
Distribution: Mandriva 10.0,10.1,10.2,2006,Mepis 6.0,Opensuse10.2,Puppy 2.14
Posts: 250

Rep: Reputation: 30
How about trying to uninstall and reinstall the apache package..wouldn't take but 5 mins
There seems to be continual problems with upgrades as opposed to new installs.

I would suggest perhaps a full install formatting hda1 and hda5 but not hda6 where the user files are (if thats how you set it up)

Last edited by tytower; 01-30-2007 at 03:00 PM.
 
Old 01-30-2007, 03:34 PM   #5
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I do not use Apache here, but I think the error
Quote:
SSLCertificateKeyFile: file '/etc/pki/tls/private/localhost.key' does not exist or is empty
is telling you that you do not have an SSL Certificate key set up.

You can read a definition of SSL on Webopedia.com

On most Linux systems Gpg is the usual encryption tool. If you use KDE as your Desktop Environment, Kgpg is available as a key manager. There are other such tools available as well. With Kgpg you can create both a public and private encryption key then export the public key to one of several key servers on the WEB.

The final step will be to tell Apache to use the key you set up. This is the part I can not help with, perhaps someone else can.
 
Old 01-31-2007, 05:57 PM   #6
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for your help, someone pointed me to this guide here http://httpd.apache.org/docs/2.2/ssl...tml#aboutcerts and I was able to recreate the certificate and key and get the webserver back up and running.
 
  


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
Upgrading Mandriva 2007.0 to 2007.1 Genin Mandriva 2 12-25-2006 02:48 AM
Upgrading from Mandriva 2006 to 2007 steventux Mandriva 15 11-17-2006 07:09 AM
Upgrade 2006 to 2007? paynejp Mandriva 5 10-13-2006 03:55 AM
Upgrading 2006 to 2007 using One CD aerogate Mandriva 6 10-12-2006 01:42 AM
How do I Upgrade Mandriva 2006 to 2007? tfm1 Mandriva 2 09-25-2006 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 01:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration