Page 1 of 1

Problems with PHP4 on FreeBSD using Apache... help...

Posted: Mon Nov 11, 2002 8:59 am
by Meph
After compiling php 4.2.3 on FreeBSD 4.7 and trying to link it with Apache 1.3.27 as module I got following error on apache:

Code: Select all

Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: Undefined symbol "core_globals"
This error might be because of register_globals set to off in php4.
What can I do with it?

Posted: Mon Nov 11, 2002 5:27 pm
by volka
  • only guessing
  • did you enable Dynamic Shared Objects (DSO) for apache? http://httpd.apache.org/docs/dso.html
  • did you use the right --with-apache=/path/to/apx directive when configuring php-build?

Posted: Tue Nov 12, 2002 2:28 am
by Meph
Apache was installed to /usr/local/apache with DSO enabled.
Configure for php looks like:

Code: Select all

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
Then I copied php.ini to /usr/local/lib.
httpd.conf was properly edited. Php configure script added string LoadModule ... and I added AddType application/x-http-php .php
That's it. It doesn't work. :(

Posted: Tue Nov 12, 2002 11:43 am
by Meph
Never mind, guys. I've already solved this problem. :twisted: