安装PHP
先安装 oci8 zlib jpeg png freetype mysql
1.oci8 scp 11*.12*.11*.10*:/opt/ora.tar.gz . //从某服务器上下载/opt/ora.tar.gz 到当前目录下 mv ora.tar.gz /opt/ cd /opt/ tar -xzvf ora.tar.gz vi /etc/profile.d/oracle.sh # Oracle Environment export ORACLE_BASE=/opt/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export ORACLE_SID=test export ORACLE_TERM=xterm #export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin #export NLS_LANG=AMERICAN; #export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH # Set shell search paths export PATH=$PATH:$ORACLE_HOME/bin # CLASSPATH: CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
chmod 775 /etc/profile.d/oracle.sh
2. tar -zxvf freetype-2.2.1.tar.tar cd freetype-2.2.1 ./configure make make install
3. 安装类似 MySQL-devel-community-5.0.37-0.rhel3.i386.rpm rpm -ivh MySQL-devel-community-5.0.37-0.rhel3.i386.rpm 若有冲突~ 该命令是卸载mysql-4.1.22-2.el4 这个文件的。rpm -e --nodeps mysql-4.1.22-2.el4 然后再重新执行 rpm -ivh MySQL-devel-community-5.0.37-0.rhel3.i386.rpm
tar -zxvf php-5.2.5.tar.gz ./configure --with-oci8 --with-apxs2=/usr/local/apache/bin/apxs --with-zlib-dir=/usr/local/lib --with-iconv --enable-pcntl --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-gd --with-ttf --with-freetype-dir=/usr/local/lib --enable-gd-native-ttf --with-png --enable-track-vars --enable-mbstring=all --with-iconv --enable-pcntl --with-ttf --enable-gd-native-ttf --with-mysql make make install
cp php.ini-dist /usr/local/lib/php.ini
vi /usr/local/apache/conf/httpd.conf
/usr/local/apache/bin/apachectl restart
(责任编辑:) |