LinuxQuestions.org
Review your favorite Linux distribution.
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 03-06-2005, 05:35 AM   #1
Sharmi
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
How to run the apache server


Hi ,
I am not able to start the apache server.I have both Httpd and apachecttl in my system.Is that the problem.i am not able to uninstall them also.
Can anyone help me in running the apache server.
 
Old 03-06-2005, 06:45 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi!

1 - What distribution are you running? I ask this, because it can change how to start apache from one distribution to another. In Slack, you start it with "apachectl start" while in SuSE you start with "rcapache2 start".

2 - Please, tell us the commands you are typing to start that service and give us a detailed error output of it, otherwise we can't do much.

3 - You can test anytime if apache is running by opening a web-browser and typing "http://localhost". If you get any "congratulations, apache is running", so then it's running

Again, just be as descriptive as possible. Doing so, you will get much more replies for common errors.

Regards!
 
Old 03-06-2005, 06:48 AM   #3
Sharmi
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,
I am trying to start using apachectl.Nothing happens and when i open the browser it says connection refused when i try to open.

even when i try using /etc/rc.d/init.d/httpd start it says starting Httpd failed


Pls help me out
 
Old 03-06-2005, 08:19 PM   #4
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Rep: Reputation: 15
Hi:

Well you need to locate whwre Apache is installed. Mine is at /usr/local/apache2. You need to check your conf. Check at /usr/local/apache/conf or /usr/local/apache2/conf

Use vi httpd.conf and check the settings. If you are a newbie, patience my friend. Apache is a robust Web Server. It takes time to learn how to configure but it is well worth the effort.

usually you fire it :

/usr/local/apache/bin/apachectl start

or /usr/local/apache2/bin/apachectl start

I configure it and build it on my own. IF you are running a Control Panel this could vary I think.

Later
 
  


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
How to run the apache server Sharmi Linux - Software 4 03-06-2005 04:19 PM
configuration of httpd.conf to run apache server adityabhat2 Linux - Newbie 2 02-13-2005 12:10 PM
How to run a server-side Javascript in Apache Linh Programming 2 07-15-2004 09:36 AM
can you run an apache server alongside a postfix server mikew101 Linux - Software 5 07-10-2003 07:32 AM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM

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

All times are GMT -5. The time now is 03:48 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