Link to home
Start Free TrialLog in
Avatar of aschaef
aschaef

asked on

Error loading PHP module in Apache 2

I have compiled and installed both the newest versions of Apache and PHP with support for modules so I can use PHP with Apache.  When I try to start the Apache server I get an error which reads.

Syntax error on line 230 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: undefined symbol: __dn_expand

I have no idea why it is doing this.  Please, any help would be much appreciated.  Thank you.

Andrew
 
Avatar of bansidhar
bansidhar
Flag of India image

PHP4 Apache2 Module is still in the experimental stage and is not included with standard distribution (seems to be in the experimental directory with recent release).

Structure of Apache's Calls to modules have been changed in Version 2 so you may not be able to use the standard modules. Try using the experimental module from PHP and hope it works fine on your system.
Avatar of aschaef
aschaef

ASKER

How can I use the experimental module?  Is it included in the PHP 4.3 release.  I am looking for a beta of PHP but don't see anything.  Can you please give me more detailed instructions on how to use the experimental module.  Thanks.
ASKER CERTIFIED SOLUTION
Avatar of bansidhar
bansidhar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aschaef

ASKER

I'm using RedHat 8.0
Here is something from the news groups you may be interested.

FACT:
1) Apache 2.0.35 does not work with PHP 4.2.0RC3 or less
2) Apache2 is GA release (it means almost stable I guess), but
    PHP's Apache2 support is EXPERIMENTAL. Do not complain even
    if it does not work well or at all.
3) You must use "--with-apxs2" to build with Apache2.
4) You must read ./confiugre --help and sapi/apache2filter/README.


If you see "Apahce2 does not compile with PHP 4.1.2/4.2.0RC2"
like post, please let them know, they are suppose to search archive.

BTW, Apache2 support may not available in PHP 4.2.0 release. Since
too many people will not read RELEASE notes and will not notice
Apache2filter SAPI is *EXPERIMENTAL*
Avatar of aschaef

ASKER

Thanks, I was able to use PHP 4.3.0RC4 and it worked just fine.