Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rich1812

macrumors regular
Original poster
Oct 4, 2015
117
5
earth
Hi I set up my Mac to be a Apache development web server. I use to be able to type in localost/phpinfo.php
that shows all my php configs, however, recently, onday I typed in phpinfo.php. it just show <?php phpinfo();?> on thr browser, it doesn't seem like the php was parsed, I think I may have deleted a file or something. How do I fix it? Thanks.

Never mind. Shortly after I post this, at bit more digging, for some reasons, when th Mojave installed, the http.conf file was changed. Why in the world this happened?
 
Last edited:

m00min

macrumors 6502
Jul 17, 2012
419
90
If you want to do dev on your mac you might want to look into setting up a Vagrant box or maybe try Docker. Separate out the dev environment from Apple and you won't get those kinds of breaking changes. Also, if you break your dev "box" you can just spin up a fresh version.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.