LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-19-2003, 12:47 PM   #1
squi
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
Understanding Servers and Apache


I'm a bit lacking for all the terminology...

First of all, how can I see what is running
on our server? 'ps' at the prompt? does
that list everything?

Basically i want to see if Apache is running.

We have a box (a Magnia S20) that has
an intranet. We are trying to open a port
for our client to come in and see our work.

Because our ISP is blocking Port 80,
we tried changing our httpd file to

LISTEN 6060

and then restarted Apache with something
like 'apachectl restart'.

That then gave us a 'Welcome' Apache page
and totally locked us out of our intranet.
If we typed our URL in a browser, it just spun,
but it opened port 6060!

So we got that, but we lost our intranet access.
So, is Apache running both our intranet as
well as remote access through port 6060?

Why would we get blocked internally?

We then just stopped apache and
things 'went back to normal'.

How can we give remote access and maintain
our internal connection?

Long one, I know, thanks,

--san
 
Old 09-19-2003, 01:39 PM   #2
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
First of all, how can I see what is running
on our server? 'ps' at the prompt? does
that list everything?

Use something like ps aux
a = select all with a tty except session leaders
u = select by effective user ID (supports names)
x = select processes without controlling ttys

Basically i want to see if Apache is running.

Then do: ps aux | grep apache
Which will show you something like:

apache 1871 0.0 6.9 23620 8768 ? S Sep18 1:03 [apache2]
apache 1872 0.0 6.4 23260 8136 ? S Sep18 1:05 [apache2]
apache 1873 0.0 6.1 23892 7732 ? S Sep18 1:03 [apache2]
apache 1874 0.0 5.6 24108 7164 ? S Sep18 1:00 [apache2]
apache 1875 0.0 5.1 23280 6536 ? S Sep18 1:01 [apache2]
apache 1877 0.0 6.4 23864 8220 ? S Sep18 0:59 [apache2]
apache 1878 0.0 6.5 23680 8344 ? S Sep18 1:00 [apache2]
apache 1879 0.0 6.7 23500 8508 ? S Sep18 1:09 [apache2]
apache 2420 0.0 5.6 23332 7168 ? S 00:00 1:02 [apache2]
apache 5513 0.0 6.5 23428 8308 ? S 06:47 0:43 [apache2]
root 29815 0.0 0.3 1424 448 pts/0 S 20:34 0:00 grep apache

We have a box (a Magnia S20) that has
an intranet. We are trying to open a port
for our client to come in and see our work.
Because our ISP is blocking Port 80,
we tried changing our httpd file to

LISTEN 6060

and then restarted Apache with something
like 'apachectl restart'.

That then gave us a 'Welcome' Apache page
and totally locked us out of our intranet.
If we typed our URL in a browser, it just spun,
but it opened port 6060!

Is the intranet on the same machine ?

So we got that, but we lost our intranet access.
So, is Apache running both our intranet as
well as remote access through port 6060?

Yep, I assume those are on the same machine. Ignore my last question

Why would we get blocked internally?
We then just stopped apache and
things 'went back to normal'.

You don't get blocked, but all http traffic is only acepted at 6060

How can we give remote access and maintain
our internal connection?

If you got apache compiled with https support (mod_ssl module) then you can change the document root for https which allways operates (by default on 443) and put your controll stuff there

Hope this helps,
 
  


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
Apache + virtual servers yussef Debian 1 01-31-2005 08:48 PM
Apache + virtual servers yussef Linux - Software 0 01-08-2005 12:05 PM
Dual Apache Servers BorgKiller Linux - Software 2 09-28-2004 06:43 AM
understanding web servers noonday Linux - Networking 1 04-29-2004 08:19 PM
public apache servers TheHunted Linux - Software 6 03-17-2004 10:38 AM

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

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