{"id":188702,"date":"2013-08-02T11:10:03","date_gmt":"2013-08-02T07:10:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=188702"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=188702","title":{"rendered":"<span class=\"post_title\">\u0423\u0434\u043e\u0431\u043d\u044b\u0439 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 Virtualbox<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f20\/950\/747\/f209507477a40b155034173a479e647a.png\" alt=\"nginx\" align=\"right\"\/><br \/>  \u041a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0448\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430 WordPress, \u0442\u043e \u0441 \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435 Xampp \u0438 \u0441\u043f\u043e\u043a\u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c. <\/p>\n<p>  \u041d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u0430 \u0442\u0430\u043c \u0443\u0436\u0435 \u043a\u043e\u043d\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Xampp \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0434\u043e\u0431\u043d\u043e, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443 \u043c\u0435\u043d\u044f \u0430\u043b\u043b\u0435\u0440\u0433\u0438\u044f \u043d\u0430 Apache.<\/p>\n<p>  \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0442\u0438\u043f\u0443 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043a\u043e\u043c\u043f\u0435, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f:  <\/p>\n<ul>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 url \u0442\u0438\u043f\u0430 sitename.ru<\/li>\n<li>\u041d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \/etc\/hosts<\/li>\n<li>\u041d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 nginx<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435<\/li>\n<li>\u0423\u0434\u043e\u0431\u043d\u043e\u0435 \u0430\u0434\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/li>\n<li>\u0418\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435<\/li>\n<li>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438 \u0437\u0430\u0431\u044b\u0442\u044c<\/li>\n<\/ul>\n<p>  \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0443 \u0441\u0435\u0431\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0432\u0441\u0435, \u043d\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f, \u0443\u043f\u0430\u0434\u0435\u0442 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, \u0438\u043b\u0438 \u0435\u0449\u0435 \u0447\u0442\u043e \u043d\u0438\u0431\u0443\u0434\u044c, \u0442\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u044f\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u043d\u044c, \u0430 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f \u0444\u0430\u0439\u043b\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0434\u043d\u044f\u043b \u0434\u0435\u0431\u0438\u0430\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 (virtualbox) \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b nginx+phpfpm, \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0445\u0430\u0443 \u0442\u0443 \u043f\u043e \u0441\u0432\u044f\u0437\u043a\u0435 nginx+phpfpm, \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0442\u0438\u043f\u0443 xampp.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>  \u0418\u0442\u0430\u043a \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u0432\u0435\u0436\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b Debian 7 (wheezy). \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0438\u043c\u0435\u0435\u0442 \u0438\u043c\u044f webserver. \u041d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0442\u0430\u043a \u0436\u0435 Debian wheezy.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f ssh. <\/p>\n<p>  \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0438 \u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code class=\"bash\"># VBoxManage modifyvm &quot;webserver&quot; --natpf1 &quot;guestssh,tcp,127.0.0.1,2222,10.0.2.15,22&quot; <\/code><\/pre>\n<p>  \u0417\u0430\u043e\u0434\u043d\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u043c 80 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430.<br \/>  \u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u0442\u044c 80 \u043f\u043e\u0440\u0442, \u044f \u043d\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u043f\u043e\u0447\u0435\u043c\u0443, \u0432 \u043e\u0431\u0449\u0435\u043c \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u043b 8888 \u043f\u043e\u0440\u0442 \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u043b \u0441 80 \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 8888.<\/p>\n<pre><code class=\"bash\"># VBoxManage modifyvm &quot;webserver&quot; --natpf1 &quot;web,tcp,127.0.0.1,8888,10.0.2.15,80&quot; # iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to 8888 # echo &quot;iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to 8888&quot; &gt;&gt; \/etc\/rc.local <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0432\u043c\u0435\u0441\u0442\u043e 10.0.2.15 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 ip, \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432\u044b\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u044b ifconfig \u043d\u0430 eth0.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0432 \u0444\u043e\u043d\u0435, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u0440\u043e\u0448\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 webserver<\/p>\n<pre><code class=\"bash\">$ (vboxheadless -s webserver &) <\/code><\/pre>\n<p>  \u0416\u043c\u0435\u043c \u044d\u043d\u0442\u0435\u0440<\/p>\n<p>  \u0412\u0441\u0435, \u043c\u044b \u043f\u0440\u043e\u0431\u0440\u043e\u0441\u0438\u043b\u0438 2222 \u043f\u043e\u0440\u0442 \u043d\u0430 22 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439, 80 \u043f\u043e\u0440\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043f\u043e\u0437\u0436\u0435 \u0443\u0432\u0438\u0434\u0438\u043c. \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f:<\/p>\n<pre><code class=\"bash\"># ssh root@127.0.0.1 -p 2222 <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b:<\/p>\n<pre><code class=\"bash\"># apt-get install nginx php5 php5-fpm php5-mysql php5-gd php5-mcrypt mysql-server mysql-utilities <\/code><\/pre>\n<h3>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c php-fpm.<\/h3>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0442\u0443\u0442 \u043d\u0430\u043c \u043f\u0430\u0440\u0438\u0442\u044c\u0441\u044f \u0441 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435 \u043d\u0430\u0434\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442 \u043e\u0434\u043d\u043e\u0433\u043e \u044e\u0437\u0435\u0440\u0430 www-data.<br \/>  \u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043a\u0435\u0442. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044f \u0442\u0430\u043c \u043e\u0441\u043e\u0431\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f\u044b.<\/p>\n<pre><code class=\"bash\"># mv \/etc\/php5\/fpm\/php-fpm.conf \/etc\/php5\/fpm\/php-fpm.conf.default # nano \/etc\/php5\/fpm\/php-fpm.conf <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"bash\">[global]  pid = \/var\/run\/php5-fpm.pid error_log = \/var\/log\/php5-fpm.log include = \/etc\/php5\/fpm\/pool.d\/*.conf <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0434\u0435\u0444\u043e\u043b\u0442, \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0442.\u043a. \u044d\u0442\u043e \u0442\u043e\u0442 \u0436\u0435 \u043a\u043e\u043d\u0444\u0438\u0433 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u043d\u043e \u043c\u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0449\u0435 \u043e\u0440\u0435\u0438\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043f\u0443\u043b\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0438 php \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u041f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443. <\/p>\n<pre><code class=\"bash\"># nano \/etc\/php5\/fpm\/pool.d\/www.conf <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435<\/p>\n<pre><code class=\"bash\">[www]  user = www-data group = www-data  listen = \/tmp\/php5-fpm.sock pm = dynamic pm.max_children = 10 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 chdir = \/ <\/code><\/pre>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b pm \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0443\u0442 \u044f \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0431\u0443\u0434\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0435.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c php.ini. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043a\u043e\u0433\u043e \u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439, \u043e\u043d \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439. \u041d\u043e \u044f \u0432\u0441\u0435 \u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0432\u043e\u0439.<\/p>\n<pre><code class=\"bash\"># nano \/etc\/php5\/fpm\/php.ini <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e \u0441\u044e\u0434\u0430 <a href=\"http:\/\/hastebin.com\/siqehilola.hs\">hastebin.com\/siqehilola.hs<\/a><\/p>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c php-fpm<\/p>\n<pre><code class=\"bash\"># service php5-fpm restart <\/code><\/pre>\n<h3>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c nginx.<\/h3>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u043c\u0438, \u043b\u0435\u043d\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043b\u0435\u0437\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c nginx. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043e\u0431\u0440\u0430\u043b \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433.<br \/>  \u041f\u043e\u0441\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u043f\u043a\u0443, \u0437\u0430\u043b\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0421\u043a\u0430\u0437\u0430\u043d\u043e, \u0441\u0434\u0435\u043b\u0430\u043d\u043e. \u0412\u043e\u0442 \u0412\u0430\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 nginx:<\/p>\n<pre><code class=\"bash\">http { \t## \t# \u0411\u0430\u0437\u043e\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \t## \tsendfile on; \ttcp_nopush on; \ttcp_nodelay on; \tkeepalive_timeout 65; \ttypes_hash_max_size 2048;  \t# \u041f\u0440\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u0432\u0440\u0430\u0433\u0443 \u0432\u0435\u0440\u0441\u0438\u044e nginx \tserver_tokens off; \tinclude \/etc\/nginx\/mime.types; \tdefault_type application\/octet-stream;  \t## \t# \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043b\u043e\u0433\u043e\u0432 \t## \taccess_log \/var\/log\/nginx\/access.log; \terror_log \/var\/log\/nginx\/error.log;  \t## \t# \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0436\u0430\u0442\u0438\u044f \t## \tgzip on; \tgzip_disable &quot;msie6&quot;;  \t## \t# \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u043e\u043c\u0435\u043d\u043e\u0432 \t## \tinclude \/etc\/nginx\/conf.d\/*.conf;   \tserver { \t\t \t\tserver_name phpmyadmin.l;  \t\tlisten 80;  \t\troot \/web\/utils\/phpmyadmin.l; \t\tindex index.php index.html index.htm;   \t\taccess_log \/web\/access.log; \t\terror_log \/web\/error.log;  \t\tlocation \/ { \t\t\ttry_files $uri $uri\/ \/index.php?q=$uri&$args; \t\t} \t\t \t\tlocation ~* ^.+.(js|css|png|jpg|jpeg|gif|ico)$ { \t\t        access_log        off; \t\t        expires           max; \t\t}  \t\tlocation ~ \\.php$ { \t\t        # fastcgi_split_path_info ^(.+\\.php)(.*)$; \t\t        fastcgi_pass   unix:\/tmp\/php5-fpm.sock; \t\t        fastcgi_index  index.php; \t\t  \t\t        fastcgi_param  DOCUMENT_ROOT    $document_root; \t\t        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; \t\t        fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_script_name;  \t\t        include fastcgi_params; \t\t        fastcgi_param  QUERY_STRING     $query_string; \t\t        fastcgi_param  REQUEST_METHOD   $request_method; \t\t        fastcgi_param  CONTENT_TYPE     $content_type; \t\t        fastcgi_param  CONTENT_LENGTH   $content_length; \t\t        fastcgi_intercept_errors        off; \t\t        fastcgi_ignore_client_abort     off; \t\t        fastcgi_connect_timeout 60; \t\t        fastcgi_send_timeout 180; \t\t        fastcgi_read_timeout 180; \t\t        fastcgi_buffer_size 128k; \t\t        fastcgi_buffers 4 256k; \t\t        fastcgi_busy_buffers_size 256k; \t\t        fastcgi_temp_file_write_size 256k; \t\t}   \t}    \tserver { \t\t \t\tserver_name ~^(.*)$;  \t\tlisten 80;  \t\tset $p $host;\t \t\tif ($host ~ www\\.(.*)) { set $p $1; }   \t\troot \/web\/sites\/$p; \t\tindex index.php index.html index.htm;   \t\taccess_log \/web\/access.log; \t\terror_log \/web\/error.log;  \t\tlocation \/ { \t\t\ttry_files $uri $uri\/ \/index.php?q=$uri&$args; \t\t} \t\t \t\tlocation ~* ^.+.(js|css|png|jpg|jpeg|gif|ico)$ { \t\t        access_log        off; \t\t        expires           max; \t\t} \t\tlocation ~ \\.php$ { \t\t        # fastcgi_split_path_info ^(.+\\.php)(.*)$; \t\t        fastcgi_pass   unix:\/tmp\/php5-fpm.sock; \t\t        fastcgi_index  index.php; \t\t  \t\t        fastcgi_param  DOCUMENT_ROOT    $document_root; \t\t        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name; \t\t        fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_script_name;  \t\t        include fastcgi_params; \t\t        fastcgi_param  QUERY_STRING     $query_string; \t\t\tfastcgi_param  SERVER_NAME      $p; \t\t        fastcgi_param  REQUEST_METHOD   $request_method; \t\t        fastcgi_param  CONTENT_TYPE     $content_type; \t\t        fastcgi_param  CONTENT_LENGTH   $content_length; \t\t        fastcgi_intercept_errors        off; \t\t        fastcgi_ignore_client_abort     off; \t\t        fastcgi_connect_timeout 60; \t\t        fastcgi_send_timeout 180; \t\t        fastcgi_read_timeout 180; \t\t        fastcgi_buffer_size 128k; \t\t        fastcgi_buffers 4 256k; \t\t        fastcgi_busy_buffers_size 256k; \t\t        fastcgi_temp_file_write_size 256k; \t\t}  \t\tlocation = \/favicon.ico { \t\t        log_not_found off; \t\t        access_log off; \t\t}  \t}   } <\/code><\/pre>\n<pre><code class=\"bash\"># mv \/etc\/nginx\/nginx.conf \/etc\/nginx\/nginx.conf.default # nano \/etc\/nginx\/nginx.conf <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0448\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433<\/p>\n<p>  \u042f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043a\u043e\u043d\u0444\u0438\u0433 \u0445\u043e\u0440\u043e\u0448 \u0438 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u043d\u043e \u043e\u043d \u0443 \u043c\u0435\u043d\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u043e\u043a\u0430 \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u043b\u043e. \u042f \u0431\u0443\u0434\u0443 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0434 \u0435\u0441\u043b\u0438 \u0442\u0443\u0442 \u043d\u0430\u0439\u0434\u0443\u0442\u0441\u044f \u043b\u044e\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0435\u0441\u0442\u044c \u0447\u0442\u043e \u0441\u044e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  \u041d\u0443 \u0432\u0441\u0435, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0435\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u0438. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u044f\u0441\u043d\u044e \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c.<\/p>\n<ul>\n<li>\/web \u043f\u0430\u043f\u043a\u0430 \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u0435\u0440\u0432\u0435\u0440, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 <\/li>\n<li>\/web\/utils \u2014 \u0442\u0443\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0442\u0438\u043f\u0430 phpmyadmin, \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0447\u0442\u043e \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0442.\u043a. \u043f\u043e\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0434\u043e.<\/li>\n<li>\/web\/sites \u2014 \u0442\u0443\u0442 \u043d\u0430\u0448\u0438 \u0432\u0441\u0435 \u0441\u0430\u0439\u0442\u044b.<\/li>\n<\/ul>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043b\u043e\u0433\u0438, access \u0438 error.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0438<\/p>\n<pre><code class=\"bash\"># mkdir \/web && mkdir \/web\/sites && mkdir \/web\/utils <\/code><\/pre>\n<p>  \u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0430<\/p>\n<pre><code class=\"bash\"># chmod -R a-rwx,u+rwX,g+rX \/web && chown www-data:www-data -R \/web <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c nginx.<\/p>\n<pre><code class=\"bash\"># service nginx restart <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c phpmyadmin.<\/p>\n<p>  \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c <\/p>\n<pre><code class=\"bash\"># su www-data # cd \/web\/utils\/phpmyadmin.l && wget http:\/\/jaist.dl.sourceforge.net\/project\/phpmyadmin\/phpMyAdmin\/4.0.4.2\/phpMyAdmin-4.0.4.2-all-languages.zip && unzip phpMyAdmin-4.0.4.2-all-languages.zip && mv phpMyAdmin-4.0.4.2-all-languages\/* .\/ && rm -r phpMyAdmin-4.0.4.2-all-languages\/ && rm phpMyAdmin-4.0.4.2-all-languages.zip # exit <\/code><\/pre>\n<p>  \u0412\u0441\u0435, phpmyadmin \u0433\u043e\u0442\u043e\u0432 \u043a \u0442\u0440\u0443\u0434\u0443 \u0438 \u043e\u0431\u043e\u0440\u043e\u043d\u0435. \u043c\u043e\u0436\u043d\u043e \u0435\u0433\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/phpmyadmin.l\">phpmyadmin.l<\/a><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u043d\u0430\u0441 \u0433\u043e\u0442\u043e\u0432, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u0441\u044f \u043f\u0440\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u0431\u044b\u043b\u043e \u043e\u043a\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.<\/p>\n<p>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0448\u0443 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e, \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f, \u043c\u044b \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 sshfs \u043c\u0430\u0443\u043d\u0442\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u0441\u0430\u0439\u0442\u0430\u043c\u0438, \u0438 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u043e\u043c. <\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043c\u043d\u0435 \u043b\u0435\u043d\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \/etc\/hosts \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u043c.<\/p>\n<h3>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0414\u0435\u043b\u0430\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u043f\u043e \u043a\u043b\u044e\u0447\u0443<\/p>\n<p>  \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0430\u0434\u043e:<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0435\u043c\u043e\u043d\u044b nginx \u0438 php5-fpm, \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e \u0434\u0435\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u044e\u0437\u0435\u0440\u0430 www-data.<\/p>\n<pre><code class=\"bash\"># service nginx stop && service php5-fpm stop # mkdir \/home\/www-data && usermod -d \/home\/www-data www-data # service nginx start && service php5-fpm start <\/code><\/pre>\n<p>  \u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 \u043e\u0442 \u0440\u0443\u0442\u0430, \u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0432 \u0444\u0430\u0439\u043b \/home\/www-data\/.ssh\/authorized_keys<\/p>\n<p>  \u041d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<\/p>\n<pre><code class=\"bash\"># ssh www-data@127.0.0.1 -p 2222 <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u0448\u043b\u0438 \u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f, \u0442\u043e \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u0447\u0442\u043e \u0442\u043e \u0412\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043d\u0435 \u0442\u0430\u043a \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c 2 \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>  1) \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0430\u0443\u043d\u0442\u0438\u043d\u0433, \u0442\u0430\u043a \u0436\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \/etc\/hosts. <\/p>\n<pre><code class=\"bash\"># nano \/usr\/bin\/webserver <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  sleep=60 # \u0418\u043d\u0442\u0435\u0440\u0432\u0430\u043b  when_mount='\/mnt\/webserver' # \u0414\u0435\u0440\u0438\u043a\u0442\u043e\u0440\u0438\u044f \u043a\u0443\u0434\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0443\u043d\u0442\u0438\u0442\u044c\u0441\u044f  directories=`ls -p $when_mount | grep &quot;\/&quot; | sed 's\/\\\/\/\/g'`   while true; do  \tif ! $(mount | grep &quot;$when_mount&quot; &gt; \/dev\/null); then  \t\tif [ &quot;$(nmap -p 2222 -sT 127.0.0.1  | awk '{print $2}' | grep open)&quot; = &quot;open&quot; ]; then \t\t\tsshfs -o allow_other -o port=2222 www-data@127.0.0.1:\/web\/sites &quot;$when_mount&quot; \t\tfi;  \telif ! [ &quot;$directories&quot; = $(ls -p $when_mount | grep &quot;\/&quot; | sed 's\/\\\/\/\/g') ]; then  \t\thosts=$(grep -v &quot;127.0.0.1&quot; \/etc\/hosts) \t\tdirectories=$(ls -p $when_mount | grep &quot;\/&quot; | sed 's\/\\\/\/\/g')   \t\tif ! [ &quot;$directories&quot; = &quot;&quot; ] \t\tthen \t\t\techo &quot;$hosts&quot; &gt; \/etc\/hosts \t    \techo &quot;127.0.0.1 phpmyadmin.l &quot;$directories &gt;&gt; \/etc\/hosts \t    fi;  \tfi  \tsleep &quot;$sleep&quot; done <\/code><\/pre>\n<p>  \u041d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u044f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u044e, \u0438 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u0442\u043e\u043c\u0443 \u043a\u0442\u043e \u043d\u0430\u0439\u0434\u0435\u0442 \u0442\u0430\u043c \u0431\u0430\u0433\u0438. \u041d\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e.<br \/>  \u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443, \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c<\/p>\n<pre><code class=\"bash\"># chmod -x \/usr\/bin\/webserver <\/code><\/pre>\n<p>  2) \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440.<\/p>\n<pre><code class=\"bash\"># nano \/etc\/init.d\/webserverd <\/code><\/pre>\n<p>  \u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  case &quot;$1&quot; in \tstart) \t\techo -n &quot;Starting webserver: &quot; \t\t(su - darkrain -c 'vboxheadless -s webserver' &) \t\t(webserver &) \t\t;;  \tstop) \t\techo -n &quot;Stopping webserver: &quot; \t\t(su - darkrain -c 'VBoxManage controlvm webserver savestate' &) \t\tkillall webserver \t\t;; esac  exit 0 <\/code><\/pre>\n<p>  darkrain \u2014 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u044e\u0437\u0435\u0440\u0430, \u0442.\u043a. \u0441\u043e\u0437\u0434\u0430\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0447\u0438\u043d\u0435\u043d\u0438\u0438 \u0443 \u043d\u0435\u0433\u043e, \u0430 \u043d\u0435 \u0443 \u0440\u0443\u0442\u0430.<br \/>  \u041e\u043f\u044f\u0442\u044c \u0436\u0435 \u044f \u0442\u0443\u0442 \u043d\u0435 \u043f\u0440\u043e\u0444\u0438, \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u0442\u0435\u043b\u0435\u043d \u0435\u0441\u043b\u0438 \u043c\u0435\u043d\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u044f\u0442, \u043d\u043e \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  \u0412\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0430\u0432\u0430, \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432<\/p>\n<pre><code class=\"bash\"># chmod -x \/etc\/init.d\/webserverd && update-rc.d webserverd defaults <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u043d\u044b \u043d\u0430\u0448\u0438 \u0441\u0430\u0439\u0442\u044b<\/p>\n<pre><code class=\"bash\"># mkdir \/mnt\/webserver && chmod 777 \/mnt\/webserver <\/code><\/pre>\n<p>  \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0443\u0435\u043c \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440<\/p>\n<pre><code class=\"bash\"># service webserverd stop # service webserverd start <\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0441\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u044b \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430:<\/p>\n<pre><code class=\"bash\">$ mkdir \/mnt\/webserver\/testsite.ru.l && echo &quot;&lt;?php phpinfo();&quot; &gt; \/mnt\/webserver\/testsite.ru.l\/index.php <\/code><\/pre>\n<p>  \u0416\u0434\u043c\u0435\u043c 60 \u0441\u0435\u043a\u0443\u043d\u0434, \u0438 \u0438\u0434\u0435\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/testsite.ru.l\">testsite.ru.l<\/a><\/p>\n<p>  \u041d\u0443 \u0432\u0441\u0435, \u043c\u044b \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438! \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u0440\u043e \u0442\u043e \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430, \u043f\u043e\u043a\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u0443\u044e \u043d\u0438\u0431\u0443\u0434\u044c \u043b\u0438\u0431\u0443 \u0438\u043b\u0438 \u0435\u0449\u0435 \u0447\u0442\u043e \u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u043e\u0432\u044b\u043c \u0441\u0430\u0439\u0442\u043e\u043c \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043c \u043f\u0430\u043f\u043a\u0443 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0434\u043e\u043c\u0435\u043d\u0430 \u0432 \/mnt\/webserver, \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0443\u0434\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044f\u0441\u044c.<\/p>\n<p>  P.S.<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u043e php-fpm, \u043f\u0440\u043e \u043f\u0443\u043b\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 <a href=\"http:\/\/manualpages.pro\/node\/31\">manualpages.pro\/node\/31<\/a> <\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0432\u0437\u044f\u0442\u0430 \u043f\u043e \u043a\u0440\u0443\u043f\u0438\u0446\u0430\u043c \u0438\u0437 Google.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u0442\u043e\u043c\u0443 \u043a\u0442\u043e \u043c\u043d\u0435 \u0434\u0430\u043b \u0438\u043d\u0432\u0430\u0439\u0442! \u0414\u0430, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b \u043a\u0442\u043e \u044d\u0442\u043e. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/188702\/\"> http:\/\/habrahabr.ru\/post\/188702\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/f20\/950\/747\/f209507477a40b155034173a479e647a.png\" alt=\"nginx\" align=\"right\"\/><br \/>  \u041a\u043e\u0433\u0434\u0430 \u0434\u0435\u043b\u0430\u0435\u0448\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0441\u0430\u0439\u0442\u044b \u043d\u0430 WordPress, \u0442\u043e \u0441 \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0435\u0431\u0435 Xampp \u0438 \u0441\u043f\u043e\u043a\u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0448\u044c. <\/p>\n<p>  \u041d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u0430 \u0442\u0430\u043c \u0443\u0436\u0435 \u043a\u043e\u043d\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Xampp \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0434\u043e\u0431\u043d\u043e, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0443 \u043c\u0435\u043d\u044f \u0430\u043b\u043b\u0435\u0440\u0433\u0438\u044f \u043d\u0430 Apache.<\/p>\n<p>  \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u0435\u0433\u043e \u0436\u0438\u0432\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043f\u043e \u0442\u0438\u043f\u0443 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043a\u043e\u043c\u043f\u0435, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0427\u0442\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f:  <\/p>\n<ul>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 url \u0442\u0438\u043f\u0430 sitename.ru<\/li>\n<li>\u041d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \/etc\/hosts<\/li>\n<li>\u041d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 nginx<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435<\/li>\n<li>\u0423\u0434\u043e\u0431\u043d\u043e\u0435 \u0430\u0434\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/li>\n<li>\u0418\u0437\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435<\/li>\n<li>\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438 \u0437\u0430\u0431\u044b\u0442\u044c<\/li>\n<\/ul>\n<p>  \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0443 \u0441\u0435\u0431\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0432\u0441\u0435, \u043d\u043e \u0435\u0441\u0442\u044c \u0437\u0430\u0433\u0432\u043e\u0437\u0434\u043a\u0430, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e \u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f, \u0443\u043f\u0430\u0434\u0435\u0442 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, \u0438\u043b\u0438 \u0435\u0449\u0435 \u0447\u0442\u043e \u043d\u0438\u0431\u0443\u0434\u044c, \u0442\u043e \u043f\u043e\u0442\u043e\u043c \u043e\u043f\u044f\u0442\u044c \u0432\u0441\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u043d\u044c, \u0430 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044d\u043a\u0430\u043f \u0444\u0430\u0439\u043b\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0434\u043d\u044f\u043b \u0434\u0435\u0431\u0438\u0430\u043d \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 (virtualbox) \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b nginx+phpfpm, \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0445\u0430\u0443 \u0442\u0443 \u043f\u043e \u0441\u0432\u044f\u0437\u043a\u0435 nginx+phpfpm, \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0442\u0438\u043f\u0443 xampp.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-188702","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188702"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188702\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}