Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging apache fails to generate certs, apache won't start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mcguire_mr2
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 82

PostPosted: Fri Dec 10, 2004 2:08 pm    Post subject: emerging apache fails to generate certs, apache won't start Reply with quote

Hi,

On a freshly installed system, I emerge apache (apache-2.0.52-r1) for the first time and during the ebuild I receive an error about "//etc/apache2/ssl" not existing, just before the certs are generated. The ebuild appears to complete, though. I uncommented APACHE2_OPTS="-D SSL" in /etc/conf.d/apache2, started apache (/etc/init.d/apache2 start), and get the following:

* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 44 of /usr/lib/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateFile: file '/usr/lib/apache2/conf/ssl/server.crt' does not exist or is empty

I have ssl in my use flags. I do not have "~x86" in make.conf. I look in "/etc/apache2" and there is no folder named "ssl".

If I comment APACHE2_OPTS="-D SSL" and then restart apache, all seems well.

Anyone run into this?
Back to top
View user's profile Send private message
vla_do
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 165

PostPosted: Fri Dec 10, 2004 2:22 pm    Post subject: Reply with quote

Solved in this topic: Apache2 Problem [solved]
Back to top
View user's profile Send private message
mcguire_mr2
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 82

PostPosted: Fri Dec 10, 2004 3:32 pm    Post subject: Reply with quote

well, solved isn't really the word for it. but, they found a workaround. seems as though the r1 ebuild should still be masked. i'll look at bugs and see if anyone's posted something about this...if not, i'll submit a bug. thanks for pointing me to that post, though i had already figured all of that out, but thanks for the help anyway.
Back to top
View user's profile Send private message
mcguire_mr2
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2003
Posts: 82

PostPosted: Fri Dec 10, 2004 5:03 pm    Post subject: Reply with quote

Here's a list of what I had to do to get apache "fully" working with SSL support:

1. create the folder "/etc/apache2/conf/ssl"
2. (re)emerge apache
3. create the folder "/usr/lib/apache2/logs"
4. create the folder "/var/cache/apache2"
5. Un-comment APACHE2_OPTS="-D SSL" in "/etc/conf.d/apache2".
6. /etc/init.d/apache2 restart

Everything seemed to work fine after this. Seems like this ebuild may not have been quite ready for production?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum