getting started with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ace
Forum Newbie
Posts: 8
Joined: Wed Aug 07, 2002 3:24 pm

getting started with PHP

Post by ace »

Hi,

I am trying to configure 10.1.5 (client) for PHP. From what I have read, I have to uncomment the following 4 lines from my httpd.conf file:

# LoadModule php4_module libexec/httpd/libphp4.so
# AddModule mod_php4.c

and:

# AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps

The last two are there but the first two are nowhere to be found.
Also the path in the first line can not be found: libexec/httpd/libphp4.so (via sherlock or a manual search - hidden files included)
PHP is definitely in the System/Library folder.

Any help would be appreciated.

Thanks,
Glenn
darkshine
Forum Newbie
Posts: 15
Joined: Wed Aug 07, 2002 4:15 am
Location: paris, france

Post by darkshine »

first, checkj your apache module in /usr/local/apache/.../modules
You should see libphp4.so somewhere ...
other wise try a serach with : sudo find / -name libphp4.so -print
you go it?
otherwise download it from http://www.phpmac.com/...?
then recompile apache with you dso --
./configure --with-apxs /usr/local/modules/libphphp4.so
ace
Forum Newbie
Posts: 8
Joined: Wed Aug 07, 2002 3:24 pm

Post by ace »

Yup, they we're there, just not where I initially expected.

All I had to do was add those two missing lines of code.

Glenn
Post Reply