Current time: 11-25-2024, 03:53 PM Hello There, Guest! (LoginRegister)


Thread Closed 
/etc/init.d/apache2 empty file
Author Message
marceloctec Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #1
/etc/init.d/apache2 empty file
Today I needed restart my server (VM) and the apache don't started, because the file /etc/init.d/apache2 was empty.


I deleted these file and try recover apache by regenerate the config files (http://isp-control.net/documentation/how...e_config), but don't work.

Best Regards,
Marcelo
01-13-2011 04:34 AM
Find all posts by this user
marceloctec Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #2
RE: /etc/init.d/apache2 empty file
nobody?
01-14-2011 02:08 AM
Find all posts by this user
hubsif Offline
Newbie
*

Posts: 5
Joined: Nov 2009
Reputation: 1
Post: #3
RE: /etc/init.d/apache2 empty file
I'm having the same problem. /etc/init.d/apache is empty, but /etc/init.d/apache-<weekly-saturday-date>.gz contains a compressed version. Seems like some cronjob is backing up the init-script.
If I should find out where this comes from I'll tell you.

BTW: I'm running gentoo.

hubsif.
01-15-2011 08:11 AM
Find all posts by this user
MFernandes Offline
Junior Member
*

Posts: 25
Joined: Dec 2010
Reputation: 0
Post: #4
RE: /etc/init.d/apache2 empty file
Try this,

# apt-get purge apache2.2-common
# apt-get install apache2.2-commen

if this you get after this another error,

try this also

# apt-get install apache2-suexec

or see this thread th last post from me: http://isp-control.net/forum/thread-12666.html


Regards,

MFernandes
01-15-2011 11:37 AM
Find all posts by this user
hubsif Offline
Newbie
*

Posts: 5
Joined: Nov 2009
Reputation: 1
Post: #5
RE: /etc/init.d/apache2 empty file
apt-get won't work for gentoo.

But I found the solution: look here.

hubsif.
01-15-2011 10:48 PM
Find all posts by this user
marceloctec Offline
Junior Member
*

Posts: 20
Joined: Dec 2010
Reputation: 0
Post: #6
RE: /etc/init.d/apache2 empty file
Thanks for all.

I restore the the file with:

cd /tmp
aptitude download apache2.2-common
dpkg --extract apache2.2-common_*.deb apache2.2-common
sudo cp apache2.2-common/etc/init.d/apache2 /etc/init.d

Regards,
Marcelo
01-17-2011 09:17 PM
Find all posts by this user
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #7
RE: /etc/init.d/apache2 empty file
That is very strange that your init.d script got wiped. You can reinstall apache via emerge -av, and your init.d script should get replaced...
That is very strange that your init.d script got wiped. You can reinstall apache via emerge -av, and your init.d script should get replaced...
(This post was last modified: 08-23-2011 03:10 PM by pgentoo.)
08-23-2011 03:10 PM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)