快速安裝php php-fpm nignx

來源:互聯網
上載者:User

標籤:php   mysql   

以前安裝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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.