LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-07-2010, 02:32 PM   #1
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Rep: Reputation: 0
Apache is not starting


When I try to start Apache2 (apachectl start) the command prompt returns right away. But when I check the processes (ps ax) I can't find httpd. And when I try to hit the server from a browser I get "the page cannot be displayed" error. How can I figure out whats wrong and fix it?
 
Old 01-07-2010, 02:34 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Depending on your distribution, the process can be called apache too. And try
sudo /etc/init.d/apache start
or
sudo /etc/init.d/httpd start
or
service apache start

depending on your unspecified distribution.
 
Old 01-07-2010, 02:37 PM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello and Welcome to LinuxQuestions,

Have you checked your log files for any errors? If there are, please post them here too.

Kind regards,

Eric
 
Old 01-07-2010, 02:38 PM   #4
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks. But none of that works.
 
Old 01-07-2010, 02:40 PM   #5
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
You did not specified your distribution, it's kind of hard to help you.
 
Old 01-07-2010, 02:40 PM   #6
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I am running SUSE. Is that what you mean?
 
Old 01-07-2010, 02:41 PM   #7
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
where is the log file stored and what is the name of it?
 
Old 01-07-2010, 02:42 PM   #8
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

Also please post what distro you are using as indicated by Elv13, so we have an idea of what commands to indicate to you.

Kind regards,

Eric
 
Old 01-07-2010, 02:51 PM   #9
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
SUSE
 
Old 01-07-2010, 02:55 PM   #10
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Now that that's in the clear, I don't have any experience with Suse and/or OpenSuse, but I imagine there are logs in there also. Maybe even in the same location as most of the distros, nl. /var/log.

Can you have a look in there and check if there's a directory called apache or apache2, or httpd? Maybe there's even a httpd.log in the /var/log/ directory. Can you check what, if any, errors it contains? Also check /var/log/messages and /var/log/syslog for errors in regard to the httpd/apache process. Post any relevant information here please.

Kind regards,

Eric
 
1 members found this post helpful.
Old 01-07-2010, 02:59 PM   #11
dcinadr
LQ Newbie
 
Registered: Jan 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thank you for the help. I was able to find the error_log file in /var/log/apache2 directory. And there was an error that indicated it was not able to create the httpd.pid file in /usr/local/apache2/logs directory because that directory didn't exist. So created the directory and everything seems to work fine now.

Thanks again for the help.
 
Old 01-07-2010, 03:54 PM   #12
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hi,

You're welcome. Sorry for the late reply but my internet has the hick-up and fails on me like every 5 minutes. Glad you solved it, have fun using Linux.

If you consider the problem solved then please mark this thread as such using the Thread Tools.

Kind regards,

Eric
 
  


Reply

Tags
apache2


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
Apache not starting madhi Linux - Newbie 2 09-02-2008 01:04 AM
apache not starting ilnli Linux - General 1 06-29-2005 05:15 AM
Apache not starting up scarr3d Debian 4 05-17-2005 04:05 AM
Apache not starting... noteventime Linux - Software 2 03-11-2005 05:34 PM
Apache not starting up! vmnrao Linux - General 7 09-06-2004 06:14 PM


All times are GMT -5. The time now is 09:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration