首页 > 代码库 > 快速安装php php-fpm nignx
快速安装php php-fpm nignx
以前安装php及php-fpm是个痛苦的事,编译完后得几个小时,现在推荐yum来安装,比较方便。
系统centos 6
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
安装mysql
yum --enablerepo=remi install mysql mysql-server
安装php php-fpm nginx
yum install nginx php54w php54w-cli php54w-common php54w-devel php54w-fpm php54w-gd php54w-imap php54w-mbstring php54w-mcrypt php54w-mysql php54w-pdo php54w-process php54w-xml php54w-xmlrpc -y
如果安装失败,建议您先卸载以前的php再进行安装,使用yum remove php php-*
service php-fpm start
service nginx start
chkconfig nginx on
chkconfig php-fpm on
配置文件在 /etc/php.ini
配置文件在 /etc/nginx/nginx.conf
附带的php扩展列表:
Package Provides
php54w mod_php
php54w-bcmath
php54w-cli php-cgi, php-pcntl, php-readline
php54w-common php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, ph
p-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-token
izer, php-zend-abi, php-zip, php-zlib
php54w-dba
php54w-devel
php54w-embedded php-embedded-devel
php54w-enchant
php54w-fpm
php54w-gd
php54w-imap
php54w-interbase php_database, php-firebird
php54w-intl
php54w-ldap
php54w-mbstring
php54w-mcrypt
php54w-mssql
php54w-mysql php-mysqli, php_database
php54w-odbc php-pdo_odbc, php_database
php54w-pdo
php54w-pgsql php-pdo_pgsql, php_database
php54w-process php-posix, php-sysvmsg, php-sysvsem, php-sysvshm
php54w-pspell
php54w-recode
php54w-snmp
php54w-soap
php54w-tidy
php54w-xml php-dom, php-domxml, php-wddx, php-xsl
php54w-xmlrpc
php54w-zts
本文出自 “一阵风” 博客,请务必保留此出处http://chenwenming.blog.51cto.com/327092/1600616
快速安装php php-fpm nignx