Problem with PHP4 as an Apache DSO (SuSe Linux)
| From: | systems | Date: | Thu, 29 Mar 2001 08:30:21 +0000 |
| Subject: | Problem with PHP4 as an Apache DSO (SuSe Linux) | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2615@lists.php.net to get a copy of this message | ||
Hi - can someone help please?
I'm trying to build php (4.0.4pl1) as a shared object, using apxs.
I just used a very basic ./configure --with-apxs on the php side, then
make. And that all seemed ok - no errors reported, and there was an .so
file (./.libs/libphp4.so) produced.
Then I go over to Apache (3.1.19), and do a configure --enable-module=so (or
whatever it is) - anyway when I do 'httpd -l' I see mod_so, as well as a
bunch of other stuff. So that all looks ok.
I add a LoadModule line (pointing to the .so file ) into the httpd.conf
file, and test with:
./apachectl configtest
- this gives:
Syntax eror on line 205 of /usr/local/apache/conf/httpd.conf:
API module structure 'php4_module' in file ..(file name here).. is
garbled - perhaps this is not an Apache module DSO?
I've checked the create time of the libphp4.so file and it's definitely
being created by the php make...
(This is all on SusE Linux 7.1)
Any ideas people? - Sorry if this is a common error!
thanks
Gordon Gallacher
Inverness, Scotland