-
-
Save huydoanq/32de42a85e2628018bea3b63bb275b15 to your computer and use it in GitHub Desktop.
Revisions
-
santoshachari revised this gist
Nov 8, 2015 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,10 @@ sudo yum install -y nginx php56-fpm # Install php56 extensions sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap #Install php mysql for pdo sudo yum install php56-mysqlnd # Install php56-APC sudo yum install -y php56-pecl-apc sudo yum install -y pcre-devel -
santoshachari revised this gist
Nov 8, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,10 +3,10 @@ sudo yum -y update sudo yum install -y gcc make # Install Nginx and php56-FPM sudo yum install -y nginx php56-fpm # Install php56 extensions sudo yum install -y php56-devel php-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap # Install php56-APC sudo yum install -y php56-pecl-apc -
santoshachari revised this gist
Nov 8, 2015 . No changes.There are no files selected for viewing
-
santoshachari revised this gist
Nov 8, 2015 . No changes.There are no files selected for viewing
-
santoshachari revised this gist
Nov 8, 2015 . No changes.There are no files selected for viewing
-
santoshachari revised this gist
Nov 8, 2015 . No changes.There are no files selected for viewing
-
santoshachari revised this gist
Nov 8, 2015 . 3 changed files with 25 additions and 23 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,16 +2,14 @@ sudo yum -y update sudo yum install -y gcc make # Install Nginx and php56-FPM sudo yum install -y nginx php5656-fpm # Install php56 extensions sudo yum install -y php56-devel php56-mysql php56-pdo php56-pear php56-mbstring php56-cli php56-odbc php56-imap php56-gd php56-xml php56-soap # Install php56-APC sudo yum install -y php56-pecl-apc sudo yum install -y pcre-devel # Install MySQL @@ -20,11 +18,11 @@ sudo yum -y install mysql-server mysql # Nginx Configuration sudo nano /etc/nginx/conf.d/default.conf # php56-FPM Configuration sudo nano /etc/php-fpm.d/www.conf # Autostart Nginx, php56-FPM and MySQL sudo chkconfig nginx on sudo chkconfig mysqld on sudo chkconfig php-fpm on This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,14 @@ server{ location / { root /var/www/html; index index.php index.html index.htm; } location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; include fastcgi_params; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,7 @@ [...] user = nginx group = nginx ;listen = 127.0.0.1:9000 listen = /var/run/php-fpm/php-fpm.sock ;listen.owner = nobody @@ -8,6 +11,5 @@ listen.group = nginx ;listen.mode = 0666 listen.mode = 0664 [...] -
sumardi revised this gist
May 11, 2013 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
sumardi created this gist
May 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ location / { root /var/www/html; index index.php index.html index.htm; } location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/ html$fastcgi_script_name; include fastcgi_params; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,30 @@ # Install linux update, followed by GCC and Make sudo yum -y update sudo yum install -y gcc make # Install Nginx and PHP-FPM sudo yum install -y nginx php-fpm # Install PHP extensions sudo yum install -y php-devel php-mysql php-pdo \ php-pear php-mbstring php-cli php-odbc \ php-imap php-gd php-xml php-soap # Install PHP-APC sudo yum install -y php-pecl-apc sudo yum install -y pcre-devel # Install MySQL sudo yum -y install mysql-server mysql # Nginx Configuration sudo nano /etc/nginx/conf.d/default.conf # PHP-FPM Configuration sudo nano /etc/php-fpm.d/www.conf # Autostart Nginx, PHP-FPM and MySQL sudo chkconfig nginx on sudo chkconfig mysqld on sudo chkconfig php-fpm on This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ [...] ;listen = 127.0.0.1:9000 listen = /var/run/php-fpm/php-fpm.sock ;listen.owner = nobody listen.owner = nginx ;listen.group = nobody listen.group = nginx ;listen.mode = 0666 listen.mode = 0664 user = nginx group = nginx [...]