1

So, I have multiple sites symlinked in my /Sites directory on OSX, so they appear on my localhost/~username , with php and apache enabled. I recently imported another site to the folder, and when I try to navigate to an index.php file on localhost, my browser prompts me to download the file. When I try to navigate to a different *.php file in a different site, the page is served properly. Any clue what's happening?

2 Answers 2

2

Found the problem - turned out that I had a .htaccess file because the files are identical to the production copy, and the file was preventing me from viewing the pages normally. Deleting it fixed the problem.

Sign up to request clarification or add additional context in comments.

Comments

0

I had something similar once, try checking the folders permissions to see if they match the other files/folders in local host.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.