LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-10-2004, 03:56 PM   #1
Joe826
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
Apache problems


Hi,

I'm pretty new to the UNIX thing, I just got a new dedicated server for my websites and it came almost completely blank, which is something I haven't had to deal with! A friend recommended webmin with virtualmin to host my domains, but I can't seem to get apache to work. I set it up through webmin and it seems to be running, but whenever I attempt to go my IP in my browser it just gives me a blank page, the default directory is /var/www/html, but any index.html I put in there doesn't show up. Also, the default noindex apache file doesn't show up either. Any ideas here? I'm at a loss!

Thanks,
Joe
 
Old 02-10-2004, 04:03 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi Joe826!!!

Welcome to LinuxQuestions.org. Are you starting apache correctly? A way to do it, as root, is by typing:

apachetl start

and to stop, well, it's the same command as the above, but with stop instead of start . If no error messages are returned when you start apache, when trying to ping your server, it should work (eg. http://292.295.685.344) at the browser. If it does not, try typing localhost instead.

Good luck!
 
Old 02-10-2004, 04:05 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Welcome to LQ

You'll need to give us a bit more info, and likely need to dig in the conf file a bit to get some of it for us...

What version of Apache are you running, how did you install it, what distro? When you check top (see next section on how to view top) do you see Apache running as a process? How about ps?

To see what top and ps are reporting:
Open up a terminal, and type:
top
This will list processes, you should see Apache in there.
PS:
Open up a terminal, and type:
ps -aux
And it should report back A LOT of info. In that list should be Apache. It might be called httpd, either way, you should see something referring to an http server running.

Inside your conf file(s) locate your 'DocumentRoot', 'ServerRoot' and any other information you feel pertinent, and post it up. Also, are you trying to access it on the local machine, or are you across a network? Is port 80 forwarded to that machine? Are there any IPTables (firewall built into a lot of distros) blocking that port on that machine?

Cool
 
Old 02-10-2004, 04:36 PM   #4
Joe826
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hey! I figured out the problem, I had enabled virtual hosting with the NamedVirtualHost line but I didn't know I had to make an entry for my "default" host as well. I guess that's why it wasn't working.. and if that's not the reason, i'm not sure, but it works anyways .

One more question though. I want to virtually host these names, but since this is just a box with my host and they give me nameservers to point my names to, I don't have to mess with BIND/DNS at all do I? Is there anything else I'll need to do?

Thanks,
Joe
 
Old 02-10-2004, 04:40 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you aren't running your own nameservers, then no, you don't have to mess with any (BIND is a DNS server, which contains named, a name server tool..). You will have to point your IP to your names of your domains, but other than that, no you shouldn't have to mess with any named services/DNS services.

Cool
 
Old 02-10-2004, 04:42 PM   #6
Joe826
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks MasterC, how do I go about pointing my IP to my names?

Thanks for helping me,
Joe

edit: or did you mean, in the <VirtualHost> tag, just adding the IP? I just did <VirtualHost *> so that should work right?

Last edited by Joe826; 02-10-2004 at 04:45 PM.
 
Old 02-13-2004, 06:23 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It depends on how your zones are managed. If you aren't running your own DNS servers, then whoever is running them for you will do that, or you will need to edit them via their web interface (or whatever they use to allow you to edit your zones).

Cool
 
  


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
apache problems root3d Linux - Software 5 03-08-2004 04:26 PM
Apache problems BrettPower Linux - Networking 3 03-06-2004 10:52 PM
Apache problems rooster13 Linux - Networking 6 07-16-2003 11:41 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM
Apache problems RecoilUK Linux - Networking 6 07-13-2001 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 PM.

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