PHP broken in Tiger May30 '05

I just noticed this morning that PHP is no longer working on my local system. This probably has something to do with my recent upgrade to Mac OS 10.4 (Tiger).

A trip to http://127.0.0.1/~matt/index.php returns my naked PHP code, in the browser:

<?php
phpinfo();
?>

Somebody get him some clothes! He can’t walk around naked like that!

Location of PHP on Mac OS X

On Mac OS X, PHP is installed and located in the folder /usr/local/.

To navigate to this hidden folder, go to the Finder menu, and select Go > Go to Folder, or hit the keyboard combination Command + Shift + G.

In the text field, type /usr/local/:

You should then be taken to that folder, in the Finder:

As you can see, the PHP folder exists in this place.

The Tiger hunt for PHP

Although access to the PHP folder is convenient, it doesn’t make my problem disappear. PHP still does not render.

If there is some setting in that folder that I need to change, I would not have the slightest idea what it is, or how to do it.

I have a feeling it is not a setting that needs to be changed, but perhaps Tiger doesn’t know where to find the PHP folder. Because, if PHP is installed (which it is, in my case), then there shouldn’t be any problems.

Marc Liyanage

It doesn’t look like Marc Liyanage has updated his PHP page for Mac OS 10.4, yet.

Until he does, I’m afraid many of us may experience this PHP problem.

Categories: Operating System , PHP

Add Feedback (view all)

Leave feedback

Feedback

Input format: The editor controls below will assist with Markdown syntax.

Status

Sub-status

Your info

No problems here. I enabled php on a friend's tiger install yesterday. Just make sure you have uncommented the correct things in /etc/httpd/httpd.c ... Read more.

Thanks, Dale. I might just try a re-install of PHP. I restarted Apache, to no avail. I also searched for some info on which lines are ... Read more.

You need to un-comment #LoadModule php4_module libexec/httpd/libphp4.so and #AddModule mod_php4.c ... Read more.

matthom is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.

Contact Matt

Similar Entries

Stats

3 unique visits since January 2009

Syndicate

Advertisements