Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do I install Apache + MySQL + PHP on RedHat server without Internet Connection. I know that i can use YUM to install it but because my servers are inside firewall I can't go outside. Is it possible to use my computer (when I'm connection to RedHat via VPN) as a Proxy? if yes then how is it done. Thanks in advance.

share|improve this question
    
Is there a reason why you can't allow the server access to the Internet while you are installing Apache and turn it back off afterward? –  John Gardeniers Sep 16 '09 at 22:35
    
Not right now, I'm going to need to wait for IT to enable it which will take for ever... :/ –  Maksim Sep 16 '09 at 22:56

3 Answers 3

up vote 1 down vote accepted

You have basically 2 options

  • Download the needed RPMs, copy them to the server and install them manually using rpm -Uvh xxxx.rpm.
  • Set up a local yum repository from a mounted DVD with all RPMs for that distro

The first one is the easiest, and was the way you installed packages before all this yum/repos magic got working (RH 7.3 anyone? :-)). This method will fail if some other RPM is needed (dependency), in case you will also have to download that RPM and include it in the command line.

The second one is better. Involves mounting the DVD, use "createrepo" to create repository fils and setup a repo on /etc/yum.repos.d using "baseurl=file://path/to/repo.data.."

Here is an example.

share|improve this answer

At least you mount your RHEL DVD to your server or not. Other wise your can copy all the rpm from your DVD to your server and createrepo file for the same why your have create repository bcoz of dependency then you can use yum install apache mysql php or use rpm -ivh name of the packest.

share|improve this answer

I'd mount DVD that you used to install REDHAT and create yum.repo file and install it off of that disk, all files that you need is already on that disk, worse case scenario just use rpm -ivh file from that directory and you should be able install it even without yum

share|improve this answer
1  
or download the .rpm files to a usb stick, then use good ol' sneaker-net –  brad.lane Sep 16 '09 at 22:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.