[PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3
Hi php4-Installers, what reason might cause the subject above ? We have installed (and working well): o gcc version 2.95.3 20010315 (release) o perl, version 5.003 with EMBED built under aix o OpenSSL 0.9.6 o mm-1.1.3 o Apache-1.3.23 configured with: time CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/apache_1.3.23 \ --enable-module=rewrite \ --enable-shared=rewrite (with compiled-in modules mod_so.c - and mod_ssl.c ...) o mod_ssl-2.8.6-1.3.23 configured with: CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/apache_1.3.23 \ --with-apache=/pd/apache_1.3.23 \ --with-ssl=/pd/openssl \ --with-mm=/pd/mm-1.1.3 \ --with-crt=/pd/openssl/certs/mail_cert.pem \ --enable-module=most \ --enable-module=ssl \ --enable-shared=rewrite o gmake - GNU Make version 3.79.1 built for powerpc-ibm-aix4.3.3.0 o php-4.1.1 configured as dynamic module (following verbose installation): time CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/php-4.1.1 \ --with-apxs=/pd/apache_1.3.23/bin/apxs ... done well: ++ |*** WARNING *** | | You chose to compile PHP with the built-in MySQL support. If you | are compiling a server module, and intend to use other server | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, | mod_perl) you must NOT rely on PHP's built-in MySQL support, and | instead build it with your local MySQL support files, by adding | --with-mysql=/path/to/mysql to your configure line. ++ | License: | This software is subject to the PHP License, available in this | distribution in the file LICENSE. By continuing this installation | process, you are bound by the terms of this license agreement. | If you do not agree with the terms of this license, you must abort | the installation process at this point. ++ Thank you for using PHP. real29m48.27s (!) user1m6.67s sys 4m10.69s o gmake ... ok o gmake install ... ending with: . . . Making install in . gmake[1]: Entering directory `/appl/pd/php-4.1.1' /pd/apache_1.3.23/bin/apxs -i -a -n php4 libs/libphp4.so [activating module `php4' in /pd/apache_1.3.23/conf/httpd.conf] cp libs/libphp4.so /pd/apache_1.3.23/libexec/libphp4.so cp: libs/libphp4.so: No such file or directory apxs:Break: Command failed with rc=1 gmake[1]: *** [install-sapi] Error 1 gmake[1]: Leaving directory `/appl/pd/php-4.1.1' gmake: *** [install-recursive] Error 1 root@mail:/pd/php-4.1.1# So, no libphp4.so on the system. Considering we have the products (in most cases the up-to-date versions) it must be some obvious problem - but I have no idea. Thanks for help in advance, Erwin -- Dipl.-Ing. Erwin SRUBAR Zentraler Informatikdienst, Bereich ,,Zentrale Services`` Technische Universitaet Wien, Wiedner Hauptstrasse 8-10 Turm C (Roter Trakt), 2.Stk., Zi.DC02O08 A-1040 Wien, OeSTERREICH Mail:[EMAIL PROTECTED] Tel: (++43 1) 588-01/42084, Fax: (++43 1) 588-01/42099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3
On Tuesday, February 19, 2002, at 06:18 AM, Erwin S R U B A R wrote: So, no libphp4.so on the system. Considering we have the products (in most cases the up-to-date versions) it must be some obvious problem - but I have no idea. Thanks for help in advance, I had the same exact problems. The best way to go about it, which was suggested to me and I have suggested to others, is to install PHP4 as a static Apache module. But be sure to set the configuration options to allow Apache to install other DSOs, so that you can later add mod_perl or other DSOs you might want. I should really just put this on a web page somewhere since it seems to work for most everyone and I am constantly reposting it :) 1) Download Apache, PHP, and MySQL tarballs, and untar them. 2) Install MySQL (easy, use whatever config options you want). Initialize it and get it running. 3) Install Apache with PHP as static module a) ./configure --prefix=/usr/local/apache b) pushd to PHP tarball source directory c) ./configure --with-apache=/path/to/apache/src/dir --with- mysql=/path/to/mysql/main/dir (and any other flags you want, I did zlib and xml) d) make e) make install (make sure you're root for this one, or sudo) f) popd (back to Apache src dir) g) ./configure --activate-module=./src/modules/php4/libphp4.a --enable-module=so --enable-shared=max (this makes sure that Apache will work with later DSOs) h) pushd ./src/modules/php4 i) make (do not make install yet) j) popd (back to Apache src dir) k) make l) make install (make sure you're root again, or sudo) m) test with /path/to/apache/bin/apachectl start n) if Apache works, configure your httpd.conf o) cp the php.ini-dist to /usr/local/lib/php.ini HTH, this has worked for many people (and I didn't write em so I don't deserve any credit). Thank you Nathan for helping me when I had this prob. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3
Hi Make sure you include at least one internal apache module as shared (i used mod_rewrite) otherwise apache doesn't include enough linker information in apxs. you will probably have to do make distclean and start again with configure Tom At 09:18 PM 2/19/02, Erwin S R U B A R wrote: Hi php4-Installers, what reason might cause the subject above ? We have installed (and working well): o gcc version 2.95.3 20010315 (release) o perl, version 5.003 with EMBED built under aix o OpenSSL 0.9.6 o mm-1.1.3 o Apache-1.3.23 configured with: time CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/apache_1.3.23 \ --enable-module=rewrite \ --enable-shared=rewrite (with compiled-in modules mod_so.c - and mod_ssl.c ...) o mod_ssl-2.8.6-1.3.23 configured with: CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/apache_1.3.23 \ --with-apache=/pd/apache_1.3.23 \ --with-ssl=/pd/openssl \ --with-mm=/pd/mm-1.1.3 \ --with-crt=/pd/openssl/certs/mail_cert.pem \ --enable-module=most \ --enable-module=ssl \ --enable-shared=rewrite o gmake - GNU Make version 3.79.1 built for powerpc-ibm-aix4.3.3.0 o php-4.1.1 configured as dynamic module (following verbose installation): time CC=gcc CFLAGS=-O ./configure \ --prefix=/pd/php-4.1.1 \ --with-apxs=/pd/apache_1.3.23/bin/apxs ... done well: ++ |*** WARNING *** | | You chose to compile PHP with the built-in MySQL support. If you | are compiling a server module, and intend to use other server | modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, | mod_perl) you must NOT rely on PHP's built-in MySQL support, and | instead build it with your local MySQL support files, by adding | --with-mysql=/path/to/mysql to your configure line. ++ | License: | This software is subject to the PHP License, available in this | distribution in the file LICENSE. By continuing this installation | process, you are bound by the terms of this license agreement. | If you do not agree with the terms of this license, you must abort | the installation process at this point. ++ Thank you for using PHP. real29m48.27s (!) user1m6.67s sys 4m10.69s o gmake ... ok o gmake install ... ending with: . . . Making install in . gmake[1]: Entering directory `/appl/pd/php-4.1.1' /pd/apache_1.3.23/bin/apxs -i -a -n php4 libs/libphp4.so [activating module `php4' in /pd/apache_1.3.23/conf/httpd.conf] cp libs/libphp4.so /pd/apache_1.3.23/libexec/libphp4.so cp: libs/libphp4.so: No such file or directory apxs:Break: Command failed with rc=1 gmake[1]: *** [install-sapi] Error 1 gmake[1]: Leaving directory `/appl/pd/php-4.1.1' gmake: *** [install-recursive] Error 1 root@mail:/pd/php-4.1.1# So, no libphp4.so on the system. Considering we have the products (in most cases the up-to-date versions) it must be some obvious problem - but I have no idea. Thanks for help in advance, Erwin -- Dipl.-Ing. Erwin SRUBAR Zentraler Informatikdienst, Bereich ,,Zentrale Services`` Technische Universitaet Wien, Wiedner Hauptstrasse 8-10 Turm C (Roter Trakt), 2.Stk., Zi.DC02O08 A-1040 Wien, OeSTERREICH Mail:[EMAIL PROTECTED] Tel: (++43 1) 588-01/42084, Fax: (++43 1) 588-01/42099 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php