Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP on Mac OS X (Yeah, yeah, I know...) 1

Status
Not open for further replies.

admoore

IS-IT--Management
May 17, 2002
224
US
Ok, let the flames begin; but, OS X IS based on the BSD Kernel...

Can ANYONE point to a reliable site or give specific details on getting PHP to work on Mac OS 10.1 (or 10.2 as I've got it coming...)????

I got MySQL up & running fine and have been to the following sites; but so far I can't get it to work...



I thought I had it properly compiled & installed; yet, when I point to my test.php file all I get is the source echoed to the browser...

Maybe I screwed it up trying to install it as now (after putzing w/ it) I understand that PHP came w/ 10.1 anyway- Can't find any Apple documentation on how to enable it though & Darwin is NOT the same as my SuSE system!

Anyway, I am not a Mac person by nature- The iBook seemed like a decent enough development platform for Web based PHP/MySQL stuff though as it's SUPPOSED to run all w/ no probs...

I am sure somebody else besides me thought this was a good idea-

TIA for ANY help!
 
Sounds, initially, like your Apache server doesn't know that it's allowed to serve PHP pages. have you

a) configged httpd.conf to tell it how to handle PHP pages?
and
b) restarted apache?

Hope this helps...
inger
 
restarted apache... Yes...

not sure httpd.conf is correct...

lines to check?

TIA,

-ADM
 
You need these lines:
Code:
LoadModule modules/libphp.so
AddModule mod_php4.c
...
AddType application/x-httpd-php .php
The part after LoadModule might be different on your system, that's just what it is on mine. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top