LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Understanding Servers and Apache (https://www.linuxquestions.org/questions/linux-newbie-8/understanding-servers-and-apache-94566/)

squi 09-19-2003 12:47 PM

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

daveo 09-19-2003 01:39 PM

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,


All times are GMT -5. The time now is 10:08 PM.