From: Shortt, K. <KS...@us...> - 2006-12-13 16:01:24
|
=20 I recently accomplished this from scratch. Here are my notes taken. They are sanitized for obvious reasons.=20 =20 I hope this helps you out. =20 -k =20 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Thu Oct 31 10:20:49 CDT 2006 # @AUTHOR: Kevin M. Shortt # # This document contains all of the steps necessary to install # a functioning Apache webserver with SSL and PHP. =20 # # Useful websites: # http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/aixopen # =20 - uname -a AIX hostname 3 5 XXXXXXXXXXXX =20 - oslevel -r 5300-05 =20 # PREQUISITES: # # This section addresses and installs the many prerequistes required to compile and install a=20 # functioning Apache web server with SSL and PHP. =20 # =20 - rpm -i /aix_toolbox/RPMS/ppc/openssl-0.9.7g-1.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/openssl-devel-0.9.7g-1.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/tar-1.14-1.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc-5.3/libgcc-3.3.2-5.aix5.3.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc-5.3/gcc-3.3.2-5.aix5.3.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/make-3.80-1.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/bison-1.875-3.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/flex-2.5.4a-6.aix4.3.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/zlib-1.2.2-4.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/zlib-devel-1.2.2-4.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libxml2-2.6.8-2.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libxml2-devel-2.6.8-2.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc-5.3/gcc-c++-3.3.2-5.aix5.3.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc-5.3/libstdc++-devel-3.3.2-5.aix5.3.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/bzip2-1.0.2-3.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libjpeg-6b-6.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libjpeg-devel-6b-6.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libpng-1.2.1-6.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/libpng-devel-1.2.1-6.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/xpm-3.4k-7.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/xpm-devel-3.4k-7.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/freetype2-2.1.7-2.aix5.1.ppc.rpm - rpm -i /aix_toolbox/RPMS/ppc/freetype2-devel-2.1.7-2.aix5.1.ppc.rpm =20 # The Math Library is required for the Apache compiliation. (libm) This resides on the AIX OS Install CD. # The entire bos.adt lpp is required at this point. - cd /nim/aix53ml4/lppsource/installp/ppc/ - installp -aXYgd . bos.adt # # Apache http-2.2.3 http://httpd.apache.org <http://httpd.apache.org>=20 # - cd /usr/local/tgz/ - wget http://www.apache.org/dist/httpd/httpd-2.2.3.tar.gz <http://www.apache.org/dist/httpd/httpd-2.2.3.tar.gz>=20 - cd /usr/local/src - gtar -tzvf /usr/local/tgz/httpd-2.2.3.tar.gz - cd httpd-2.2.3 - chown -R root:system . - LDFLAGS=3D'-lm' ./configure -C --enable-so = --prefix=3D/usr/local/apache --enable-ssl - make - make install =20 # Check your work.... - /usr/local/apache/bin/httpd -v Server version: Apache/2.2.3 Server built: Oct 31 2006 11:57:30 =20 - /usr/local/apache/bin/httpd -l Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_log_config.c mod_env.c mod_setenvif.c mod_ssl.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c =20 # Apache is ready for configuration at this point. (without PHP) # # # PHP-5.1.6 http://www.php.net <http://www.php.net>=20 # - cd /usr/local/tgz - wget http://www.php.net/get/php-5.1.6.tar.bz2/from/us2.php.net/mirror <http://www.php.net/get/php-5.1.6.tar.bz2/from/us2.php.net/mirror>=20 - cd /usr/local/src - bunzip /usr/local/tgz/php-5.1.6.tar.bz2 - gtar xvf /usr/local/tgz/php-5.1.6.tar - cd /usr/local/src/php-5.1.6 - chown -R root:system . - export PATH=3D/opt/freeware/bin:$PATH =20 # This next step has a lot of arguments. # I have it broken out here for readability. # # - ./configure --prefix=3D/usr/local # --with-apxs2=3D/usr/local/apache/bin/apxs # --with-config-file-path=3D/usr/local/apache/conf # --with-gd --with-zlib-dir=3D/opt/freeware/lib # --enable-shared --disable-static # --with-png --with-zlib --with-bz2 # --with-xml --with-jpeg-dir=3D/opt/freeware/lib # --with-png-dir=3D/opt/freeware/lib # --with-xpm-dir=3D/opt/freeware/lib # --with-freetype-dir=3D/opt/freeware/lib # - ./configure --prefix=3D/usr/local --with-apxs2=3D/usr/local/apache/bin/apxs --with-config-file-path=3D/usr/local/apache/conf --with-gd - -with-zlib-dir=3D/opt/freeware/lib --enable-shared --disable-static --with-png --with-zlib --with-bz2 --with-xml --with-jpeg-dir=3D/opt/ freeware/lib --with-png-dir=3D/opt/freeware/lib --with-xpm-dir=3D/opt/freeware/lib = --with-freetype-dir=3D/opt/freeware/lib - make - cp .libs/libphp5.so /usr/local/apache/modules/ - cp php.ini-recommended /usr/local/apache/conf/php.ini =20 # Done with PHP. =20 =20 =20 =20 =20 =20 ________________________________ From: aix...@li... [mailto:aix...@li...] On Behalf Of Rod Groce Sent: Tuesday, December 12, 2006 6:37 PM To: aix...@li... Subject: [tbox-l] Help with PHP I have just found it necessary to update my server to 5300-05=20 I was running 5.2. Now my php install from linuxtoolbox seems to be failing.=20 I get: [Tue Dec 12 18:29:08 2006] [warn] Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)=20 whenever appache starts, and I get a seg fault anytime I try to access a page using php.=20 any help would be appreciated.=20 Rod=20 Rod Groce wr...@au... Systems Administrator Phone:(512)838-6179 Austin, Texas Tie Line:678-6179 =20 |