After experimenting with Apples Server.App and removing it (for not really needing it) the built-in Apache was no longer functioning and all I could get out of it was; “Websites are turned off. An administrator can turn them on using the Server application.”
The fix is simple, but finding where to fix, …
The file you need to edit; /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo nano /System/Library/LaunchDaemons/org.apache.httpd.plist
remove the bold lines;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Then, unload and load the plist file;
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
4 thoughts on “Restore Apache2 service after removal of Server.app”
Thank you!!Its work perfectly!!God bless you! :D
Works!Thank you very much.
I could not activate the userdir under El Capitan. Modifying the config files in the /etc/ directory was not picked up by apache. But I noted in the plist above the config files for apache and I went and modified the file
and that did the trick.