LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-12-2005, 04:24 PM   #1
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Rep: Reputation: 15
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
 
Old 09-12-2005, 05:34 PM   #2
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
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.
 
Old 09-12-2005, 06:12 PM   #3
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
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
 
Old 09-13-2005, 08:58 AM   #4
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Original Poster
Rep: Reputation: 15
thanks

thanks for the help very good awnsers going to try today
 
Old 09-13-2005, 09:35 AM   #5
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Original Poster
Rep: Reputation: 15
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
 
Old 09-13-2005, 01:37 PM   #6
unreal128
Member
 
Registered: Jun 2003
Distribution: SuSE, Slackware, Gentoo
Posts: 207

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-10-2003 12:16 AM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 03:13 PM
New RH 7.2 install and Apache. Slagazor Linux - Software 1 05-06-2002 03:20 PM
Apache 1.3.24 Install Help Lorddraco98 Slackware 5 04-27-2002 01:18 PM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 09:44 PM


All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration