Getting PHP running on Mac OS 10.1

By: Lanhel Emailed: 1644 times Printed: 2119 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Getting PHP running on 10.1 is simple. 

1. su to root 
2. Edit /etc/httpd/httpd.conf 
3. Uncomment "Load Module php4_module" line. 
4. Uncomment "AddModule mod_php4.c" line. 
5. Uncomment "AddType application/x-httpd-php .php" line. 
6. Uncomment "AddType application/x-httpd-php-source .phps" line. 
7. Find "<Directory /home/*/Sites>" block and uncomment the entire Directory directive block. 

This will allow PHP to execute from ~/Sites directory.


macos Home | All macos Tutorials | Latest macos Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(1)


1. View Comment

I am using MacOSX 10.5.4 and only enabling the mod_php5 wasn't enough to get the PHP support. I had to add following block before I could use php on machine -

<IfModule mod_php5.c>
# If php is turned on, we respect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

# Since most users will want index.php to work we
# also automatically enable index.php
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>


View Tutorial          By: Sachin at 2011-03-26 00:23:05

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Lanhel
Getting PHP running on Mac OS 10.1

More Tutorials in macos
Getting PHP running on Mac OS 10.1
Installing gedit for python programming in Mac OS X
What is Mac OS X?
History of Mac OS X
Major features of Mac OS X
Different Versions of Mac OS X
What is new in Mac OS X Snow Leopard
alias, unalias in Mac OS X
apropos in Mac OS X
awk in Mac OS X
basename in Mac OS X
bash in Mac OS X
bg in Mac OS X
bless in Mac OS X
break in Mac OS X

More Latest News
Most Viewed Articles (in macos )
Installing gedit for python programming in Mac OS X
alias, unalias in Mac OS X
awk in Mac OS X
bash in Mac OS X
bless in Mac OS X
break in Mac OS X
cal, ncal in Mac OS X
caller in Mac OS X
chflags in Mac OS X
chgrp in Mac OS X
chmod in Mac OS X
chroot in Mac OS X
comm in Mac OS X
continue in Mac OS X
crontab in Mac OS X
Most Emailed Articles (in macos)
Installing gedit for python programming in Mac OS X
basename in Mac OS X
What is new in Mac OS X Snow Leopard
apropos in Mac OS X
cp in Mac OS X
cut in Mac OS X
awk in Mac OS X
bash in Mac OS X
cd in Mac OS X
cksum in Mac OS X
complete in Mac OS X
curl in Mac OS X
History of Mac OS X
bg in Mac OS X
bless in Mac OS X