| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-18-2012, 03:02 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2010
Posts: 26
Rep:
|
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
|
|
|
|
11-18-2012, 03:34 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,827
|
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.
|
|
|
|
11-18-2012, 03:35 PM
|
#3
|
|
Member
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 528
Rep: 
|
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
|
|
|
|
11-18-2012, 08:28 PM
|
#4
|
|
LQ Newbie
Registered: Jul 2010
Posts: 26
Original Poster
Rep:
|
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!
|
|
|
|
11-19-2012, 06:43 AM
|
#5
|
|
Senior Member
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 4,578
|
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...
|
|
|
|
11-19-2012, 06:56 AM
|
#6
|
|
Moderator
Registered: May 2001
Posts: 24,969
|
Quote:
Originally Posted by AsherSevyn
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
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.
|
|
|
|
11-19-2012, 11:22 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2010
Posts: 26
Original Poster
Rep:
|
@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.
|
|
|
|
11-19-2012, 04:11 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2010
Posts: 26
Original Poster
Rep:
|
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!
|
|
|
|
11-20-2012, 02:53 AM
|
#9
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,827
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:05 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|