XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
Meph
Forum Newbie
Posts: 3 Joined: Mon Nov 11, 2002 8:59 am
Post
by Meph » Mon Nov 11, 2002 8:59 am
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?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Nov 11, 2002 5:27 pm
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?
Meph
Forum Newbie
Posts: 3 Joined: Mon Nov 11, 2002 8:59 am
Post
by Meph » Tue Nov 12, 2002 2:28 am
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.
Meph
Forum Newbie
Posts: 3 Joined: Mon Nov 11, 2002 8:59 am
Post
by Meph » Tue Nov 12, 2002 11:43 am
Never mind, guys. I've already solved this problem.