D AP_TYPES_CONFIG_FILE="/private/etc/apache2/mime.types" D DEFAULT_SCOREBOARD="logs/apache_runtime_status" D DEFAULT_PIDLOG="/private/var/run/httpd.pid" Let’s get started: Enable Apache Web Server Step-1.
Mac os x apache run nohup how to#
In this tutorial we will go over steps on how to enable those on Mac. Mac OS X comes by default with Apache Web Server and PHP. D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) Mac runs on base Unix foundation so mainly you could install almost all Linux/Unix software on Mac very easily. # (look for this line `SERVER_CONFIG_FILE`, the last line here) If you don't know where is Apache's nf file: # Run this command to find where is nf # running httpd, as with most system services. # It is usually good practice to create a dedicated user and group for # User/Group: The name (or #number) of the user/group to run httpd as. On Mac OS X 10.6 (Snow Leopard), make sure to install the optional 10.4 SDK with XCode. If you want to use a newer version than the one that is shipped with your Mac OS X installation media, you need to register at the Apple Developer Connection site (free of charge) to be able to download it. # httpd as root initially and it will switch. Mac 10.4 SDK XCode version 2.4.1 or any XCode 3. PidFile: "/usr/local/var/run/httpd/httpd.pid"Īlso, to check and/or change, you can go to your nf file and look for the following part: # If you wish httpd to run as a different user or group, you must run Mutex default: dir="/usr/local/var/run/httpd/" mechanism=default Main ErrorLog: "/usr/local/var/log/httpd/error_log" You can check by running this command: $ sudo apachectl -D DUMP_RUN_CFG