Page 1 of 1

getting started with PHP

Posted: Wed Aug 07, 2002 3:24 pm
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

Posted: Thu Aug 08, 2002 3:14 am
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

Posted: Tue Aug 13, 2002 12:07 pm
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