View Full Version : PHP on Mac OS X
PowerMacX
2004.01.30, 05:01 PM
Hi, well... this isn't really 100% related to games but...
How do I enable PHP on the standard apache server on Phanter? I edited httpd.conf, and restarted the server in about 30 different ways and it still doesnt work! :mad:
Any ideas?
(BTW, I added mod-info and it shows that the php module IS loaded :blink: , but it doesnĄt do anything!!!)
djohnson
2004.06.24, 09:26 AM
I am curious if anyone figured this out yet. I was having the same problems for a while... Next week I will finally get my 15" PowerBook and can use my Beige G3 for more development issues. This is one of the first things I will get working.
Steven
2004.06.24, 09:37 AM
Did you remember to add mod_php as a handler for the right mime types? The directions are on the website...
arekkusu
2004.06.24, 10:11 AM
ghostwheel:/etc/httpd arekkusu$ diff httpd.conf httpd.conf.default
239c239
< LoadModule php4_module libexec/httpd/libphp4.so
---
> #LoadModule php4_module libexec/httpd/libphp4.so
282c282
< AddModule mod_php4.c
---
> #AddModule mod_php4.c
1064d1063
< AddType application/x-httpd-php .phtml
Then reboot. Locally-served PHP pages work fine here.
djohnson
2004.06.24, 11:06 AM
Thanks, I will try this next week when I get my PowerBook and can you my G3 for development.
PowerMacX
2004.06.24, 02:51 PM
OK, I originally posted this question on January, and it got a lot of answers (that didn't make the backup)
Anyway, it turned out that everything was working fine, but I was entering the wrong address (that is, is not just "localhost/yourwebpage.htm")
What is the right address? Well, since then I've erased my test files, but if I recall correctly, you had to include your "computers name" something like "jhondoe-computer".
If anyone knows exactly what the url should be, please post it here.
http://127.0.0.1/test.php ? Make sure you have the PHP suffix, otherwise it won't parse it.
Carlos Camacho
2004.06.25, 02:18 AM
Go here http://www.entropy.ch , save yourself grief. Then send him a donation.
Cheers
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.