Home  >  Article  >  Backend Development  >  Problems encountered when configuring apache php environment on Mac?

Problems encountered when configuring apache php environment on Mac?

WBOY
WBOYOriginal
2016-07-06 13:51:55972browse

Using mac's built-in apache2.4 and built-in php5.5.31, apache has enabled the extension module to load php, accessing html files is normal, and accessing php files http://127.0.0.1/index.php will It's 404, but the file actually exists. What's going on?

Reply content:

Using mac's built-in apache2.4 and built-in php5.5.31, apache has enabled the extension module to load php, accessing html files is normal, and accessing php files http://127.0.0.1/index.php will It's 404, but the file actually exists. What's going on?

There is a problem with the apache configuration
http://wangtianbao.org/45.html Check this out

1./etc/apache2/httpd.conf Confirm whether DocumentRoot "is the path to your webserver folder".
2. Confirm whether apache is turned on and start the command sudo apachectl start.
3. I still recommend MAMP for the apache php development environment on mac. The integrated environment is very convenient and can save a lot of trouble.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn