Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Msh100

macrumors newbie
Original poster
Mar 9, 2007
3
0
Well , like the title says ,

How do i install PHP ,i tried , and tried ,and tried lol
 
looks like it is already there:

$ which php
/usr/bin/php
$

$ ls -ltr php.ini.default
-r--r--r-- 1 root wheel 38710 Nov 1 21:11 php.ini.default
$
 
All you have to do is to activate the apache webserver (System preferences -> Sharing -> Services -> Personal Web Sharing).

But before you do that you need to edit your http.conf file to include the php modules:

- find the file /etc/httpd/httpd.conf
- open that using your favourite text editor
- find these lines (line number may vary slightly) and remove the '#' to uncomment/
240: #LoadModule php4_module libexec/httpd/libphp4.so
284: #AddModule mod_php4.c
- exit and save the http.conf file (should require authentification and/or admin password)
- (re)start the Personal Web Sharing and access whatever is in your ~/Sites/ folder on http://localhost/~yourname/
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.