LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Install (https://www.linuxquestions.org/questions/linux-newbie-8/apache-install-362738/)

petenyce 09-12-2005 03:24 PM

Apache Install
 
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???

Thanks in advanced

pete

iggep 09-12-2005 04:34 PM

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.

unreal128 09-12-2005 05:12 PM

You can run
Code:

find / -name apacheconf
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! ;)

http://www.mayukhbose.com/new-apache...acheconfig.php

petenyce 09-13-2005 07:58 AM

thanks
 
thanks for the help very good awnsers going to try today

petenyce 09-13-2005 08:35 AM

problem
 
i ran everything you told me and i go to start the web server and i get this error:

error loading sharded libaries : libsasl2.so.2 ????/

have no idea what this is or how to obtain it did a search on machine not on machine>

thanks

unreal128 09-13-2005 12:37 PM

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.


All times are GMT -5. The time now is 02:43 AM.