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

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Meph
Forum Newbie
Posts: 3
Joined: Mon Nov 11, 2002 8:59 am

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

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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?
User avatar
Meph
Forum Newbie
Posts: 3
Joined: Mon Nov 11, 2002 8:59 am

Post 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. :(
User avatar
Meph
Forum Newbie
Posts: 3
Joined: Mon Nov 11, 2002 8:59 am

Post by Meph »

Never mind, guys. I've already solved this problem. :twisted:
Post Reply