Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
A PC has RedHat 4.0 EL Edition and has Apache 2.0.52 running. The path of this version is /etc/httpd. The config file is in /etc/httpd/conf/httpd.conf. The htdocs directory is /var/www/html.
I got Apache 2.2.2 and did .configure, make and make install. Now, all this is in /usr/local/apache2 where htdocs, conf, bin etc folders are present
I did service httpd stop. Got into /usr/local/apache2/bin and ran apachectl. Even tried running httpd. Both seem to be executing - since no errors pop up.
But the index.html loaded is the one from /var/www/html and not /usr/local/apache2/htdocs.
I did service http fullstatus and it showed Apache 2.0.52 !
How come its not showing 2.2.2 even after running httpd in /usr/local/apache2/bin ?
I dont want to delete Apache 2.0.52 folder and files but want the service stopped or removed from startup and replace it with the new one located at /usr/local/apache2.
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
Quote:
Originally Posted by anjanesh
Got into /usr/local/apache2/bin and ran apachectl. Even tried running httpd. Both seem to be executing - since no errors pop up.
try ./apachectl and ./httpd. The current folder is not in the default path in linux. So if you just type apachectl, it will use the one it finds in the path (type which apachectl to find out which one).
Oh...right ! How could I've missed this one ! Even though Im not using the linux machine now, Im sure this was the problem. Will let you know how it went once I sit at the linux machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.