com.apache.httpd.plist missing file need help creating new one I installed Apache recently and tried to set it up to use launchctl to start it. At first it was giving me an option error code and than all of a sudden it said that the file was missing can anyone help me create a new file for the launch daemon.
i am running 10.10.5 and apache version 2.4.16
The first measure is to reinstall Apache or at least unzip (untar, ungzip etc) or decompose the installer package to get hold of the file.

If you can't find it: here is a generic com.apache.httpd.plist file from GitHub:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
  &lt;key&gt;Label&lt;/key&gt;
  &lt;string&gt;com.apache.httpd&lt;/string&gt;
  &lt;key&gt;ProgramArguments&lt;/key&gt;
  &lt;array&gt;
    &lt;string&gt;/usr/local/httpd/bin/apachectl&lt;/string&gt;
    &lt;string&gt;start&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;RunAtLoad&lt;/key&gt;
  &lt;true/&gt;
&lt;/dict&gt;
&lt;/plist&gt;


Depending on your system version and the flavor (server/client) several different Apple "generated" plists exist. Usually the name is org.apache.httpd.plist.

Example: 

Mac OS X Server 10.7.5

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;Disabled&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;org.apache.httpd&lt;/string&gt;
    &lt;key&gt;OnDemand&lt;/key&gt;
    &lt;false/&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;/usr/sbin/httpd&lt;/string&gt;
        &lt;string&gt;-D&lt;/string&gt;
        &lt;string&gt;FOREGROUND&lt;/string&gt;
        &lt;string&gt;-D&lt;/string&gt;
        &lt;string&gt;MACOSXSERVER&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;SHAuthorizationRight&lt;/key&gt;
    &lt;string&gt;system.preferences&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;


The original (unmodified) org.apache.httpd.plist of OS X 10.10.5 Client

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
&lt;dict&gt;
    &lt;key&gt;Disabled&lt;/key&gt;
    &lt;true/&gt;
    &lt;key&gt;EnvironmentVariables&lt;/key&gt;
    &lt;dict&gt;
        &lt;key&gt;XPC_SERVICES_UNAVAILABLE&lt;/key&gt;
        &lt;string&gt;1&lt;/string&gt;
    &lt;/dict&gt;
    &lt;key&gt;Label&lt;/key&gt;
    &lt;string&gt;org.apache.httpd&lt;/string&gt;
    &lt;key&gt;OnDemand&lt;/key&gt;
    &lt;false/&gt;
    &lt;key&gt;ProgramArguments&lt;/key&gt;
    &lt;array&gt;
        &lt;string&gt;/usr/sbin/httpd-wrapper&lt;/string&gt;
        &lt;string&gt;-D&lt;/string&gt;
        &lt;string&gt;FOREGROUND&lt;/string&gt;
    &lt;/array&gt;
&lt;/dict&gt;
&lt;/plist&gt;


Please copy &amp; paste it into text file a and safe it with admin rights to /System/Library/LaunchDaemons/ with the name org.apache.httpd.plist.
Afterwards you may have to change the permissions/ownership to 644/root:wheel.