1

Using XAMPP installed on Mac OS X Mavericks, I've got the servers running and I use my Firefox Dev Edition to navigate to "localhost/my_site/".

Previously, I've been successful with other folders for websites I've created, but this time it's not working. Instead of interpreting the index.php and outputting HTML, it asks if I want to open or download the file.

I click open and it opens my PHP source file in my text editor. I've tried this in Google Chrome and Safari with same results.

Anybody else ever had this problem?

EDIT: For whatever reason, I have overcome the problem by simply creating a new folder and moving the files into the new one. I deleted the "my_site" folder, renamed the new folder to "my_site" and the server is now properly interpreting the PHP again. Freak of nature I guess. Thanks for thinking about it anyway!

closed as unclear what you're asking by Stephen Ostermiller Jan 13 '15 at 11:33

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • "other folders" within localhost? ie. within the same site/virtual host? – MrWhite Jan 11 '15 at 21:36
  • Like "localhost/myothersite/" and "localhost/anothersite/": those work. Just not "localhost/my_site/". – adamdesign Jan 11 '15 at 21:54
  • Is there anything different with the .htaccess file in this directory? – MrWhite Jan 11 '15 at 22:13
  • You might as well add your edit as an answer - you can then accept it, so your question gets removed from the unanswered question queue. Just curious, was the new folder name exactly the same as the old folder name? – MrWhite Jan 11 '15 at 22:45
  • I have closed this because the problem went away for unknown reasons. – Stephen Ostermiller Jan 13 '15 at 11:34

Browse other questions tagged or ask your own question.