PHP
Konfigurační script config.my
#!/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 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
APC cache
konfigurace
phpize
./configure '--with-enable-apc'
make install
Turck mmCache
#!/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"