LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache 2.4 on ubuntu 12.4 (https://www.linuxquestions.org/questions/linux-newbie-8/apache-2-4-on-ubuntu-12-4-a-4175421248/)

abhishekgit 08-09-2012 02:10 PM

Apache 2.4 on ubuntu 12.4
 
Hey everyone,
I have successfully configured apache 2.4 on sabayon linux. I recently switched to ubuntu. I have a problem to configure it here. After installing using sequence of conventional commands, I can see the apache executables in /usr/local/apache2. They are all present!. But if i run, for instance httpd -d, I get this
Code:

No command 'httpd' found, did you mean:
 Command 'xttpd' from package 'xtide' (universe)
httpd: command not found

Kindly help. Thanks...

kenneth_phough 08-09-2012 03:41 PM

because httpd doesn't exist. it's apache2. For example to start the web server, in your case you would do
Quote:

apache2ctl start
or

Quote:

/etc/rc.d/init.d/apache2 start
instead of

Quote:

httpd start
or

Quote:

/etc/rc.d/init.d/httpd start
so if you want to do httpd -d
do apache2 -d


All times are GMT -5. The time now is 09:28 AM.