{{page>:menu}}
====== 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 [[http://www.oracle.com/technology/tech/oci/instantclient/index.html|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 =====
* [[http://pear.php.net/|PHP framework]]
* instalace balíku: [col blue]''pear install ''[/col]
* upgrade balíků: [col blue]''pear upgrade-all''[/col]
====== APC cache ======
* http://pecl.php.net/package/APC
===== konfigurace =====
phpize
./configure '--with-enable-apc'
make install
====== Turck mmCache ======
* http://turck-mmcache.sourceforge.net/
* kódovací jazyk pro PHP
===== 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"