1. 下载并安装PHP
1.1 编译安装
安装前的准备
1 [[email protected] /opt/soft]# wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/csbuild:/centosextra/CentOS_CentOS-6/x86_64/libmcrypt-devel-2.5.8-4.3.x86_64.rpm 2 [[email protected] /opt/soft]# wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/csbuild:/centosextra/CentOS_CentOS-6/x86_64/libmcrypt-2.5.8-4.3.x86_64.rpm 3 4 [[email protected] /opt/soft]# rpm -ivh libmcrypt-* 5 warning: libmcrypt-2.5.8-4.3.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 04b8b50a: NOKEY 6 Preparing... ########################################### [100%] 7 1:libmcrypt ########################################### [ 50%] 8 2:libmcrypt-devel ########################################### [100%] 9 10 [[email protected] /opt/soft]# yum groupinstall -y "Development Tools" 11 [[email protected] /opt/soft]# yum install -y gcc gcc-c++ gd mhash gettext iconv autoconf automake libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
下载PHP
1 [[email protected] ~]# wget http://cn2.php.net/distributions/php-5.6.21.tar.gz
编译安装
1.2 相关设置
时间: 2024-10-24 06:53:06