How To Install Nginx+PHP5/FPM+MYSQL: Learning by Doing - Step One Download Repositry
How To Install Nginx+PHP5/FPM+MYSQL: Learning by Doing - Step One Download Repositry
*learning by doing
- Step One
Download Repositry
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
- Step Two
Installing Mysql
sudo yum install mysql mysql-server
then Run it :
sudo /etc/init.d/mysqld start
Configure Mysql
sudo /usr/bin/mysql_secure_installation
" Press - Enter - and Y and type your Password " easy Testing
mysql -u root -p
Enter password:
- Step Three
Install Nginx Web Server
sudo yum install nginx
- Step Four
Installing php5-fpm
sudo yum --enablerepo=remi install php-fpm php-mysql
Configure php.ini
nano /etc/php.ini
" Uncoment " cgi.fix_pathinfo=1 " and change to " 0 " => Save and Exit "
Configure php5-fpm
sudo nano /etc/php-fpm.d/www.conf
" Repleace user and grup - Apache - with - Nginx "
" Quote :
[...]
user : nginx
[...]
grup : nginx
[...] "
Save and Exit.
Then Restart all Service :
/etc/init.d/mysqld restart
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
And Now Testing for all :
cd /var/www/
nano info.php
Put the Script :
phpinfo();
?>
And Now open info.php => http://192.168.1.20/info.php
See my Screen :
- Finishing
Put all Service in startup
sudo chkconfig --levels 235 mysqld on
sudo chkconfig --levels 235 nginx on
sudo chkconfig --levels 235 php-fpm on
Enjoy it :*
By:
http://www.sysadmintutorial.com/
http://www.alldownload.us/