flea heart なwiki - jQueryサイトの引越し
 # sudo aptitude install mariadb-server
 # sudo aptitude install mariadb-client
 # sudo aptitude install nginx
 # sudo aptitude install php5_fpm php5_gd php5_mysql php5
 mariadb> create database arnichives;
 mariadb> grant all privileges on arnichives.* to 'arnichiver'@localhost identified by 'xxxxx';
 # mysql -u arnichiver -p arnichives < ~xxxxx/Documents/arnichives.sql
user www-data;
#worker_processes 4;
worker_processes 2;
pid /run/nginx.pid;

events {
#	worker_connections 768;
	worker_connections 128;
	# multi_accept on;
}

http {

	##
	# Basic Settings
	##
	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	# server_names_hash_bucket_size 64;
	# server_name_in_redirect off;
	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# SSL Settings
	##
	ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
	ssl_prefer_server_ciphers on;

	##
	# Logging Settings
	##
	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##
	gzip on;
	gzip_disable "msie6";
	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# Virtual Host Configs
	##
	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;

	## UserSettings
	server {
		listen 52837;
		server_name localhost;
		location / {
			root /var/www/html/jquery/;
			index index.html index.htm;
		}
		location ~ \.php$ {
			fastcgi_split_path_info	~(.*\.php)(\.+)$;
			fastcgi_pass		unix:/var/run/php5-fpm.sock;
			fastcgi_index		index.php;
			fastcgi_param		SCRIPT_FILENAME /var/www/html/jquery$fastcgi_script_name;
			include			fastcgi_params;
		}
		error_page 500 502 503 504 /50x.html;
		location = /50x.html {
			root html;
		}
	}
}

 $ mkdir -p /var/www/html/jquery/arnichives/
 $ tar xvfj arnichives.tar.bz2 -C /var/www/html/jquery/arnichives/
 $ sudo chown -R www-data:www-data ./arnichives/