Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 Problem [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
insaan
n00b
n00b


Joined: 26 Oct 2004
Posts: 72

PostPosted: Tue Nov 16, 2004 12:00 pm    Post subject: Apache2 Problem [solved] Reply with quote

Hi Folks,

I have emerged apache2 for PHP. Now when I start the apache server, I get the following error:

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

Does someone know, which mistake I maight have done, plz?

cheers


Last edited by insaan on Tue Nov 16, 2004 3:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Tue Nov 16, 2004 2:32 pm    Post subject: Re: Apache2 Problem Reply with quote

You need to make the directory /etc/apache2/conf/ssl. They certificate should be in a file called server.crt while the key should be called server.key. The key should only be readable by root.

-Mike
Back to top
View user's profile Send private message
insaan
n00b
n00b


Joined: 26 Oct 2004
Posts: 72

PostPosted: Tue Nov 16, 2004 3:09 pm    Post subject: Still the same error Reply with quote

Hallo Mike,

I have created a directory /etc/apache2/conf/ssl and then started apache2
#/etc/init.d/apache2 start

It gave the same errors, as mentioned above and looked the server.crt file in /usr/lib/apache2/conf/ssl/ and did not find, as it does not exist.

I found then "server.crt" file in
/usr/lib/apache2-mod_ssl/server.crt
and
/var/tmp/portage/server.crt

I copied

#cp /usr/lib/apache2-mod_ssl/server.{crt,key} /usr/lib/apache2/conf/ssl/

Now I started apache2

#apache2 -k start
and got only one error:
apache2: could not open error log file /usr/lib/apache2/logs/error_log

I created logs in /usr/lib/apache2 and then it ran!!
I think, it was not good emerged!!


Thanks for reply.
Back to top
View user's profile Send private message
rbr28
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2004
Posts: 126

PostPosted: Sun Nov 21, 2004 2:12 am    Post subject: more suggestions Reply with quote

Lots of problems with the 2.0.51-r1 ebuild.

As mentioned in the other post, to get ssl to work I had to copy the server.key and server.crt from /var/tmp/portage to the location apache was looking for them in. You can see this when it starts up, or check your logs.

Additionally I had numerous other errors about files or directories not existing. I went through the logs and just created each directory that didn't exist and then everything worked fine.
Back to top
View user's profile Send private message
insaan
n00b
n00b


Joined: 26 Oct 2004
Posts: 72

PostPosted: Fri Jan 14, 2005 9:49 am    Post subject: Re: Still the same error Reply with quote

insaan wrote:
Hallo Mike,

I have created a directory /etc/apache2/conf/ssl and then started apache2
#/etc/init.d/apache2 start

It gave the same errors, as mentioned above and looked the server.crt file in /usr/lib/apache2/conf/ssl/ and did not find, as it does not exist.

I found then "server.crt" file in /usr/lib/apache2/lib/ssl/apache2-mod_ssl.
(Here you can first copy gentestcrt.sh in /etc/apache2/conf/ssl and then generate keys, if not available)
I copied

#cp /usr/lib/apache2-mod_ssl/server.{crt,key} /usr/lib/apache2/conf/ssl/

Now I started apache2

#apache2 -k start
and got only one error:
apache2: could not open error log file /usr/lib/apache2/logs/error_log

I created logs in /usr/lib/apache2 and then it ran!!
I think, it was not good emerged!!


Thanks for reply.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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