Created
November 14, 2016 09:37
-
-
Save kleo/50b65de96b525579709403239a992587 to your computer and use it in GitHub Desktop.
GNURoot Debian Jessie Android NGINX Web Server with PHP 5
This file contains 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 characters
#install nginx | |
apt-get install nginx | |
#install php5 dependencies | |
apt-get install php5-fpm php5-cli php5-mysql | |
or apt-get build-dep php5 | |
#modify /etc/nginx/sites-available/default | |
Port 8080 | |
include index.php to index | |
#uncomment lines to enable PHP on nginx | |
location ~ | |
fastcgi_split_path_info | |
fastcgi_pass | |
location ~ /\ .ht { | |
deny all; | |
#modify /etc/php5/fpm/php.ini | |
set cgi.fix_pathinfo=0; | |
10.0.0.1:8080/info.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment