LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2012, 03:43 PM   #1
kidgrave
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Rep: Reputation: 0
Apache2 missing files. Need help.


Apache is no working for me. It was because I had removed some files through the folders, and then I tried re-installing. I re-installed apache; however, it's still not working.

I tried: /etc/init.d/apache2 restart
Because it was not working and I got this following error in the terminal:

Syntax error on line 160 of /etc/apache2/apache2.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
...fail!

Please help. thanks.
 
Old 11-04-2012, 05:13 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Either restore your /etc/apache2/apache2.conf from backup (if you didn't make any now you know why you should) or follow the clues. The error message tells you exactly where to look:
Quote:
Originally Posted by kidgrave View Post
Syntax error on line 160 of /etc/apache2/apache2.conf:
...twice:
Quote:
Originally Posted by kidgrave View Post
The Apache error log may have more information.
 
Old 11-04-2012, 09:53 PM   #3
kidgrave
LQ Newbie
 
Registered: Dec 2004
Posts: 27

Original Poster
Rep: Reputation: 0
I had not made a back up; however, what I did is that I copied the missing files from another one of my computers in which I have apache installed as well. I tried starting or restarting apache after pasting back the missing files, and now I am getting this error:

kidgrave-RS482-SB400 kidgrave # /etc/init.d/apache2 restart
bash: /etc/init.d/apache2: Permission denied
kidgrave-RS482-SB400 kidgrave # sudo /etc/init.d/apache2 restart
sudo: /etc/init.d/apache2: command not found
kidgrave-RS482-SB400 kidgrave # sudo /etc/init.d/apache2 stop
sudo: /etc/init.d/apache2: command not found
 
  


Reply



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
Apache2 compiled modules missing this is neo Linux - Newbie 3 01-23-2011 07:50 AM
apache2-ssl-certificate script is missing jimbo1708 Linux - Server 3 03-21-2008 05:55 PM
Missing file apxs2 and related for apache2. Possible to transfer from another system? EnderX Linux - Server 0 11-10-2006 12:22 PM
Missing PHP parameters on apache2 eplanamente Linux - Software 2 12-29-2005 05:01 PM
apache2 missing config files c-- Ubuntu 5 06-20-2005 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:57 AM.

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
Open Source Consulting | Domain Registration