Web server doesn't start after upgrade from Yosemite to High Sierra

I have a web server running on my desktop Mac just for learning purposes, and to test pages (not for public access). Prior to the upgrade, I had a simple html homepage for my browser. After the upgrade, it would not load. I tried to start apache using the apachectl start command, but it says "service already loaded." and I the webpage still doesn't display. Running the ps command and grepping for apache doesn't show a daemon running (see below). Maybe High Sierra uses a different command to start apache? Maybe web services are done differently from the older Yosemite version? Any help would be appreciated.


vangogh:~ dude$ sudo apachectl start

Password:

/System/Library/LaunchDaemons/org.apache.httpd.plist: service already loaded

vangogh:~ dude$

vangogh:~ dude$ ps | grep apache

vangogh:~ dude$



Posted on Jun 12, 2022 12:58 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 13, 2022 10:41 PM

I figured it out. The High Sierra upgrade overwrote the /etc/apache2/httpd.conf file with a new one, with default settings. I had to edit it appropriately with your web server specific info. Now it works.


Similar questions

6 replies

Jun 13, 2022 5:53 PM in response to robroper

My bad, I needed the options -ef for the ps command. 4 httpd daemons are running. So it's not loading the webpage for some other reason.


vangogh:~ dude$ sudo ps -ef | grep httpd

0 96 1 0 Sat03AM ?? 0:08.05 /usr/sbin/httpd -D FOREGROUND

70 236 96 0 Sat03AM ?? 0:00.02 /usr/sbin/httpd -D FOREGROUND

70 842 96 0 Sat12PM ?? 0:00.02 /usr/sbin/httpd -D FOREGROUND

70 873 96 0 Sat12PM ?? 0:00.02 /usr/sbin/httpd -D FOREGROUND

502 8482 4870 0 6:52PM ttys000 0:00.00 grep httpd

vangogh:~ dude$


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Web server doesn't start after upgrade from Yosemite to High Sierra

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.