Mailing List Archive

Problems building Apache with Modules
First off, I'm rather new to this, but I'll try and explain my problem best
I can.

I'm attempting to install Apache 1.3.22 on Red Hat Linux 7.1, with PHP
3.0.18, PHP 4.1.1, mod_perl, and Apache:ASP.
There is already a running version of Apache with PHP3, PHP4, mod_perl, and
so on. However, I didn't install this version, and PHP isn't properly
configured to run with MySQL. I'm not able to locate the original
configuration programs, so I'm installing a new version to replace it.

I've already installed PHP 3.0.18, PHP-4.1.1, and mod_perl, without error.
Compiling and installing Apache with ONLY PHP-3.0.18 OR PHP-4.1.1 works
perfectly, but if I try both, or mod_perl with either one, I get errors
when running [make].
This is part of the error message
-------------
modules/php4/libphp4.a(reg.o): In function `php_split':
/usr/local/etc/php/ext/standard/reg.c:579: undefined reference to `php_regexec'
modules/php4/libphp4.a(reg.o): In function `_free_reg_cache':
/usr/local/etc/php/ext/standard/reg.c:79: undefined reference to `php_regfree'
modules/php4/libphp4.a(url.o): In function `php_url_parse':
/usr/local/etc/php/ext/standard/url.c:80: undefined reference to `php_regcomp'
/usr/local/etc/php/ext/standard/url.c:86: undefined reference to `php_regexec'
/usr/local/etc/php/ext/standard/url.c:121: undefined reference to `php_regfree'
/usr/local/etc/php/ext/standard/url.c:123: undefined reference to `php_regcomp'
/usr/local/etc/php/ext/standard/url.c:123: undefined reference to `php_regexec'
/usr/local/etc/php/ext/standard/url.c:132: undefined reference to `php_regfree'
/usr/local/etc/php/ext/standard/url.c:158: undefined reference to `php_regfree'
/usr/local/etc/php/ext/standard/url.c:161: undefined reference to `php_regfree'
--------------
Below is the exact ./configure line I'm using......
--------------
./configure --with-layout=Apache \
--prefix=/usr/local/etc/apache \
--sysconfdir=/www/conf \
--enable-module=rewrite \
--enable-module=status \
--enable-module=most \
--enable-shared=max \
--with-perl=/src/modules/perl/libperl.a \
--activate-module=src/modules/php4/libphp4.a
---------------
Anyone know why this isn't working?

Thanks much,
James Covington-KB9ZXY-Muncie, IN
Webmaster@insw.org
RE: Problems building Apache with Modules [ In reply to ]
Well for starters why are you wanting to run php 3.x and 4.x on the one
server, php 4.x covers all 3.x stuff plus more updates.

Andrew


-----Original Message-----
From: James Covington [mailto:webmaster@insw.org]
Sent: Thursday, 3 January 2002 9:44 AM
To: users@httpd.apache.org
Subject: Problems building Apache with Modules


First off, I'm rather new to this, but I'll try and explain my problem best
I can.

I'm attempting to install Apache 1.3.22 on Red Hat Linux 7.1, with PHP
3.0.18, PHP 4.1.1, mod_perl, and Apache:ASP.
There is already a running version of Apache with PHP3, PHP4, mod_perl, and
so on. However, I didn't install this version, and PHP isn't properly
configured to run with MySQL. I'm not able to locate the original
configuration programs, so I'm installing a new version to replace it.

I've already installed PHP 3.0.18, PHP-4.1.1, and mod_perl, without error.
Compiling and installing Apache with ONLY PHP-3.0.18 OR PHP-4.1.1 works
perfectly, but if I try both, or mod_perl with either one, I get errors when
running [make].
This is part of the error message
-------------
modules/php4/libphp4.a(reg.o): In function `php_split':
/usr/local/etc/php/ext/standard/reg.c:579: undefined reference to
`php_regexec'
modules/php4/libphp4.a(reg.o): In function `_free_reg_cache':
/usr/local/etc/php/ext/standard/reg.c:79: undefined reference to
`php_regfree'
modules/php4/libphp4.a(url.o): In function `php_url_parse':
/usr/local/etc/php/ext/standard/url.c:80: undefined reference to
`php_regcomp'
/usr/local/etc/php/ext/standard/url.c:86: undefined reference to
`php_regexec'
/usr/local/etc/php/ext/standard/url.c:121: undefined reference to
`php_regfree'
/usr/local/etc/php/ext/standard/url.c:123: undefined reference to
`php_regcomp'
/usr/local/etc/php/ext/standard/url.c:123: undefined reference to
`php_regexec'
/usr/local/etc/php/ext/standard/url.c:132: undefined reference to
`php_regfree'
/usr/local/etc/php/ext/standard/url.c:158: undefined reference to
`php_regfree'
/usr/local/etc/php/ext/standard/url.c:161: undefined reference to
`php_regfree'
--------------
Below is the exact ./configure line I'm using......
--------------
./configure --with-layout=Apache \
--prefix=/usr/local/etc/apache \
--sysconfdir=/www/conf \
--enable-module=rewrite \
--enable-module=status \
--enable-module=most \
--enable-shared=max \
--with-perl=/src/modules/perl/libperl.a \
--activate-module=src/modules/php4/libphp4.a
---------------
Anyone know why this isn't working?

Thanks much,
James Covington-KB9ZXY-Muncie, IN
Webmaster@insw.org
RE: Problems building Apache with Modules [ In reply to ]
At 09:59 A 01/03/2002 +1100, you wrote:
>Well for starters why are you wanting to run php 3.x and 4.x on the one
>server, php 4.x covers all 3.x stuff plus more updates.
>
>Andrew

Well, the currently running server, has mod_php, mod_php3, and
mod_php4. (kinda redundant).

I kinda thought the same thing myself, but I was trying to make the new
server as close to the old one as possible....in an attempt to not affect
sites hosted on the server. Running only PHP4, one of the sites on the
server had some problems with PHP scripts. I think I should only install
PHP4 and maybe update the PHP scripts on the site that has the problem.

Then it's down to the problem of PHP4 with mod_perl and Apache:ASP.

James Covington-KB9ZXY-Muncie, IN
Webmaster@insw.org