Kernel_Killer
May 29th, 2003, 23:52
How does one get PHP to work with Apache? I've tried deinstalling and reinstalling the package, but only get the same error. Here's the error I get now:

Syntax error on line 239 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libphp3.so into server: /usr/local/libexec/apache/libphp3.so: Undefined symbol "mysql_drop_db"

Libphp3.so is in the right place, but have no idea what to do with the MySQL part of the error.

frisco
May 30th, 2003, 02:31
Syntax error on line 239 of /usr/local/etc/apache/httpd.conf:
Cannot load /usr/local/libexec/apache/libphp3.so into server: /usr/local/libexec/apache/libphp3.so: Undefined symbol "mysql_drop_db"


It sounds like you don't have libmysql.so in your lib path. if you run ldd on /usr/local/libexec/apache/libphp3.so you'll probably see -lmysqlclient listed, among other things. You need to find/install that library. I'm not very familiar with FreeBSD packages, but it seems that dependencies should have been installed too, so perhaps for some reason libmysqlclient isn't in your lib path by default?

Also, isn't that php3 not php4? Any reason to not go with 4?

Kernel_Killer
May 30th, 2003, 03:57
The question of "why not PHP4?" fixed it. I deinstalled PHP3, and did a 'make install' on PHP4. All is good (I hope). I would like to research 'ldd' and 'objdump' more now that you showed me it was there. :D

soup4you2
May 30th, 2003, 12:23
whenever i needed php and apache i just... (with out apache installed) go into the php4 dir and make install clean from there.. it will snag apache as a dependency and install it properly for php.. then you can go and install your other modules like gzip or perl or whatever you like...

works for me..