ÚVOD » tajná oblast CLnet » 3comCiscoHuaweiIPv6LinuxMicrosoftNovellRouterboardVMwareostatní instalaceknihovna


04.01.2015 09:55

PHP

Konfigurační script config.my

  • yum install net-snmp-devel* libmcrypt*
#!/bin/sh
 
phpversion="5.2.6"
mainver="5"
log=config.my.log
apxs=/usr/sbin/apxs
 
echo 'Provadim "make clean"'
make clean > /dev/null
echo 'Konfiguruji PHP ....'
'./configure' \
'--prefix=/usr/local/app/php/'$phpversion \
'--with-config-file-path=/etc/php'$mainver \
'--with-config-file-scan-dir=/etc/php'$mainver'/conf.d' \
'--with-apxs2='$apxs \
'--with-curl' \
'--with-dom' \
'--with-freetype-dir' \
'--with-gd' \
'--with-gettext' \
'--with-iconv' \
'--with-jpeg-dir' \
'--with-ldap' \
'--with-mcrypt' \
'--with-mysql=/usr' \
'--with-png-dir' \
'--with-pear' \
'--with-regex=php' \
'--with-snmp' \
'--with-ssl' \
'--with-zlib' \
'--enable-sockets' \
'--enable-ftp' \
'--enable-mbstring' \
'--enable-dbase' \
'--enable-memory-limit' \
'--enable-exif'

ext: OCI8

  • stáhnout Instantclienta a rozbalit .so např do /opt/oracle
  • stáhnout SDK a rozbalit do /opt/oracle
  • do configurace PHP přidat –with-oci8=instantclient,/opt/oracle/instantclient
  • do skriptu co startuje Apache přidat export LD_LIBRARY_PATH=/opt/oracle/instantclient

PEAR php

  • instalace balíku: [col blue]pear install <název>[/col]
  • upgrade balíků: [col blue]pear upgrade-all[/col]

APC cache

konfigurace

phpize
./configure '--with-enable-apc'
make install

Turck mmCache

configure

#!/bin/sh
make clean
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/bin/phpize
./configure \
    "--prefix=/usr/local/stow/mmcache-2.4.6" \
    "--enable-mmcache=shared" \
    "--with-php-config=$PHP_PREFIX/bin/php-config"
linux/internet/php.txt · Poslední úprava: 13.03.2020 18:43 (upraveno mimo DokuWiki)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0