php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10928 Loading PHP as a DSO fails - "garbled"
Submitted: 2001-05-17 11:31 UTC Modified: 2001-05-21 21:12 UTC
From: dave at mustardresearch dot com Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 4.0.5 OS: Linux Redhat 6.2 Kernel 2.2.17
Private report: No CVE-ID: None
 [2001-05-17 11:31 UTC] dave at mustardresearch dot com
I've built PHP 4.0.5 as a DSO with config:

./configure --with-apxs --with-mysql=no

I'm running Apache V1.3-14 with SSL patches and the config:

./configure --enable-module=info --enable-module=so \
            --prefix=/httpd

When I start apache and try to add PHP I get:

Starting httpsd: Syntax error on line 225 of /httpd/conf/httpd.conf:
API module structure `php4_module' in file /httpd/libexec/libphp4.so is garbled
- perhaps this is not an Apache module DSO?
/httpd/bin/httpsdctl start: httpsd could not be started

I've read through the previous responses on this topic and I've tried 'make clean' and deleting the config.cache in PHP before the build - this doesn't make any difference.

Dave.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-18 04:21 UTC] sniper@php.net
You're most likely using wrong apxs here.
Try using the full path for it. ie.

--with-apxs=/httpd/bin/apxs


--Jani

 [2001-05-21 21:03 UTC] dave at mustardresearch dot com
Yep - spot on - putting the full path for apxs did the trick!

Thanks,

Dave.
 [2001-05-21 21:12 UTC] jmoore@php.net
Closing
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Sep 21 23:01:26 2018 UTC