contos安装php

2016-07-21 10:12:35来源:oschina作者:rihgtzhao人点击


yum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-develbzip2bzip2-develncursesncurses-develcurlcurl-devele2fsprogse2fsprogs-develkrb5krb5-devellibidnlibidn-developensslopenssl-developenldapopenldap-develnss_ldapopenldap-clientsopenldap-serversgdgd2gd-develgd2-develperl-CPANpcre-develrpm-ivh"http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm"yuminstalllibmcrypt-devel./configure--prefix=/usr/local/php--with-config-file-path=/etc/php--enable-fpm--enable-pcntl--enable-mysqlnd--enable-opcache--enable-sockets--enable-sysvmsg--enable-sysvsem--enable-sysvshm--enable-shmop--enable-zip--enable-ftp--enable-soap--enable-xml--enable-mbstring--disable-rpath--disable-debug--disable-fileinfo--with-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-pcre-regex--with-iconv--with-zlib--with-mcrypt--with-gd--with-openssl--with-mhash--with-xmlrpc--with-curl--with-imap-ssl--enable-fpmsudomake sudomakeinstall sudocpphp.ini-development/etc/php/ 加环境变量 vim~/.bashrc 加入 exportPATH=/usr/local/php/bin:$PATH exportPATH=/usr/local/php/sbin:$PATH 执行 source~/.bashrcphpize位置 /usr/local/php/bin/phpize



最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台