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?
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.