Nginx PHP-FPM and MySQL on CentOS 5
This is tutorial how to install Nginx PHP-FPM and MySQL on CentOS 5 64bit VPS
Install Remi repository on CentOS 5 :
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Install Nginx and PHP-FPM
# yum --enablerepo=remi,remi-test install nginx php-fpm php-common
Install PHP modules
# yum --enablerepo=remi,remi-test install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml
Start Nginx and Autostart on boot
#service nginx start
# chkconfig nginx on
Start php-fpm and autostart on boot
# service php-fpm start
# chkconfig php-fpm on
for install mysql uses this tutorial:
yum --enablerepo=remi,remi-test install mysql-server
Test Nginx and PHP-FPM setup:
- Create info.php file on nginx vhost directory with following content:
<?php
phpinfo();
?> - type in browser xxxxx/info.php
相關文章
- centos php-fpm nginx配置CentOSPHPNginx
- centos7重啟apache、nginx、mysql、php-fpm命令CentOSApacheNginxMySqlPHP
- Linux CentOS7 系統中部署 Nginx + PHP-fpm + MySQL 環境LinuxCentOSNginxPHPMySql
- CentOS6.3下nginx、php-fpm、drupal快速部署CentOSNginxPHP
- PHP-fpm + nginxPHPNginx
- Mac 下 Nginx、MySQL、PHP-FPM 的安裝配置MacNginxMySqlPHP
- Mac下Nginx、PHP、MySQL 和 PHP-fpm安裝配置MacNginxPHPMySql
- CentOS 6.x 開啟Nginx和Php-fpm狀態統計CentOSNginxPHP
- centos 下 安裝 node,nginx, mysqlCentOSNginxMySql
- nginx + PHP-fpm 配置示例NginxPHP
- PHP-FPM和nginx配置PHPNginx
- 筆記:MAC使用brew配置nginx、php、mysql、php-fpm、redis筆記MacNginxPHPMySqlRedis
- CentOS 7 下安裝PHP環境並且配置Nginx支援php-fpm模組CentOSPHPNginx
- CentOS6.x+Nginx+PHP+MySQL+EduSoho[文件]CentOSNginxPHPMySql
- CentOS6.3+nginx-1.2.5+php-5.4.9+MySQL-5.5.28CentOSNginxPHPMySql
- Centos搭建PHP5.3.8+Nginx1.0.9+Mysql5.5.17CentOSPHPNginxMySql
- nginx 和 PHP-fpm 的互動NginxPHP
- Nginx、fastCGI、php-fpm關係梳理NginxASTPHP
- CentOS5+mysql+php的配置CentOSMySqlPHP
- Centos6 下安裝Nginx+Mysql+PHPCentOSNginxMySqlPHP
- PHP-FPM 與 NGINX 通訊過程PHPNginx
- 調整PHP-FPM(Nginx)的子程式PHPNginx
- CentOS7上安裝並配置Nginx、PHP、MySqlCentOSNginxPHPMySql
- Centos6.3編譯安裝Nginx+php+MysqlCentOS編譯NginxPHPMySql
- CentOS5.5一鍵安裝nginx+mysql+phpCentOSNginxMySqlPHP
- CentOS系統 Nginx、MySQL、PHP 伺服器的部署CentOSNginxMySqlPHP伺服器
- centos6.4+nginx+mysql+php+phpmyadmin整合過程CentOSNginxMySqlPHP
- 詳解 nginx php-fpm 工作機制NginxPHP
- PHP-FPM,Nginx,FastCGI 之間的關係PHPNginxAST
- Centos7下配置PHP + MySQL + Nginx開發環境CentOSPHPMySqlNginx開發環境
- centos7 安裝php7+mysql5.7+nginx+redisCentOSPHPMySqlNginxRedis
- Centos中檢視nginx、apache、php、mysql配置檔案路徑CentOSNginxApachePHPMySql
- nginx與php-fpm通訊的兩種方式NginxPHP
- 使用supervisor管理你的nginx、php-fpm程式NginxPHP
- Linux CentOS 安裝 PHP5.5 Redis XDebug Nginx MySQLLinuxCentOSPHPRedisNginxMySql
- CentOS 下安裝 LEMP 服務(nginx、MariaDB/MySQL 和 php)CentOSNginxMySqlPHP
- 1分鐘完美安裝最新CentOS+Nginx+PHP-FPM+MySQLCentOSNginxPHPMySql
- Debian6.04nginx+mysql+php5-fpmfastcgi+pathinfoNginxMySqlPHPAST