LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Where should I install Apache? (http://www.linuxquestions.org/questions/linux-kernel-70/where-should-i-install-apache-4175437708/)

AsherSevyn 11-18-2012 03:02 PM

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

acid_kewpie 11-18-2012 03:34 PM

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.

arun5002 11-18-2012 03:35 PM

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

AsherSevyn 11-18-2012 08:28 PM

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!

sundialsvcs 11-19-2012 06:43 AM

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...

unSpawn 11-19-2012 06:56 AM

Quote:

Originally Posted by AsherSevyn (Post 4832289)
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 (Post 4832289)
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.

AsherSevyn 11-19-2012 11:22 AM

@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.

AsherSevyn 11-19-2012 04:11 PM

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!

acid_kewpie 11-20-2012 02:53 AM

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


All times are GMT -5. The time now is 04:44 AM.