Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Apache2 Won't Start
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
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Thu Feb 16, 2017 1:44 am    Post subject: [solved]Apache2 Won't Start Reply with quote

Hi all I have had Apache 2 running for approx 1 year... with 2 virtual hosts...

As of today it will not start I get the error

Code:

root@GW1 ~/ # /etc/init.d/apache2 start
 * Starting apache2 ...
no listening sockets available, shutting down
AH00015: Unable to open logs
 * start-stop-daemon: failed to start `/usr/sbin/apache2'
                                                                          [ !! ]
 * ERROR: apache2 failed to start


Last edited by cowboy0629 on Thu Feb 16, 2017 2:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Thu Feb 16, 2017 2:13 am    Post subject: Reply with quote

Ok I think I figured out my problem but have no idea how to fix my problem

I deleted some files out of /etc/apache2/vhosts.d when I was cleaning out the new config files emerge was posting...

I tried re emerging the system but the configs I deleted did not come back

here is a listing of /etc/apache2/vhost.d

Code:

cowboy0629.ddns.net.conf  needfulthings.ddns.net.conf
default_vhost.include
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21622

PostPosted: Thu Feb 16, 2017 2:41 am    Post subject: Reply with quote

If you restore those files from the most recent backup, does that resolve the original error?
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 105
Location: Kawartha Lakes, Ontario

PostPosted: Thu Feb 16, 2017 4:32 am    Post subject: Reply with quote

I got it fixed thanks.. I can't find my USB with the Apache backup on it ... at least I think I backed up up ugh... but I did a list all and found that when I rebuilt it the portage put the 2 files in there as hidden cfg I renamed them and edited for my system and it started working again

Thank for the reply
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8708
Location: ~Brussels - Belgique

PostPosted: Thu Feb 16, 2017 8:05 am    Post subject: Reply with quote

cowboy0629,

Please use the "Reply" button, not the "Report" button to reply ;)
_________________
Kind regards,
Xavier Miller
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