Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was finally able to install Apache 2.2.6 on my Red Hat Enterprise Linux 4 box by uninstalling the version that came with it (2.0.59) and downloading and installing the Apache 2.2.6 files from Apache's website. If I open a browser and go to localhost, the screen reads "It Works!", so it looks like apache is installed, but why is there no httpd service under services? Also, when I type in "rpm -q httpd", it says "package httpd is not installed". The file I downloaded from the Apache website was the httpd-2.2.6.tar.gz file. I did the whole "./configure, make, make install, apachectl start" and it worked, I guess, but why no httpd service? Thanks.
If you install a package from source, RPM will not know about it. It only knows about packages that were installed via the rpm command (and related tools such as yum etc). Since you compiled from source, you have to setup the httpd service on your own. You can do this by copying the apachectl file to /etc/init.d and do
Building and installing software from source tarballs will not be reflected in RPM's knowledge of what is installed. Only packages installed by rpm will be known to it.
You may have to configure apache to start and stop as a service by creating and adding the appropriate shell scripts to the /etc/rc.d/..... directories. Installing apache as an RPM might have done this for you. Examine the files and directories in /etc/rc.d and its subdirectories, and also the man page for chkconfig. I believe the 'apachectl' script can be set up as a service, and is probably intended as such.
--- rod.
If you install a package from source, RPM will not know about it. It only knows about packages that were installed via the rpm command (and related tools such as yum etc). Since you compiled from source, you have to setup the httpd service on your own. You can do this by copying the apachectl file to /etc/init.d and do
You may have to edit apachectl so that it works correctly on your system.
Thanks for the reply. Can you give me some more detail, here? I copied the apachect1 file to /etc/init.d. When I ran the "chkconfig --add httpd" I got an error message: "error reading information on service httpd: No such file or directory". I'll logged in as root. Which directory do I need to run the chkconfig command from? I tried it in a bunch of different directories, but nothing worked. Thanks.
Generally it is wise to use RPM in RHEL to ensure one can remove and update packages cleanly.
However if you use own packages you will not benefit from official Red Hat httpd updates that are thoroughly tested and tend to be very secure and stable.
Thanks for the reply. Can you give me some more detail, here? I copied the apachect1 file to /etc/init.d. When I ran the "chkconfig --add httpd" I got an error message: "error reading information on service httpd: No such file or directory". I'll logged in as root. Which directory do I need to run the chkconfig command from? I tried it in a bunch of different directories, but nothing worked. Thanks.
When you copy apachectl to /etc/init.d, you have to rename it to httpd. When you run chkconfig, it does not matter which directory you are in.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.