Enabling PHP in Mac OS 10.2

D

dmonk

Guest
I'm trying to enable the PHP that's installed in my Mac os 10.2

I have my Terminal >open
I just opened the httpd.conf file though PICO

and found the following lines:

# LoadModule php4_module
# AddModule mod_php4.c

and uncommented both of them by removing the "#".


The instructions I have mention that I should also un-comment these two lines:

# AddType application/x-httpd-php .php
# AddType application/x-httpd-php .phps

But I wasn't able to find them in the file (httpd.conf)

I'm beginning to wonder if these instructions are outdated?
(The instructions are for OS X but I have OS 10.2 -- could that be the problem? )

Any one have any ideas?

-Gracias in advance.
 
Joined
Jun 11, 2003
Messages
4,915
Reaction score
68
Points
48
Location
Mount Vernon, WA
Your Mac's Specs
MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
Could you send me your httpd.conf file and I will tell you what you need to do, thanks! Go ahead and send me a private message.
 
OP
D

dmonk

Guest
Lines are missing from httpd.conf on OS 10.2

Murlyn:

I just found an answer to my question this very second!!

Here is the answer for posterity (I noticed others were wondering about this too). Hopefully this will save someone else some googling time.

//==========Quote============================
When running through the article, you'll notice that the 3rd and 4th line that are commented on in httpd.conf do not exist. What you must do is add this line (I added it at the end with a comment):

AddType application/x-httpd-php .php

Your PHP test page should now work, and no longer shows up as simple text in your browser.

//==========Quote============================

SOURCE:
http://www.oreillynet.com/cs/user/view/cs_msg/10386
 
Joined
Jun 11, 2003
Messages
4,915
Reaction score
68
Points
48
Location
Mount Vernon, WA
Your Mac's Specs
MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
well good.. that's what I was wondering if that was the case :) Im quite good with the httpd.conf file so I was hoping to spot something like that within your file.. great to hear it's taken care of! :)
 
OP
F

Fortius

Guest
Heres a LINK to a OSX instalation tutorial by Kevin Yank of Sitepoint... Its at the bottom of the page! :)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top