Setting path for apache

view story

http://askubuntu.com – I installed apache2 on my local machine, and when typing "which apache2" it returns: "/usr/sbin/apache2". And when trying setting path for apache2 by using the following command: "sudo apache2 -settingpath /usr/sbin/apache2" It failed! It failed because whenever I restart apache2 using "apache2 restart", I always receive error message telling me that I used the wrong user id. So could you help me set path for Apache http server on Ubuntu 12.04? Thank you! (HowTos)