I just got my own dedicated server running Red Hat 7.2 and I'm wanting to learn how to administer it. Can somebody tell me how I'm supposed to upload packages such as PHP, Perl, MySQL, and any other software I'd like to install?

I know it's supposed to be untarred in the /usr/local directory but how do I get it there? Do I need to FTP to /home/user, upload the files, then somehow move them from /home/user to /usr/local? If so, how can I move them?

Say I compile Perl under /user/local/perl will the shebang line for Perl scripts be #!/usr/bin/perl?

Best Regards,

John

    This is a loaded question and you seem to have a lot to learn (don't worry, we've all been there.)

    Grab yourself an easy Linux book and get familiar with the shell commands. You have to learn how to move files, copy files, change directories, etc.

    There are a million ways to do this but I typically FTP everything I'm going to need into the temp directory first.

    Afterwards, You telnet (or ssh) into the server. Once you are in, become root (su root) and then change into the temp directory(cd /tmp). Then you can untar the files into the local directory with one command.
    tar zxvf php-version.tar.gz -C /usr/local

    To explain everything, this would have to be a 50 page email. The best thing to do is learn the basic Linux commands and then follow a tutorial. There is a good one for installing Apache, MySQL, PHP, etc. at www.e-gineer.com.

    Do take note that most of these programs have most likely already been installed with the OS so all you have to do is configure them to your liking. (to test if they are there type whereis php or whatever) If they haven't been, the easy way out is to grab and install the rpm files from the redhat website.

    If your goal is to really learn linux, however, I would reinstall linux without these programs (or just remove them) and do everything from scratch. It's really the only way to have total control and understanding or what's running on your system.

    Good luck!

    John Saunders wrote:

    I just got my own dedicated server running Red Hat 7.2 and I'm wanting to learn how to administer it. Can somebody tell me how I'm supposed to upload packages such as PHP, Perl, MySQL, and any other software I'd like to install?

    I know it's supposed to be untarred in the /usr/local directory but how do I get it there? Do I need to FTP to /home/user, upload the files, then somehow move them from /home/user to /usr/local? If so, how can I move them?

    Say I compile Perl under /user/local/perl will the shebang line for Perl scripts be #!/usr/bin/perl?

    Best Regards,

    John

      Write a Reply...