HTTPD='/usr/local/apache2/bin/httpd'In parallel I also looked inside /usr/bin/apacheclt, there the HTTPD var set to
Hello Padmahas,
It looks like your two installations of Apache httpd 2.4 are conflicting with each other.
If I understand correctly, you first installed into /user and then into /usr/local/apache2.
Then you tried to remove the /user installation by deleting files manually.
(As you've seen, /user is not a good choice, because this is used for many other things as well.)
It would probably help to do a fresh installation.
But let's try a few things first.
When tried " sudo /usr/local/apache2/bin/apachectl -k start "
It gave " httpd: Could not open configuration file /usr/conf/httpd.conf: No such file or directory ".
You are probably wanting to use /usr/local/apache2/conf/httpd.conf instead.
What results do you get from sudo /usr/local/apache2/bin/apachectl -V ?
Look inside /usr/local/apache2/bin/apachectl
What is the variable HTTPD set to?
You could try using sudo /usr/local/apache2/bin/apachectl -k start -f /usr/local/apache2/conf/httpd.conf
to override the config file location.
See the following links for further options on the apachectl or httpd commands:
- http://httpd.apache.org/docs/2.4/programs/apachectl.html
- http://httpd.apache.org/docs/2.4/programs/httpd.html
Thanks,
Mike Rumph
On 3/31/2015 3:36 AM, Padmahas Bn wrote:
Thank you.But its giving " httpd: Could not open configuration file /usr/conf/httpd.conf: No such file or directory ".So I supplied full path using " sudo /usr/local/apache2/bin/apachectl -k start "Now when I run the server from /usr/local/apache2 using " sudo apachectl -k start " it says sudo: apachectl: command not foundInstead of having 2 installations I thought of removing the one installed inside /usr and deleted all files manually and carefully from all sub folders of /usr.Now I cd to /usr/local/apache2/bin and run sudo apachectl -k start and the apache server was started successfully. Only later I came to know the server is running from the /usr files installed at first time.Hence I again installed without specifying --prefix option which does installed the apache2 into /usr/local/apache2.Later I came to know if prefix is not mentioned for apache2.4 installation, it will be installed inside /usr/local/apache2 by default.Both were installed successfully. Hence I installed apache 2.4 to the same path ("/usr") using --prefix option while running "./configure" .If anyone finds this as a big question please let me know. I'll precise my problem.I installed apr and apr-utils package in the path "/usr" using the --prefix option.
Steps I followed: