Skip to content

Instantly share code, notes, and snippets.

@kleo
Created November 14, 2016 09:37
Show Gist options
  • Save kleo/50b65de96b525579709403239a992587 to your computer and use it in GitHub Desktop.
Save kleo/50b65de96b525579709403239a992587 to your computer and use it in GitHub Desktop.
GNURoot Debian Jessie Android NGINX Web Server with PHP 5
#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