Nginx PHP-FPM and MySQL on CentOS 5
2014-12-06 17:54
411 查看
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
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
相关文章推荐
- Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support (LEMP) On Ubuntu 12.04 LTS [repost]
- [转载]How To Install Nginx And PHP-FPM On CentOS 6 Via Yum
- 安装Nginx与使用PHP5(和PHP-FPM Nginx)和MySQL在 CentOS支持6.0的支持
- How to install Nginx, PHP, PHP-FPM and MySQL under Windows with Cygwin
- centOS5.6 下的nginx+mysql+php+php-fpm安装与配置
- [Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04
- centos 配置nginx php-fpm mysql 环境步骤
- Install Nginx/PHP-FPM on Fedora 20/19, CentOS/RHEL 6.5/5.10
- linux(centos)上配置nginx、mysql、php-fpm开机启动
- centos6.3 yum安装nginx+mysql+php-fpm
- 1分钟完美安装最新 CentOS + Nginx + PHP-FPM + MySQL
- linux(centos)上配置nginx、mysql、php-fpm开机启动
- 1分钟完美安装 CentOS + Nginx + PHP-FPM + MySQL
- LNMP搭建(CentOS 6.3+Nginx 1.2.0+PHP 5.3.15(fpm)+ MySQL 5.5.35)
- 1分钟完美安装最新 CentOS + Nginx + PHP-FPM + MySQL
- CentOS使用YUM安装php运行环境,包含php,php-fpm,nginx,mysql
- How to Install Nginx, PHP, PHP Extensions, MySQL, and Zend Optimizer on FreeBSD 7
- 1分钟完美安装最新 CentOS + Nginx + PHP-FPM + MySQL
- 1分钟完美安装最新CentOS+Nginx+PHP-FPM+MySQL
- centos 5.6安装nginx+mysql+php(php-fpm)+phpmyadmin总结