Find the answer to your Linux question:
Results 1 to 2 of 2
hi, how to install apache server in linux redhat but i can not connect to internet...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    1

    install apache server in linux


    hi,
    how to install apache server in linux redhat
    but i can not connect to internet

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    if it is Red Hat Enterprise Linux, then you need a subscription/RHN login. Then you can download the httpd packages and copy them to a CD which you can then take to your stand-alone server and install from there (using rpm/yum commands).

    Or use the original media from which you installed RHEL, the httpd packages should be on there, too.

    If you are in a bind, you can always compile the binary RPMS from the original Source RPMS that Red Hat makes available:

    ftp://ftp.redhat.com/redhat/linux/en...r/en/os/SRPMS/

    In the above listing, you can see httpd-2.2.15-9.el6_1.3.src.rpm, which appears to be the latest released SRPM. Then you rebuild it using the rpmbuild command (from the rpm-build package). Don't rebuild it as root, though - dangerous. Set up a proper environment for building RPMS as a regular user. but the command is something like:

    Code:
    rpmbuild --rebuild /path/to/httpd-x.xx.src.rpm
    The resultant binary RPM will be written somewhere like $HOME/rpms/RPMS/$(arch)/httpd-x.xx.$(arch).rpm.

    Of course you probably don't even have rpm-build installed (or gcc or make...), so you may have a chicken and the egg problem there.

    Honestly, though, if you are running RHEL, you should be using a subscription and getting updated packages properly. If you don't really care about this, then just use CentOS, a binary clone of RHEL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •