{"id":1074,"date":"2015-03-06T00:22:22","date_gmt":"2015-03-05T22:22:22","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=1074"},"modified":"2015-03-06T00:22:22","modified_gmt":"2015-03-05T22:22:22","slug":"1074","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2015\/03\/06\/1074\/","title":{"rendered":""},"content":{"rendered":"\n<pre class=\"lang:default decode:true \" title=\"NginX Install process Debian \" >NginX Install process Debian \r\n\r\n\tapt-get update &amp;&amp; apt-get upgrade -y \r\n\tapt-get install -y nginx-full\r\n\tservice nginx restart\r\n\r\n# php5-fpm Install \r\n\tapt-get install -y php5-fpm\r\n\tapt-get install -y  php5-mysql php5-curl php5-gd php5-mcrypt\r\n\tapt-get autoremove -y  \r\n        mkdir \/var\/run\/php5-fpm\/   \r\n        echo \"cgi.fix_pathinfo=0\" &gt;&gt;\/etc\/php5\/fpm\/php.ini\r\n\t\/etc\/init.d\/php5-fpm restart\r\n    \r\n    nano \/etc\/nginx\/sites-available\/default\r\n    ---------------\r\n\r\nserver {\r\n\tlisten   80; ## listen for ipv4; this line is default and implied\r\n\tlisten   [::]:80 default_server ipv6only=on; ## listen for ipv6\r\n\t\r\n\troot \/usr\/share\/nginx\/www;\r\n\tindex index.php index.html index.htm;\r\n\tserver_name localhost;\r\n\r\n\tlocation \/ {\r\n\t\ttry_files $uri $uri\/ \/index.html;\r\n\t\tautoindex on;\r\n                autoindex_exact_size off;\r\n\r\n\t           }\r\n\r\n\tlocation ~ \\.php$ \r\n\t{\r\n             fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\r\n\t\tfastcgi_pass unix:\/var\/run\/php5-fpm.sock;\r\n\t\tfastcgi_index index.php;\r\n\t\tinclude fastcgi_params;\r\n\t  }\r\nerror_page 404 \/index.php;\r\n\r\n}\r\n\r\n-------------------\r\n#  add example.com\r\n\tmkdir -p  \/usr\/share\/nginx\/www\/example.com\r\n\tnano \/etc\/nginx\/sites-available\/example.com\r\n\r\n----------------\r\n\r\n\r\nserver {\r\n\tlisten   80; ## listen for ipv4;\r\n\t#listen   [::]:80 default_server ipv6only=on;\r\n\troot \/usr\/share\/nginx\/www\/downloadbramjy.com;\r\n\tindex index.php index.html index.htm;\r\n\tserver_name  alkoonsoft.com *.alkoonsoft.com www.alkoonsoft.com;\r\n\r\n\tlocation \/ {\r\n\t\ttry_files $uri $uri\/ \/index.php;\r\n\t           }\r\n\r\nif ($request_uri ~* \"\/(wp-admin\/|wp-login.php)\")\r\n{\r\n   \r\n}\r\n\r\n\tlocation ~ \\.php$ \r\n\t{\r\n                fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\r\n\t\tfastcgi_pass unix:\/var\/run\/php5-fpm.sock;\r\n\t\tfastcgi_index index.php;\r\n\t\tinclude fastcgi_params;\r\n\t  }\r\n\r\nlocation ~*  \\.(jpg|jpeg|png|gif|ico|css|js)$ {\r\n        expires 365d;\r\n    }\r\nlocation ~*  \\.(pdf)$ {\r\n        expires 30d;\r\n    }\r\n\r\nerror_page 404 \/index.php;\r\n\r\n}\r\n\r\n\r\n# HTTPS server\r\n#\r\n#server {\r\n#\tlisten 443;\r\n#\tserver_name localhost;\r\n#\r\n#\troot html;\r\n#\tindex index.html index.htm;\r\n#\r\n#\tssl on;\r\n#\tssl_certificate cert.pem;\r\n#\tssl_certificate_key cert.key;\r\n#\r\n#\tssl_session_timeout 5m;\r\n#\r\n#\tssl_protocols SSLv3 TLSv1;\r\n#\tssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;\r\n#\tssl_prefer_server_ciphers on;\r\n#\r\n#\tlocation \/ {\r\n#\t\ttry_files $uri $uri\/ =404;\r\n#\t}\r\n#}\r\n\r\n-----------------\r\n\r\nln -s \/etc\/nginx\/sites-available\/example.com \/etc\/nginx\/sites-enabled\/\r\n\r\n# Install  Mysql  \r\n\tapt-get install -y mysql-server\r\n    apt-get --reinstall install -y bsdutils\r\n\tmysql_install_db\r\n    \/etc\/init.d\/mysql restart\r\n\r\n# Install  WordPress \r\n    cd \/usr\/share\/nginx\/www\/example.com\r\nwget  -O latest.tar.gz http:\/\/wordpress.org\/latest.tar.gz\r\n tar zxf latest-ar.tar.gz\r\n mv wordpress\/* \/usr\/share\/nginx\/www\/example.com   \r\n    rmdir wordpress\r\n    mv wp-config-sample.php wp-config.php\r\n\r\n     # Fix  WP upload issue                                                                               \r\n    chown -R www-data:www-data \/usr\/share\/nginx\/www\r\n    chmod -R g+rwx \/usr\/share\/nginx\/www  \r\n\r\nmysql -u root -p\r\nCREATE DATABASE IF NOT EXISTS example\r\nUSE  example\r\nCREATE USER 'example'@'localhost' IDENTIFIED BY 'PASS';\r\nGRANT ALL PRIVILEGES ON example. * TO 'example'@'localhost';<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>NginX Install process Debian apt-get update &amp;&amp; apt-get upgrade -y apt-get install -y nginx-full service nginx restart # php5-fpm Install apt-get install -y php5-fpm apt-get install -y php5-mysql php5-curl php5-gd php5-mcrypt apt-get autoremove -y mkdir \/var\/run\/php5-fpm\/ echo &#8220;cgi.fix_pathinfo=0&#8221; &gt;&gt;\/etc\/php5\/fpm\/php.ini \/etc\/init.d\/php5-fpm restart nano \/etc\/nginx\/sites-available\/default &#8212;&#8212;&#8212;&#8212;&#8212; server { listen 80; ## listen for ipv4; this line is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1074","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1074","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=1074"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1074\/revisions"}],"predecessor-version":[{"id":1075,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/1074\/revisions\/1075"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=1074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=1074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=1074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}