With Mavericks, Apple has removed the activation of the Apache Web Server from the "System Preferences" application.
Anyway it has been installed with your new operating system, you need only a way to activate it.
Just to verify the presence of apache, open a Terminal Window and issue the following command:
$ which httpd
the result should be the following
/usr/sbin/httpd
and then verify what is httpd:
host-001:LaunchDaemons $ man httpd
it should show an output like the following:
HTTPD(8) httpd HTTPD(8)
NAME
httpd – Apache Hypertext Transfer Protocol Server
SYNOPSIS
httpd [ –d serverroot ] [ –f config ] [ –C directive ] [ –c directive ] [ –D parameter ] [
–e level ] [ –E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ –R directory ] [
–h ] [ –l ] [ –L ] [ –S ] [ –t ] [ –v ] [ –V ] [ –X ] [ –M ] [ –T ]
…………………………………
…………………………………
Type "q" to exit from the man page
Now let's start the server
The launchctl command can help us, run the following command:
$ sudo -s launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
To verify that the server is running open safari and in the address field insert http://127.0.0.1
It works!
To deactivate the Apache Web Server, switch to the Terminal.app window and issue the following command:
$ sudo -s launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
To verify, switch again to the Safari Web Browser and reload the page, You will see something like the following picture:
That's all, nothing more.
Gg1