Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
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?
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.
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
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...
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.
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.
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