User Tools

Site Tools


aix:install_apache

Install Apache with PHP 5 on AIX 2013

First download all latest packages needed for the installation on http://www.perzl.org/aix/ If you click on direct links like AIX 7.1, you download with ftp protocol, else if you go down on the main page and click on the package link, then you will use http protocol

Base packages:

# What I basically install on AIX server
rpm -Uhv bash-4.2-12.aix5.1.ppc.rpm
rpm -Uhv bzip2-1.0.6-1.aix5.1.ppc.rpm
rpm -Uhv lsof-4.87-1.aix7.1.ppc.rpm
rpm -Uhv gettext-0.10.40-8.aix5.2.ppc.rpm
rpm -Uhv popt-1.16-1.aix5.1.ppc.rpm
rpm -Uhv gmp-5.0.5-1.aix5.1.ppc.rpm
rpm -Uhv info-5.1-1.aix5.1.ppc.rpm
rpm -Uhv libiconv-1.14-2.aix5.1.ppc.rpm
rpm -Uhv coreutils-8.21-1.aix5.1.ppc.rpm
rpm -Uhv logrotate-3.8.2-1.aix5.1.ppc.rpm
rpm -Uhv unzip-6.0-2.aix5.1.ppc.rpm
rpm -Uhv tar-1.26-1.aix5.1.ppc.rpm
rpm -Uhv rsync-3.0.9-1.aix5.1.ppc.rpm
rpm -Uhv zip-3.0-1.aix5.1.ppc.rpm
rpm -Uhv zlib-1.2.8-1.aix5.1.ppc.rpm
rpm -Uhv libjpeg-9-1.aix5.1.ppc.rpm
rpm -Uhv tightvnc-server-1.3.10-2.aix5.1.ppc.rpm

rpm -Uhv tcl-8.5.14-1.aix5.1.ppc.rpm
rpm -Uhv expat-2.1.0-1.aix5.1.ppc.rpm
rpm -Uhv libpng-1.6.3-1.aix5.1.ppc.rpm
rpm -Uhv libgcc-4.8.1-1.aix7.1.ppc.rpm
rpm -Uhv libffi-3.0.13-1.aix5.1.ppc.rpm
rpm -Uhv glib2-2.34.3-1.aix5.1.ppc.rpm
rpm -Uhv pkg-config-0.28-1.aix5.1.ppc.rpm
rpm -Uhv freetype2-2.5.0-1.aix5.1.ppc.rpm
rpm -Uhv fontconfig-2.8.0-2.aix5.1.ppc.rpm
rpm -Uhv libXrender-0.9.8-1.aix6.1.ppc.rpm
rpm -Uhv libXft-2.3.1-1.aix5.1.ppc.rpm
rpm -Uhv tk-8.5.14-1.aix5.1.ppc.rpm
rpm -Uhv expect-5.45-1.aix5.1.ppc.rpm

Packages for apache2:

# Apache2
rpm -Uhv apr-1.4.8-1.aix5.2.ppc.rpm
rpm -Uhv apr-util-1.5.2-1.aix5.1.ppc.rpm
rpm -Uhv openssl-1.0.1e-2.aix5.1.ppc.rpm
rpm -Uhv openldap-2.4.23-0.3.aix5.1.ppc.rpm
rpm -Uhv apr-util-ldap-1.5.2-1.aix5.1.ppc.rpm
rpm -Uhv db4-4.7.25-2.aix5.1.ppc.rpm
rpm -Uhv readline-6.2-4.aix5.1.ppc.rpm
rpm -Uhv pcre-8.33-1.aix5.1.ppc.rpm 
rpm -Uhv httpd-2.4.6-1.aix5.1.ppc.rpm

Packages module php5 for apache2:

# Module php5 for apache2
rpm -Uhv php-common-5.5.1-1.aix5.1.ppc.rpm
rpm -Uhv xorg-compat-aix-1.2-1.aix5.1.ppc.rpm
rpm -Uhv libXpm-3.5.10-2.aix6.1.ppc.rpm
rpm -Uhv gd-2.0.35-5.aix5.1.ppc.rpm
rpm -Uhv libidn-1.28-1.aix5.1.ppc.rpm
rpm -Uhv libssh2-1.4.3-2.aix5.1.ppc.rpm
rpm -Uhv curl-7.27.0-1.aix5.1.ppc.rpm
rpm -Uhv xz-libs-5.0.4-1.aix5.1.ppc.rpm
rpm -Uhv libxml2-2.9.1-1.aix5.1.ppc.rpm
rpm -Uhv libtool-ltdl-1.5.26-2.aix5.1.ppc.rpm
rpm -Uhv t1lib-5.1.2-1.aix5.1.ppc.rpm
rpm -Uhv grep-2.14-1.aix5.1.ppc.rpm
rpm -Uhv sed-4.2.2-1.aix5.1.ppc.rpm
rpm -Uhv libsigsegv-2.10-1.aix5.2.ppc.rpm
rpm -Uhv m4-1.4.16-1.aix5.1.ppc.rpm
rpm -Uhv autoconf-2.69-1.aix5.1.ppc.rpm
rpm -Uhv automake-1.14-1.aix5.1.ppc.rpm
rpm -Uhv libtool-1.5.26-2.aix5.1.ppc.rpm
rpm -Uhv libmcrypt-2.5.8-3.aix5.1.ppc.rpm 
rpm -Uhv mod_php_ap24-5.5.1-1.aix5.1.ppc.rpm

