apache enable error

Hello, I am studying on how to code using PHP. I followed the instructions, and I get an error on terminal it says like this


root# apachectl start

AH00112: Warning: DocumentRoot [/usr/local/opt/httpd/docs/dummy-host.example.com] does not exist

AH00112: Warning: DocumentRoot [/usr/local/opt/httpd/docs/dummy-host2.example.com] does not exist

httpd (pid 357) already running


i cannot proceed if I cannot solve this issue. Maybe someone can help me?

I am using macbook air m1 2020

I am running MacOS Monterey v12.3


Thank you

Posted on Mar 30, 2022 2:41 AM

Reply

Similar questions

8 replies

Mar 30, 2022 4:56 AM in response to erroldph

You have installed some unusual 3rd party software. I’m afraid you’re on your own with that.


The standard place for 3rd party unix software is /usr/local. One of the older 3rd party package managers used /opt. I’ve never seen both /usr/local and opt used at the same time. It doesn’t surprise me that you would get errors here. Clearly, the people who built that software don’t know what they are doing.


Unfortunately, you are likely to find that uninstalling this software to be even more of a challenge. You might need to erase the hard drive and reinstall the operating system. You can’t restore from backup either because that will restore the crazy software.


I recommend using a virtual machine app to do this web development using Linux.

Mar 31, 2022 5:26 AM in response to erroldph

erroldph wrote:

Last time I have installed flutter installer. I don't know if this is the cause or not?

Flutter?

Flutter is an open source framework by Google for building beautiful, natively compiled, multi-platform applications from a single codebase.

Yeah. Those things never work. People have been trying that for 30 years. Current failure rate is 100%.


You asked a question about Apache. But you are using some convoluted 4th party Apache installation. And you said you want to learn PHP. It is 2022. I would not recommend learning PHP right now unless you also have a Time Machine to take you back to 2002 where you could get some use from it. And now you are taking about some cross-platform app builder?


If you told me what you are really trying to accomplish here, at a very high level, I could give you more meaningful advice.

Apr 1, 2022 5:29 AM in response to erroldph

erroldph wrote:

At first I want to jump ahead on learning a cross platform mobile app development like using flutter/dart but as I researched, they recommend to start first on the fundamentals so that it would be easier for me to understand on more complex/advanced platform

I think they mean you should take some programming classes at your local college. Don’t waste your time with an obsolete web development language from 20 years ago.

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.

apache enable error

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