mac - MAMP PRO won't execute PHP files?
2013-08
For some reason, PHP files display as plain text in the browser when I browse locally via MAMP PRO.
I looked through the PHP settings and there doesn't seem to be anything there that would affect this: http://i.stack.imgur.com/g4Gfp.png
I ran phpinfo(); and it's showing version 5.4.10 running fine.
Any ideas?
Edit: Fixed it. Turns out I had an .htaccess files in the parent directory, with the following line in it:
AddType x-mapp-php5 .php
Removed the file and now PHP executes properly. I guess I don't need to have this .htaccess file on my local machine.
I installed MAMP a while ago and didn't enjoy it very much, so I uninstalled it (moved from Applications to Trash). Today I discovered that there are still MAMP files on my machine, but I can't seem to do anything about them.
Here's what's happening. If I do locate MAMP
in Terminal, I get a long list of files like this:
- /Applications/MAMP
- /Applications/MAMP/Icon
- /Applications/MAMP/LEAME.rtf
- /Applications/MAMP/LIESMICH.rtf
- /Applications/MAMP/LISEZ-MOI.rtf
- /Applications/MAMP/Library
So, naturally, I go to my Applications folder to remove the files, but MAMP is nowhere to be found.
Furthermore, terminal-ing to the Applications folder (cd ~/../../Applications
) and trying to delete it (rm MAMP
) leads to a 'no such file' message.
What's going on?
Locate is not a real time search. It runs periodically to update a database of all file locations. What's probably happening is your locate database is outdated.
Applications create helper files to assist in running the application and storing data.You might also want to check ~/Library
and /Library
for other files.
When I delete applications I use AppZapper. It searches for other files and gives you the option to remove those as well as the core application.