Tabla de Contenidos

PHP y MySQL en AIX

Esta hoja sirve como ayuda para compilar e instalar MySQL y PHP5 en IHS sobre AIX.

Titulo:
PHP y MySQL en AIX
Software:
php, mysql, apache
Tipo:
howto
SistemaOp:
AIX

Descripción

No se pudo compilar el PHP con compatiblidad en el IHS por cuestiones de tecnología (32bits y 64bits). Es necesario instalar el IHS para 32 bits y luego recompilar el PHP

Preparativos para la instalación

Asegurarse de que estos paquetes estén instalados, de lo contrario se pueden descargar del IBM Toolbox

gcc, libgcc, cpp, flex, bison, libxml2, libxml2-devel, zlib-devel, readline-devel, make, gunzip, tar

Ser super usuario (root)

Instalando PHP 5.0.x

mkdir software
cd software
wget -c "http://www.php.net/distributions/php-5.2.6.tar.gz"
tar -zxvf php-5.2.6.tar.gz
./configure --prefix=/product/php --with-apxs2=/product/IBM/HTTPServer/bin/apxs

Troubleshooting

PHP no Compila

Al querer ver la version del apache marca error

/product/IBM/HTTPServer/bin/httpd  -v

exec(): 0509-036 Cannot load program /product/IBM/HTTPServer/bin/httpd because of the following errors:
        0509-150   Dependent module libaprutil-0.so could not be loaded.
        0509-022 Cannot load module libaprutil-0.so.
        0509-026 System error: A file or directory in the path name does not exist.

Exportar la variable de entorno LIBPATH

export LIBPATH=/product/IBM/HTTPServer/lib

AIX 5.3 configure error undefined symbol .mysql_close and .mysql_error

For future AIX users trying to compile PHP with MySQL.
The 64-bit version of MySQL does not currently work.  The 32-bit version 
will allow configure to complete successfully.
:!: Este post tiene fecha 2007-12-05.

Enlaces Relacionados