首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

linux停php环境搭建

2012-08-07 
linux下php环境搭建1.卸载自带的phprpm -qa|grep php yum -y remove php*2.tar zxvf libiconv-1.14.tar.gz

linux下php环境搭建

1.卸载自带的phprpm -qa|grep php yum -y remove php*2.tar zxvf libiconv-1.14.tar.gzcd libiconv-1.14./configure prefix=/usr/local/libiconvmake && make install3.tar -zxvf libxml2-2.6.30.tar.gz  cd libxml2-2.6.30  ./configure prefix=/usr/local/libxml2/ --enable-sharedmake   make install  4./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/include/mysql --with-mysqli=/usr/bin/mysql_config --with-mysql-sock=/var/lib/mysql/mysql.sock --with-jpeg-dir --with-iconv=/usr/local/libiconv/ --with-libxml-dir=/usr/local/libxml2 --with-zlib --with-png-dir --with-curl --with-ldap --with-xmlrpc --with-openssl --with-mhash --with-mcrypt --with-freetype-dir --with-ldap-sasl --with-curlwrappers --enable-xml --enable-shared --enable-discard-path --enable-safe-mode --enable-bcmath --enable-sysvsem --enable-inline-optimization --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring=all --enable-pcntl --enable-sockets --enable-zip --enable-soapcp php.ini-dist /usr/local/php/etc/php.ini  #修改php-fpm.conf  vi /usr/local/php/etc/php-fpm.conf  #查找63,66行将注释去掉  <value name=“user”>nobody</value>  <value name=“group”>nobody</value> 5 vi /etc/profile   #把php/php-fpm服务加入系统环境变量:在最后添加下面这一行  export PATH=$PATH:/usr/local/php/bin  export PATH=$PATH:/usr/local/php/sbin. /etc/profile #使其生效 /usr/local/php/sbin/php-fpm start  

http://www.linuxde.net/2011/06/29.html

热点排行