Testing the Apache web server consists of at least the following two steps:
The Apache server is started like this:
/usr/local/bin/httpd -d /usr/local/lib/apache
Note that this command may vary, depending on the location of your httpd program and your Apache installation directory. This is the normal command for a default installation.