Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently removed MAMP as I wanted to have more control over my machine and wanted to make use of PHP5.4 I installed using the script located here I cannot now not even get my default PHP that is built in to osx to work. I am running this script with a simple <?php echo phpinfo(); ?> In a document in my ~/Sites directory. I am really at a loss as to why this will not work. I have php5 installed in my /usr/local directory via the link provided above and it seems like the main php is installed in /usr/bin

Any and all insight on how to debug this would be greatly appreciated.

share|improve this question
up vote 1 down vote accepted

The link isn't working. To see whether your PHP installation is working, you could use the following code in Terminal:

php -f ~/Scripts/your_file.php

Replace "your_file.php" with the path to the actual file you want to check. If it spits out HTML, then PHP is working properly.

It sounds like you might not have an HTTP server configured (that's what MAMP was doing for you). MAMP or something similar is definitely the way to go.

The next version of MAMP will support PHP 5.4, and it looks like BitNami's MAMP Stack already does.


I was unaware of php 5.4's built-in webserver. There are good instructions on how to get it up and running at (I modified this code so it should work in your case):

$ cd ~/Scripts
$ /usr/local/bin/php -S localhost:8000
share|improve this answer
Thank you @speedofmac this info is all great. I ended up reinstalling MAMP PRO last night as I think it must have overwritten some configurations that I was unable to track down. I was able to run my scripts in terminal like you mentioned above but no matter what the browser failed. I am going to download the bitnami stack. A bunch of google searching did not give me these results. Thanks again!! – jnolte Jun 1 '12 at 14:55
I'm glad that you got everything up and running again, and I'm glad that I could help! – speedofmac Jun 2 '12 at 2:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.