AIX: Install Apache on old versions 2012

First download all latest packages needed for the installation on http://www.perzl.org/aix/ If you click on direct links like AIX 6.1, you download with ftp protocol, else if you go down on the main page and click on the package link, then you will use http protocol

rpm -Uhv apr-1.4.5-1.aix5.2.ppc.rpm
rpm -Uhv expat-2.0.1-3.aix5.1.ppc.rpm 
rpm -Uhv apr-util-1.3.12-1.aix5.1.ppc.rpm
rpm -Uhv db4-4.7.25-2.aix5.1.ppc.rpm
rpm -Uhv zlib-1.2.5-1.aix5.1.ppc.rpm
rpm --nodeps -Uhv gettext-0.17-1.aix5.1.ppc.rpm 
rpm -Uhv info-4.13a-2.aix5.1.ppc.rpm
rpm -Uhv readline-6.2-2.aix5.1.ppc.rpm
rpm -Uhv pcre-8.12-1.aix5.1.ppc.rpm
rpm -Uhv glib2-2.22.4-1.aix5.1.ppc.rpm
rpm -Uhv openssl-1.0.0d-1.aix5.1.ppc.rpm
rpm -Uhv openldap-2.4.23-0.1.aix5.1.ppc.rpm
rpm -Uhv apr-util-ldap-1.3.12-1.aix5.1.ppc.rpm
rpm -Uhv httpd-2.2.19-1.aix5.1.ppc.rpm

Now try to start apache:

/opt/freeware/sbin/apachectl start

Open a Web browser with the IP of you server, and the Web page should print “It works!” You can adapt the apache configuration file to your wishes in /opt/freeware/etc/httpd/conf/httpd.conf Default port is 80, and home directory for the web server is /var/www/htdocs/

:!: Be carefull, adapt the data directory /var/www/htdocs/ to the right owner and group (default owner and group created by the httpd package is apache/apache)

AIX: Install php5

First check the AIX fileset requisite, else install what is missing, then download all requisite rpm packages for php http://www.perzl.org/aix/

fileset AIX needed:
lslpp -l | grep X11.fnt
  X11.fnt.coreX              6.1.0.0  COMMITTED  AIXwindows X Consortium Fonts 
  X11.fnt.defaultFonts       6.1.2.0  COMMITTED  AIXwindows Default Fonts
  X11.fnt.iso1               6.1.0.0  COMMITTED  AIXwindows Latin 1 Fonts 
  X11.fnt.iso_T1             6.1.0.0  COMMITTED  AIXwindows Latin Type1 Fonts

You can copy and paste all commands if all packages versions are the same as follwing:

rpm -Uhv php-common-5.3.6-1.aix5.1.ppc.rpm
rpm -Uhv freetype2-2.4.4-1.aix5.1.ppc.rpm
rpm -Uhv fontconfig-2.8.0-1.aix5.1.ppc.rpm
rpm -Uhv libjpeg-8c-1.aix5.1.ppc.rpm
rpm -Uhv libpng-1.5.2-1.aix5.1.ppc.rpm
rpm -Uhv pkg-config-0.25-2.aix5.1.ppc.rpm
rpm -Uhv xorg-compat-aix-1.0-1.aix5.1.ppc.rpm
rpm -Uhv libXpm-3.5.9-1.aix6.1.ppc.rpm
rpm -Uhv gd-2.0.35-5.aix5.1.ppc.rpm
rpm -Uhv t1lib-5.1.2-1.aix5.1.ppc.rpm
rpm -Uhv libidn-1.22-1.aix5.1.ppc.rpm
rpm -Uhv libssh2-1.2.7-1.aix5.1.ppc.rpm
rpm -Uhv curl-7.21.3-1.aix5.1.ppc.rpm
rpm -Uhv libxml2-2.7.8-1.aix5.1.ppc.rpm   
rpm -Uhv php-cli-5.3.6-1.aix5.1.ppc.rpm
rpm -Uhv php-5.3.6-1.aix5.1.ppc.rpm

Now try to restart apache:

/opt/freeware/sbin/apachectl restart

To test which php version is available into your browser, the create a new file index.php into /var/www/htdocs/

[root@test]/var/www/htdocs# cat index.php
<?php phpinfo(); ?>

Open a Web browser with the IP of you server, and the Web page should print the php version (Ex: PHP Version 5.3.6)

Error

libiconv.so.2

After upgrading apache, error with library:

[root@apache]/root# ar -tv /usr/lib/libiconv.a
r--r--r--     2/2     234348 Sep 11 22:33 2018 shr4.o
r--r--r--     2/2     234598 Sep 11 22:33 2018 shr.o
[root@apache]/root# ar -tv /opt/freeware/lib/libiconv.a
rwxr-xr-x     0/0     1089146 May 16 22:53 2012 libiconv.so.2
r--r--r--     0/0     117162 Aug 21 15:39 2012 shr4.o
r--r--r--     0/0     117386 Aug 21 15:39 2012 shr.o

Modify your apache start script to add LIBPATH

LIBPATH=/opt/freeware/lib
aix/install_apache.txt · Last modified: 2021/12/13 17:49 by manu