LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 11-18-2012, 03:02 PM   #1
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Rep: Reputation: 0
Where should I install Apache?


I am using Centos and I have downloaded the source version of Apache and unzipped it. It's currently in my home directory. Where so I need to move it and install it to make sure it will run on startup?

Thanks in advance!

-Ash
 
Old 11-18-2012, 03:34 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
this has nothing to do with Linux Kernels.

Why do you want to install from source? Very little to go on here, but TBH as you're asking where it should go, it suggests you shouldn't be compiliing it in the first place. what's wrong with just using the standard packages for your distro? The location of it will bare no relation to its ability to run on boot.
 
Old 11-18-2012, 03:35 PM   #3
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
What Distro of Operating system you are using ? If you are using Rhel/Centos based why dont you install Apache using Yum Repository .If you are trying to install Apache using source ball.Look these link

http://www.zrinity.com/developers/apache/apache2src.cfm
 
Old 11-18-2012, 08:28 PM   #4
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
I am installed Apache from source because it's an assignment in my Linux class. the teacher specifically asked we install from source. We are using Centos. I have installed Apache.

My main challenge is getting apache set to run on boot. I've read quite a few forums and nothing is working. What is the proper way to tell Apache to start on bootup in Centos?

Thanks!
 
Old 11-19-2012, 06:43 AM   #5
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,231

Rep: Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071Reputation: 1071
Y'know, it's kinda sorta the purpose of a h-o-m-e-w-o-r-k assignment that you are to figure this stuff out on your own, and asking your teacher for guidance. As for me, I'm never gonna hire someone who turns to the Internet to tell him or her how to do the job...
 
Old 11-19-2012, 06:56 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,952
Blog Entries: 54

Rep: Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732Reputation: 2732
Quote:
Originally Posted by AsherSevyn View Post
My main challenge is getting apache set to run on boot. I've read quite a few forums and nothing is working.
Instead of saying that post what resources you used to figure out how you should make Apache come up on boot and post what steps you took.


Quote:
Originally Posted by AsherSevyn View Post
What is the proper way to tell Apache to start on bootup in Centos?
Code:
sudo rpm -q httpd 
sudo yum -y install httpd
sudo chkconfig --level 345 httpd on
In your case pick two of the files in /etc/(rc.d/)init.d/, read and compare their contents to see if you get the idea. Then copy one to a new file in /etc/rc.d/init.d, edit the command line to start the application and post your result.
 
Old 11-19-2012, 11:22 AM   #7
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
@sundialsvcs

Apache isn't covered in our school text and our teacher regularly asks for us to do things that aren't in the book and aren't covered in class. It's very common for our teacher to do this. These tasks are usually trivial and our teacher literally said that he expects us to use the net and whatever means necessary to find answers. However, sometimes I get stuck and since my homework is due tomorrow and our teacher is only available the one day a week that I go to school it makes it difficult to find a solution when I get stuck, hence my post here. If this isn't the appropriate place for me to ask these questions I can go somewhere else, I've just been fortunate enough to get help from some talented people here in the past and I am very grateful for that.
 
Old 11-19-2012, 04:11 PM   #8
AsherSevyn
LQ Newbie
 
Registered: Jul 2010
Posts: 26

Original Poster
Rep: Reputation: 0
I ran: sudo chkconfig --level 345 httpd on

I have tried the: sudo chkconfig --level 345 httpd on

but I got this error.

error reading information on service httpd: No such file or directory

What directory do I need to be in?

Thanks!
 
Old 11-20-2012, 02:53 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
apache installed from source will not install a service script, as it has no idea what distro, or even operating system, it's being built on. there may be a "contrib" directory in the source which contains a service script you can manually copy to /etc/init.d
 
  


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
Cpanel: Install Apache in different folder than: /usr/local/apache xbaez Linux - Server 0 10-05-2009 10:32 PM
install php post apache install tekmann33 Linux - Newbie 2 10-10-2007 02:09 AM
manually install mysql, php, and apache or install from CD? FiveFlat Linux - Software 5 12-15-2005 01:12 PM
RH8.0 : Need to uninstall Apache 2 and install Apache 1 ericcarlson Linux - Software 1 02-10-2003 02:13 PM
Removing apache rpm and install apache from source john lee Linux - Software 2 11-15-2001 08:44 PM


All times are GMT -5. The time now is 08:46 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration