以下のコマンドを実行します.
$ sudo /usr/sbin/httpd -D FOREGROUND $ sudo /usr/sbin/apachectl start
もし
No such file or directory: httpd: could not open error log file /private/var/log/apache2/error_log
とエラーが出た場合は
$ mkdir -p /private/var/log/apache2 $ touch /private/var/log/apache2/error_log
を作成しておきます.
$ ps aux | grep httpd
と実行して,
_www 856 0.0 0.1 2478336 4784 ?? S 1:02PM 0:00.01 /usr/sbin/httpd -D FOREGROUND _www 855 0.0 0.0 2478080 2268 ?? S 1:02PM 0:00.02 /usr/sbin/httpd -D FOREGROUND _www 853 0.0 0.0 2478080 2260 ?? S 1:02PM 0:00.03 /usr/sbin/httpd -D FOREGROUND _www 849 0.0 0.1 2478336 5088 ?? S 1:02PM 0:00.04 /usr/sbin/httpd -D FOREGROUND _www 848 0.0 0.0 2478080 2268 ?? S 1:02PM 0:00.02 /usr/sbin/httpd -D FOREGROUND _www 847 0.0 0.0 2478336 4152 ?? S 1:02PM 0:00.03 /usr/sbin/httpd -D FOREGROUND _www 844 0.0 0.1 2478336 5004 ?? S 1:02PM 0:00.09 /usr/sbin/httpd -D FOREGROUND root 843 0.0 0.1 2478080 10480 ?? Ss 1:02PM 0:00.32 /usr/sbin/httpd -D FOREGROUND rilakkuma3xjapan 942 0.0 0.0 2432784 604 s000 S+ 2:02PM 0:00.00 grep httpd
のように表示されていればOKです.