Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Apache and Linux

AmanteAmante Member Posts: 52
Hi Guys,

Sorry again to bother you all, but:
I have installed RedHat 7.1 with WebServer.
1. How do i start it? (http://httpd) is not working
2. How can i know what is my IP?

Don.

Comments

  • garwaingarwain Member Posts: 297
    : Hi Guys,
    :
    : Sorry again to bother you all, but:
    : I have installed RedHat 7.1 with WebServer.
    : 1. How do i start it? (http://httpd) is not working
    the command to start it is httpd (as root) or httpd& to run it in the background. type
    PS -aux | more
    to see all processes running and see if httpd is listed there to know if it started successfully.

    To access pages on your machine from the linux box you can use the addesss http://localhost

    : 2. How can i know what is my IP?
    the command is ifconfig. If you are connecting with a modem you will look at the lines for ppp0 (or the number for the connection you are using)
    if you are using a NIC card then it should be eth0
    lo is the loopback address which represents your machine (localhost or 127.0.0.1)
    :
    : Don.
    :


  • AmanteAmante Member Posts: 52
    Hi,

    So probabley the Server is not Installed because the command http://httpd is nopt working.

    How do i install it again?

    Don.

    : : Hi Guys,
    : :
    : : Sorry again to bother you all, but:
    : : I have installed RedHat 7.1 with WebServer.
    : : 1. How do i start it? (http://httpd) is not working
    : the command to start it is httpd (as root) or httpd& to run it in the background. type
    : PS -aux | more
    : to see all processes running and see if httpd is listed there to know if it started successfully.
    :
    : To access pages on your machine from the linux box you can use the addesss http://localhost
    :
    : : 2. How can i know what is my IP?
    : the command is ifconfig. If you are connecting with a modem you will look at the lines for ppp0 (or the number for the connection you are using)
    : if you are using a NIC card then it should be eth0
    : lo is the loopback address which represents your machine (localhost or 127.0.0.1)
    : :
    : : Don.
    : :
    :
    :


  • gautamgautam Member Posts: 642
    Well I am not sure if I am trodding on the right path but do try
    telnet localhost 80

    If that says connection refused I doubt that httpd has been started. I would think apache is not installed or httpd has not been started.

    To start apache I think httpd start or apachectl start should work, but I am not sure.


  • AmanteAmante Member Posts: 52
    Sorry,

    it's not working ...

    http://httpd is not recognized as command.

    Don

    : Well I am not sure if I am trodding on the right path but do try
    : telnet localhost 80
    :
    : If that says connection refused I doubt that httpd has been started. I would think apache is not installed or httpd has not been started.
    :
    : To start apache I think httpd start or apachectl start should work, but I am not sure.
    :
    :


  • garwaingarwain Member Posts: 297
    to see if the apache server is running type [b]ps -aux[/b] and look for [b]httpd[/b]

    if it is not in the list then as the root user type [b]httpd[/b] to start the web server

    if that says command not found then apache is not installed

    : Sorry,
    :
    : it's not working ...
    :
    : http://httpd is not recognized as command.
    :
    : Don
    :
    : : Well I am not sure if I am trodding on the right path but do try
    : : telnet localhost 80
    : :
    : : If that says connection refused I doubt that httpd has been started. I would think apache is not installed or httpd has not been started.
    : :
    : : To start apache I think httpd start or apachectl start should work, but I am not sure.
    : :
    : :
    :
    :


  • AmanteAmante Member Posts: 52
    Ok, I guess the apache is not installed, cuz i can't start it.

    So, how do i install it?


    : : to see if the apache server is running type [b]ps -aux[/b] and look for [b]httpd[/b]
    : :
    : : if it is not in the list then as the root user type [b]httpd[/b] to start the web server
    : :
    : : if that says command not found then apache is not installed
    : :
    : : : Sorry,
    : : :
    : : : it's not working ...
    : : :
    : : : http://httpd is not recognized as command.
    : : :
    : : : Don
    : : :
    : : : : Well I am not sure if I am trodding on the right path but do try
    : : : : telnet localhost 80
    : : : :
    : : : : If that says connection refused I doubt that httpd has been started. I would think apache is not installed or httpd has not been started.
    : : : :
    : : : : To start apache I think httpd start or apachectl start should work, but I am not sure.
    : : : :
    : : : :
    : : :
    : : :
    : :
    : :
    :
    :


  • garwaingarwain Member Posts: 297
    Simplest way is to find the RPM file on your CD
    Once you have the rpm, as root type: rpm -i

    If you download a copy from apache.org you will have to
    gunzip .tar.gz -extract the tar file
    tar -xvf -change into the newly created folder

    there is a file there called install that explains the install process. I'd recommend reading this file but the steps are quickly explained as
    $ ./configure --prefix=
    $ make
    $ make install
    $ /bin/apachectl start

    Hope this helps
    Ben

Sign In or Register to comment.