RE: [PHP4BETA] Problem Compiling Apache with the PHP4.0b3 Module
| From: | Niall Kavanagh | Date: | Fri, 11 Feb 2000 19:58:32 +0000 |
| Subject: | RE: [PHP4BETA] Problem Compiling Apache with the PHP4.0b3 Module | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-10144@lists.php.net to get a copy of this message | ||
Methinks you have the order out of whack:
From INSTALL:
QUICK INSTALL
$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure
$ cd ..
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
make
(you should now have an httpd binary which you can copy to your Apache bin
dir)
cd ../php-4.0.x
cp php.ini-dist /usr/local/lib/php.ini
You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
Hope this helped!
Niall
> -----Original Message-----
> From: Steve Benson [mailto:steve.benson@stanford.edu]
> Sent: Friday, February 11, 2000 2:48 PM
> To: php4beta@lists.php.net
> Subject: [PHP4BETA] Problem Compiling Apache with the PHP4.0b3 Module
>
>
> Hi,
>
> Please help, I've been trying to get PHP4 up on my server for
> several days now.
>
> I'm using RH Linux 6.1 Kernel 2.2.12-20 and the Apache source version
> 1.3.11 which I've compiled and have running with Perl and
> experienced no
> problems until trying to add the PHP4 module.
>
> When I follow the instructions included with the PHP4.0b3
> distribution:
>
> (php4 dir)
> ./configure --with-apache=../apache_1.3.11 --enable-track-vars
> (no errors)
> make
> (no errors)
> make install
> (no errors)
>
> (apache dir)
> ./configure --activate-module=src/modules/php4/libphp4.a
> (no errors)
> make
> (ERRORS)
>
> All appears to work fine until I get to running 'make' for
> Apache which
> produces the following error output. Is my distribution
> missing a header
> file (.h)? (note: this is only the error output, I didn't
> include all the
> standard output lines without errors that preceded the errors)
>
> modules/php4/libphp4.a(browscap.o): In function `browser_reg_compare':
> /usr/local/src/php-4.0b3/ext/standard/browscap.c:54:
> undefined reference to
> `php_regcomp'
> /usr/local/src/php-4.0b3/ext/standard/browscap.c:57:
> undefined reference to
> `php_regexec'
> /usr/local/src/php-4.0b3/ext/standard/browscap.c:60:
> undefined reference to
> `php_regfree'
> modules/php4/libphp4.a(reg.o): In function `_php_regcomp':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:73: undefined
> reference to
> `php_regcomp'
> modules/php4/libphp4.a(reg.o): In function `_free_reg_cache':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:91: undefined
> reference to
> `php_regfree'
> modules/php4/libphp4.a(reg.o): In function `_php3_reg_eprint':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:148: undefined
> reference to
> `php_regerror'
> /usr/local/src/php-4.0b3/ext/standard/reg.c:153: undefined
> reference to
> `php_regerror'
> /usr/local/src/php-4.0b3/ext/standard/reg.c:158: undefined
> reference to
> `php_regerror'
> /usr/local/src/php-4.0b3/ext/standard/reg.c:169: undefined
> reference to
> `php_regerror'
> modules/php4/libphp4.a(reg.o): In function `_php3_ereg':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:239: undefined
> reference to
> `php_regexec'
> modules/php4/libphp4.a(reg.o): In function `_php3_regreplace':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:339: undefined
> reference to
> `php_regexec'
> modules/php4/libphp4.a(reg.o): In function `php3_split':
> /usr/local/src/php-4.0b3/ext/standard/reg.c:588: undefined
> reference to
> `php_regexec'
> modules/php4/libphp4.a(url.o): In function `url_parse':
> /usr/local/src/php-4.0b3/ext/standard/url.c:76: undefined
> reference to
> `php_regcomp'
> /usr/local/src/php-4.0b3/ext/standard/url.c:82: undefined
> reference to
> `php_regexec'
> /usr/local/src/php-4.0b3/ext/standard/url.c:114: undefined
> reference to
> `php_regfree'
> /usr/local/src/php-4.0b3/ext/standard/url.c:116: undefined
> reference to
> `php_regcomp'
> /usr/local/src/php-4.0b3/ext/standard/url.c:116: undefined
> reference to
> `php_regexec'
> /usr/local/src/php-4.0b3/ext/standard/url.c:150: undefined
> reference to
> `php_regfree'
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[1]: *** [build-std] Error 2
> make: *** [build] Error 2
>
> Thanks for any help you can provide,
>
> Steve Benson
> Application Software Developer
>
> Stanford University
> Communication Services, Information Systems Group
> Steve.Benson@Stanford.Edu
> (650) 725-3475
> FAX (650) 725-9393
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail:
> php4beta-admin@lists.php.net
>