LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2015, 07:38 PM   #1
ehdunf67
LQ Newbie
 
Registered: Apr 2015
Location: Canada
Distribution: Kali Linux, Windows, Ubuntu
Posts: 18

Rep: Reputation: Disabled
Apache2 Won't start


When I type

service apache2 start

I get a message saying:

[....] Starting web server: apache2apache2: Syntax error on line 7 of /etc/apache2/apache2.conf: Could not open configuration file /etc/init.d/apache.conf: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
failed!

The apache error log is blank and doesn't have any information.
Please help me.
 
Old 04-05-2015, 07:50 PM   #2
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 689

Rep: Reputation: 69
Quote:
Originally Posted by ehdunf67 View Post
When I type

service apache2 start

I get a message saying:

[....] Starting web server: apache2apache2: Syntax error on line 7 of /etc/apache2/apache2.conf: Could not open configuration file /etc/init.d/apache.conf: No such file or directory
Action 'start' failed.
The Apache error log may have more information.
failed!

The apache error log is blank and doesn't have any information.
Please help me.
What distribution are you using?

Maybe try:
service httpd start (that's generally for red hat distros)
or /etc/init.d/apache2 start

It's obviously a syntax error, as it says, because apache.conf cannot be located under /etc/init.d/
 
1 members found this post helpful.
Old 04-05-2015, 07:54 PM   #3
ehdunf67
LQ Newbie
 
Registered: Apr 2015
Location: Canada
Distribution: Kali Linux, Windows, Ubuntu
Posts: 18

Original Poster
Rep: Reputation: Disabled
I'm using kali linux. And I tried both, but it says they're unrecognized.
 
Old 04-05-2015, 08:07 PM   #4
vincix
Member
 
Registered: Feb 2011
Distribution: Centos 6.7, 7
Posts: 689

Rep: Reputation: 69
Quote:
Originally Posted by ehdunf67 View Post
I'm using kali linux. And I tried both, but it says they're unrecognized.
Ok, it was a rather silly post from my part.

Can you do a cat /etc/apache2/apache2.conf ?


Do you happent to have another apache.conf?

try ls -l /etc/apache2/conf.d/apache.conf

Last edited by vincix; 04-05-2015 at 08:16 PM.
 
Old 04-05-2015, 09:20 PM   #5
ehdunf67
LQ Newbie
 
Registered: Apr 2015
Location: Canada
Distribution: Kali Linux, Windows, Ubuntu
Posts: 18

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by vincix View Post
Ok, it was a rather silly post from my part.

Can you do a cat /etc/apache2/apache2.conf ?


Do you happen to have another apache.conf?

try ls -l /etc/apache2/conf.d/apache.conf
No I don't have another apache.conf I tried doing ls -l /etc/apache2/conf.d/apache.conf, and it is telling me that there is no such file or directory.
 
Old 04-05-2015, 10:03 PM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,510

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
So what does line 7 of /etc/apache2/apache2.conf say?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 won't start WopsS Linux - Newbie 1 10-26-2013 03:50 AM
apache2 won't start, no error given mikecrowe Linux - Networking 12 09-19-2010 05:46 PM
Apache2.2 won't start dana340 Linux - Newbie 14 01-20-2006 08:56 PM
apache2 won't start atheist Linux - Software 1 10-23-2004 05:14 PM
Apache2 won't start sasklinuxuser Linux - General 4 09-22-2004 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration