Instalacion de PHP

Page last edited hace 2081 días 9 horas
De Solaris-ES
Saltar a: navegación, buscar

Compilación de PHP[editar]

Download: http://php.net/downloads.php
  • Compilación de PHP con mcrypt
root@sol01 # cd php-5.3.9
./configure \
        --prefix=/usr/local/php \
        --with-config-file-path=/usr/local/php/lib \
        --with-libxml-dir=/usr/local \
        --with-zlib=/usr/local \
        --with-xpm-dir=/usr/local \
        --with-mysql=/usr/local/mysql \
        --with-mysqli=/usr/local/mysql/bin/mysql_config \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --without-pgsql \
        --with-jpeg-dir=/usr/local/lib \
        --with-zlib-dir=/usr/local/lib \
        --with-gd=/usr/local \
        --enable-mbstring \
        --enable-shared \
        --enable-exif \
        --enable-sockets \
        --enable-soap \
        --with-png-dir=/usr/local/lib \
        --with-curl=/usr/local \
        --with-ldap=/usr/local \
        --with-openssl=/usr/local/ssl \
        --with-gettext \
        --with-pcre-dir=/usr/local \
        --with-freetype-dir=/usr/local \
        --with-mssql=/usr/local/freetds \
        --with-mcrypt=/usr/local/lib
root@sol01 # /usr/local/bin/make
root@sol01 # /usr/local/bin/make install
Installing PHP SAPI module:       apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
chmod +x /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /var/www/tiadm/tmp/php-5.3.9/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/php/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/php/lib/php/build/
Installing header files:          /usr/local/php/include/php/
Installing helper programs:       /usr/local/php/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/php/lib/php/
[PEAR] Archive_Tar    - already installed: 1.3.7
[PEAR] Console_Getopt - already installed: 1.3.0
[PEAR] Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util       - already installed: 1.2.1
[PEAR] PEAR           - already installed: 1.9.4
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path
/var/www/tiadm/tmp/php-5.3.9/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin
ln -s -f /usr/local/php/bin/phar.phar /usr/local/php/bin/phar
Installing PDO headers:          /usr/local/php/include/php/ext/pdo/
root@sol01 # svcadm restart apache2
root@sol01 # php -version
NOTA IMPORTANTE: Dejar permanentemente los funtes en el mismo equipo por si en necesario compilar nuevas extensiones.
                 Con esto nos aseguramos que simpre esten disponibles las fuentes del PHP que tenemos instalado.