New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Enabling PHP in Mac OS 10.2


Post Reply New Thread Subscribe

 
Thread Tools
dmonk
Guest
 
Posts: n/a

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.
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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.
QUOTE Thanks
dmonk
Guest
 
Posts: n/a

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
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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!
QUOTE Thanks
Fortius
Guest
 
Posts: n/a

Heres a LINK to a OSX instalation tutorial by Kevin Yank of Sitepoint... Its at the bottom of the page!
QUOTE Thanks

Post Reply New Thread Subscribe


« MAC Performance Monitoring | XCode build hangs? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Mac Songs The mac 13 Switcher Hangout 7 05-06-2010 01:35 AM
Is it possible to setup php and databases on pc and mac? knaggsy Web Design and Hosting 7 08-05-2004 07:09 AM
down grading mac OS X 10.2 Se7eN Apple Notebooks 6 10-23-2003 11:25 PM
Bogus PHP bug on Mac OS X... mark Web Design and Hosting 19 10-03-2003 08:34 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 11:57 AM

All times are GMT -4. The time now is 08:27 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?