Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Hello,
First time using this forum. Im trying to install apache on my linux redhat 7.2 machine. Now i cant seem to get it to work at all. They say in the book to type in apacheconf & and you can configue it. but i keeps telling me bad command or no such directory. Now whats the easiest way to install apache on my machine? Any thoughts tips???

First of all, ditch Redhat 7.2. You can download (or purchase) any of the current distros, and trust me--will be MUCH happier with them than you would with Redhat 7.2. That distro is about 4-5 years old right now, and will give you tons of hardware issues considering it won't have drivers, etc, for lots of current hardware. Also, there have been a bunch of security updates in the past 4-5 years that you would need to fix as well. So you'd be better served to just go with one of the current distros. I used Mandriva myself, but if you prefer to stick with "Redhat", then Fedora is your distro.

Choose Apache during the install (Fedora and Mandriva both have much better installers than what you saw on RH 7.2). But if you want to do it manually, then I recommend doing it from pkg (RPM) the first time or two to get the hang of it. In Mandriva I use URPMI to automatically download the package I want to install, plus all it's dependencies. URPMI then installs them for me. But you could just as easily head to rpmfind.net and download the package you want yourself, then install it. But you'd need to study the dependices carefully to make sure you download anything else the package needs. There can be quite a bit for Apache.

I know this didn't specifically answer your question, but I see you having a lot of frustrating problems going down the path you're on. Better to get off now while the gettins good.

as root to try and find the program. Once you located it, cd to that directory and then run

Code:

./apacheconf

. I have been working with Apache for about 2 years and more in-depth this last year. It can be very intimidating setting up Apache at first but if you hack at it, you can become a master. There is a file called httpd.conf on your system, which Apache always reads for configuration information. This file is usually packed with comments and messages telling you what each setting does. Dive into this file and you will know Apache alot quicker. It is usually located in /etc or you can use the find command I showed you above.

Using distribution scripts to configure software like Apache can get messy and sometimes screw up your installation. I would recommend editing the httpd.conf file directly. My first time around, it took me a day but I was able to get my website up by the end of it. There are some very good step-by-step tutorials on the Internet as well to get Apache working in a few simple steps. I would google phrases like "apache walkthrough" or "apache install." Here is a direct link showing you how to setup httpd.conf. Good luck!

The one agitating thing that you will first encounter when learning Linux is that dependencies can be a bitch. Sometimes to get one package to install, you need 6 other packages first. The file that you encountered is a library file for a package. In these situations, I usually strip the so.2 to get the package name (libsasl2.) I then google the package name to find out a place where I can download it. Since you are using RedHat, I would recommend sticking to RPM for the install of the package. Once you download the package, you can then run

Code:

rpm -i libsasl2*.rpm

This will install the dependency for you. If you see other library packages pop-up, apply the same technique to finding and installing it.