-1

I'm trying to test my virtual host configuration and the below command doesn't work... how can I test this?

/usr/local/apache2/bin/httpd -S

-bash: /usr/local/apache2/bin/httpd: No such file or directory

I got the command from http://httpd.apache.org/docs/2.0/vhosts/

uname -r //returns the below
2.6.16.60-0.54.5-smp
1
  • 1
    Which distro are you using? Did you compile Apache from source or install binary version via package manager? You can find out the path with which httpd or whereis httpd.
    – quanta
    Aug 9, 2011 at 16:52

1 Answer 1

4

If you have installed Apache through your distribution's package management system, it'll be installed in /usr, not /usr/local.

For Fedora/RHEL/CentOS, the main executable file will be /usr/sbin/httpd, while for Debian/Ubuntu you should try /usr/sbin/apache2.

For more information about distribution-specific layout you should check this URL: http://wiki.apache.org/httpd/DistrosDefaultLayout

1
  • on suse its - /usr/sbin/apache2ctl Aug 9, 2011 at 17:13

Not the answer you're looking for? Browse other questions tagged .