CentOS 6.5 php源码安装1.0版

发布时间:2020-07-27 17:17:56 作者:jin626889
来源:网络 阅读:340

groupadd www

useradd -g www -s /sbin/nologin -M www


yum install -y freetype-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg libjpeg-devel libpng libpng-devel

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-opcache --enable-sockets --enable-xml --enable-mbstring --enable-soap --enable-zip --enable-bcmath --with-gettext --with-openssl --with-zlib --with-curl --with-gd --with-freetype-dir=/usr/include/freetype2/ --with-zlib-dir=/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-mhash --with-apxs2=/usr/local/apache/bin/apxs 

make

make install


cp php.ini-development /usr/local/php/etc/php.ini

cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm

chmod +x /etc/init.d/php-fpm

chkconfig --add php-fpm

service php-fpm start

service php-fpm restart


vim ~/.bash_profile 

PATH=$PATH:$HOME/bin:/usr/local/php/bin

~/.bash_profile

php -v


推荐阅读:
  1. Centos6.5 源码安装python3.6及离线安装.w
  2. 基于Centos6.5的通过二进制源码安装MySQL5.7.15方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

php 服务器 ce

上一篇:Akka Actor模拟实现YARN

下一篇:什么是CGI、FastCGI、PHP-CGI、PHP-FPM

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》