首页 > 代码库 > 安装 PHP
安装 PHP
yum install -y epel-releaseyum install -y gcc libmcrypt-devel libxml2-devel openssl openssl-devel bzip2 bzip2-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-develcd /usr/local/srcwget http://cn2.php.net/distributions/php-5.4.37.tar.gztar zxvf php-5.4.37.tar.gzcd php-5.4.37./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --disable-ipv6make make installcp php.ini-production /usr/local/php/etc/php.inicp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpmcp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.confchmod 755 /etc/init.d/php-fpm
useradd -s /sbin/nologin php-fpmchkconfig --add php-fpmchkconfig php-fpm onservice php-fpm start
ps aux | grep php-fpm
安装 PHP
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。