<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://178.140.10.58:8080/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://178.140.10.58:8080/feed.php">
        <title>Библиотека знаний - debian:web-server</title>
        <description>Заметки IT программиста</description>
        <link>http://178.140.10.58:8080/</link>
        <image rdf:resource="http://178.140.10.58:8080/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-17T12:20:14+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://178.140.10.58:8080/doku.php?id=debian:web-server:addsite"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://178.140.10.58:8080/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Библиотека знаний</title>
        <link>http://178.140.10.58:8080/</link>
        <url>http://178.140.10.58:8080/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://178.140.10.58:8080/doku.php?id=debian:web-server:addsite">
        <dc:format>text/html</dc:format>
        <dc:date>2017-01-23T19:39:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Скрит SH для cоздания сайта</title>
        <link>http://178.140.10.58:8080/doku.php?id=debian:web-server:addsite</link>
        <description>&lt;div class=&quot;tags&quot;&gt;&lt;span&gt;
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:script&amp;amp;do=showtag&amp;amp;tag=script&quot; class=&quot;wikilink1&quot; title=&quot;tag:script&quot; rel=&quot;tag&quot;&gt;script&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:shell&amp;amp;do=showtag&amp;amp;tag=shell&quot; class=&quot;wikilink1&quot; title=&quot;tag:shell&quot; rel=&quot;tag&quot;&gt;shell&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:bash&amp;amp;do=showtag&amp;amp;tag=bash&quot; class=&quot;wikilink1&quot; title=&quot;tag:bash&quot; rel=&quot;tag&quot;&gt;bash&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:sh&amp;amp;do=showtag&amp;amp;tag=sh&quot; class=&quot;wikilink1&quot; title=&quot;tag:sh&quot; rel=&quot;tag&quot;&gt;sh&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:nginx&amp;amp;do=showtag&amp;amp;tag=nginx&quot; class=&quot;wikilink1&quot; title=&quot;tag:nginx&quot; rel=&quot;tag&quot;&gt;nginx&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:mysql&amp;amp;do=showtag&amp;amp;tag=mysql&quot; class=&quot;wikilink1&quot; title=&quot;tag:mysql&quot; rel=&quot;tag&quot;&gt;mysql&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:redis&amp;amp;do=showtag&amp;amp;tag=redis&quot; class=&quot;wikilink1&quot; title=&quot;tag:redis&quot; rel=&quot;tag&quot;&gt;redis&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:php&amp;amp;do=showtag&amp;amp;tag=php&quot; class=&quot;wikilink1&quot; title=&quot;tag:php&quot; rel=&quot;tag&quot;&gt;php&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:install&amp;amp;do=showtag&amp;amp;tag=install&quot; class=&quot;wikilink1&quot; title=&quot;tag:install&quot; rel=&quot;tag&quot;&gt;install&lt;/a&gt;,
	&lt;a href=&quot;http://178.140.10.58:8080/doku.php?id=tag:sitecreate&amp;amp;do=showtag&amp;amp;tag=sitecreate&quot; class=&quot;wikilink1&quot; title=&quot;tag:sitecreate&quot; rel=&quot;tag&quot;&gt;sitecreate&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;

&lt;h1 class=&quot;sectionedit1&quot; id=&quot;скрит_sh_для_cоздания_сайта&quot;&gt;Скрит SH для cоздания сайта&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;
&lt;div class=&quot;plugin_note notetip&quot;&gt;&lt;pre class=&quot;code sh&quot;&gt;# cd ~
# wget https://raw.githubusercontent.com/Mirocow/site-create/master/create.sh
# bash ./create.sh my-site.com 55.55.55.55&lt;/pre&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;\u0421\u043a\u0440\u0438\u0442 SH \u0434\u043b\u044f c\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0430\u0439\u0442\u0430&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;\u0441\u043a\u0440\u0438\u0442_sh_\u0434\u043b\u044f_c\u043e\u0437\u0434\u0430\u043d\u0438\u044f_\u0441\u0430\u0439\u0442\u0430&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:0,&amp;quot;secid&amp;quot;:1,&amp;quot;range&amp;quot;:&amp;quot;72-299&amp;quot;} --&gt;
&lt;h2 class=&quot;sectionedit2&quot; id=&quot;nano_site-createsh&quot;&gt;nano ~/site-create.sh&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;
 &lt;a href=&quot;https://github.com/Mirocow/site-create&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/Mirocow/site-create&quot; rel=&quot;ugc nofollow&quot;&gt;https://github.com/Mirocow/site-create&lt;/a&gt;
&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;
Скрипт для автоматической генерации сайтов и всех необходимых зависимостей для функционирования Nginx + Php + Yii2 + Deploy from github
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;https://github.com/Mirocow/site-create/blob/master/site-create.sh&quot; class=&quot;mediafile mf_sh&quot;&gt;site-create.sh&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file bash&quot;&gt;&lt;span class=&quot;co0&quot;&gt;#!/bin/bash&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-n&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es2&quot;&gt;$BASH&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ;&lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; Please run this script &lt;span class=&quot;re4&quot;&gt;$0&lt;/span&gt; with &lt;span class=&quot;kw2&quot;&gt;bash&lt;/span&gt;; &lt;span class=&quot;kw3&quot;&gt;exit&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; trim&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
  &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;$1&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;awk&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;&#039;{gsub(/^ +| +$/,&amp;quot;&amp;quot;)} {print $0}&#039;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; create_site&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re2&quot;&gt;site_name&lt;/span&gt;=&lt;span class=&quot;re1&quot;&gt;$HOST&lt;/span&gt;
		&lt;span class=&quot;re2&quot;&gt;site_alias&lt;/span&gt;=&lt;span class=&quot;re1&quot;&gt;$ALIAS&lt;/span&gt;
		&lt;span class=&quot;re2&quot;&gt;site_addr&lt;/span&gt;=&lt;span class=&quot;re1&quot;&gt;$IP&lt;/span&gt;
		&lt;span class=&quot;re2&quot;&gt;password&lt;/span&gt;=$&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;date&lt;/span&gt; +&lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;s &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; sha256sum &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; base64 &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;16&lt;/span&gt; ; &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$SET_PASSWORD&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
						&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;:&lt;span class=&quot;co1&quot;&gt;${password}&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; chpasswd
						usermod  &lt;span class=&quot;re5&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;bin&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;bash&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
						&lt;span class=&quot;re2&quot;&gt;password&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;[without changes]&#039;&lt;/span&gt;
						&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;User&#039;s password is not updated&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;						
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
				&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;
				&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;logs
				&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;httpdocs
				&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;httpdocs&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;web
				useradd &lt;span class=&quot;re5&quot;&gt;-d&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;bin&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;bash&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;
				usermod &lt;span class=&quot;re5&quot;&gt;-G&lt;/span&gt; www-data &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;
				&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;:&lt;span class=&quot;co1&quot;&gt;${password}&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; chpasswd
				&lt;span class=&quot;kw2&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh
				&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; 0700 &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh
				&lt;span class=&quot;kw2&quot;&gt;ssh-keygen&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4096&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-t&lt;/span&gt; rsa &lt;span class=&quot;re5&quot;&gt;-N&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;id_rsa
				&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; 0600 &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;id_rsa
				&lt;span class=&quot;kw2&quot;&gt;ssh-keygen&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-b&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4096&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-t&lt;/span&gt; dsa &lt;span class=&quot;re5&quot;&gt;-N&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;id_dsa
				&lt;span class=&quot;kw2&quot;&gt;chmod&lt;/span&gt; 0600 &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;.ssh&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;id_dsa
				&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt;  &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;lt;?php phpinfo();&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;httpdocs&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;web&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;index.php
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$LOCK&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
						&lt;span class=&quot;re2&quot;&gt;authpassword&lt;/span&gt;=$&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;date&lt;/span&gt; +&lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;s &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; sha256sum &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; base64 &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt; ; &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
						php &lt;span class=&quot;re5&quot;&gt;-r&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;echo &#039;admin:&#039; . crypt(&#039;&lt;span class=&quot;es3&quot;&gt;${authpassword}&lt;/span&gt;&#039;, &#039;salt&#039;) . &#039;: Web auth for &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&#039;;&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;authfile
				&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
				&lt;span class=&quot;kw2&quot;&gt;chown&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;:www-data &lt;span class=&quot;re5&quot;&gt;-R&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;home&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$APACHE&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;
&amp;lt;VirtualHost 127.0.0.1:8080&amp;gt;
                ServerName &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
                ServerAlias www.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
                ServerAdmin info@reklamu.ru
                DocumentRoot /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/httpdocs/web
                &amp;lt;Directory /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/httpdocs/web&amp;gt;
                                Options Indexes FollowSymLinks MultiViews
                                Options FollowSymLinks
                                AllowOverride All
                                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                                Order allow,deny
                                Allow from all
                &amp;lt;/Directory&amp;gt;
&amp;nbsp;
                ErrorLog &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;{APACHE_LOG_DIR}/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;-error.log
&amp;nbsp;
                # Possible values include: debug, info, notice, warn, error, crit,
                # alert, emerg.
                LogLevel warn
&amp;nbsp;
                CustomLog &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;{APACHE_LOG_DIR}/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;-access.log combined
&amp;lt;/VirtualHost&amp;gt;
&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;etc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;apache2&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;sites-enabled&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;.conf
&amp;nbsp;
&lt;span class=&quot;re2&quot;&gt;main&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;
                                # Apache back-end
                                location / {
                                                proxy_pass  http://127.0.0.1:8080;
                                                proxy_ignore_headers   Expires Cache-Control;
                                                proxy_set_header        Host            &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;host;
                                                proxy_set_header        X-Real-IP       &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;remote_addr;
                                                proxy_set_header        X-Forwarded-For &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;proxy_add_x_forwarded_for;
                                }
                                location ~* \.(js|css|png|jpg|jpeg|gif|ico|swf)&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt; {
                                                expires 1y;
                                                log_not_found off;
                                                proxy_pass  http://127.0.0.1:8080;
                                                proxy_ignore_headers   Expires Cache-Control;
                                                proxy_set_header        Host            &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;host;
                                                proxy_set_header        X-Real-IP       &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;remote_addr;
                                                proxy_set_header        X-Forwarded-For &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;proxy_add_x_forwarded_for;
                                }
                                location ~* \.(html|htm)&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt; {
                                                expires 1h;
                                                proxy_pass  http://127.0.0.1:8080;
                                                proxy_ignore_headers   Expires Cache-Control;
                                                proxy_set_header        Host            &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;host;
                                                proxy_set_header        X-Real-IP       &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;remote_addr;
                                                proxy_set_header        X-Forwarded-For &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;proxy_add_x_forwarded_for;
                                }
&amp;quot;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;re2&quot;&gt;php_config&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;;; php-fpm config for &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
[&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;]
&amp;nbsp;
user = &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
group = www-data
&amp;nbsp;
listen = /var/run/php-fpm-&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;-&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.sock
listen.owner = &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
listen.group = www-data
listen.mode = 0666
&amp;nbsp;
pm = dynamic
pm.max_children = 250
pm.start_servers = 8
pm.min_spare_servers = 8
pm.max_spare_servers = 16
&amp;nbsp;
chdir = /
security.limit_extensions = false
php_flag[display_errors] = on
php_admin_value[error_log] = /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/logs/fpm-php-&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;-&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.log
php_admin_flag[log_errors] = on
&amp;nbsp;
; Documentation: http://php.net/manual/ru/opcache.configuration.php
php_flag[opcache.enable] = &lt;span class=&quot;es2&quot;&gt;$PHP_OPCACHE&lt;/span&gt;
php_flag[opcache.enable_cli] = &lt;span class=&quot;es2&quot;&gt;$PHP_OPCACHE&lt;/span&gt;
&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es2&quot;&gt;$php_config&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;/etc/php/&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;/fpm/pool.d/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.conf&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$LOCK&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
    &lt;span class=&quot;re2&quot;&gt;lock&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;
auth_basic &lt;span class=&quot;es1&quot;&gt;\&amp;quot;&lt;/span&gt;Website development&lt;span class=&quot;es1&quot;&gt;\&amp;quot;&lt;/span&gt;;
auth_basic_user_file /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/authfile;
&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
    &lt;span class=&quot;re2&quot;&gt;lock&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;&#039;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re2&quot;&gt;main&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;
                                # With PHP-FPM
                                location / {
                                                index index.php;
                                                try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri/ /index.php?&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;query_string;
                                }
&amp;nbsp;
                                # PHP fastcgi
                                location ~ \.php {
                                                #try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri =404;
                                                include fastcgi_params;
                                                # Use your own port of fastcgi here
                                                #fastcgi_pass 127.0.0.1:9000;
                                                &lt;span class=&quot;es3&quot;&gt;${lock}&lt;/span&gt;
                                                fastcgi_pass unix:/var/run/php-fpm-&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;-&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.sock;
                                                fastcgi_index index.php;
                                                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                                                fastcgi_param PATH_INFO &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;fastcgi_path_info;
                                                fastcgi_param SCRIPT_FILENAME &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;document_root&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;fastcgi_script_name;
                                }
&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$AWSTATS&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;awstats&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;# Awstats
                                server {
                                listen &lt;span class=&quot;es3&quot;&gt;${site_addr}&lt;/span&gt;;
                                server_name  awstats.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;;
&amp;nbsp;
                                auth_basic            &lt;span class=&quot;es1&quot;&gt;\&amp;quot;&lt;/span&gt;Restricted&lt;span class=&quot;es1&quot;&gt;\&amp;quot;&lt;/span&gt;;
                                auth_basic_user_file  /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/authfile;
&amp;nbsp;
                                access_log /var/log/nginx/access.awstats.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.log;
                                error_log /var/log/nginx/error.awstats.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.log;
&amp;nbsp;
                                location / {
                                                root   /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/awstats/;
                                                index  awstats.html;
                                                access_log off;
                                }
&amp;nbsp;
                                location  /awstats-icon/ {
                                                alias  /usr/share/awstats/icon/;
                                                access_log off;
                                }
&amp;nbsp;
                                # apt-get awstats install
                                location ~ ^/cgi-bin {
                                                access_log off;
                                                fastcgi_pass   unix:/var/run/fcgiwrap.socket;
                                                include /etc/nginx/fastcgi_params;
                                                fastcgi_param  SCRIPT_FILENAME  /usr/lib&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;fastcgi_script_name;
                                }
                                }
&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;awstats&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;&#039;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;site-www&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;redirect&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;
                                # Rerirect &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
                                server {
                                                listen &lt;span class=&quot;es3&quot;&gt;${site_addr}&lt;/span&gt;;
                                                server_name &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;;
                                                return 301 http://www.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;request_uri;
                                }
&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;server_name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;www.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;				
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;www-site&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;redirect&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;
# Rerirect www.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;
server {
                                listen &lt;span class=&quot;es3&quot;&gt;${site_addr}&lt;/span&gt;;
                                server_name www.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;;
                                return 301 http://&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;request_uri;
}
&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;server_name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;off&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;redirect&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;&#039;&lt;/span&gt;
        &lt;span class=&quot;re2&quot;&gt;server_name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;
&lt;span class=&quot;es3&quot;&gt;${awstats}&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;es3&quot;&gt;${redirect}&lt;/span&gt;
&amp;nbsp;
# Site &lt;span class=&quot;es3&quot;&gt;${server_name}&lt;/span&gt;
server {
                                listen &lt;span class=&quot;es3&quot;&gt;${site_addr}&lt;/span&gt;;
                                server_name &lt;span class=&quot;es3&quot;&gt;${server_name}&lt;/span&gt; &lt;span class=&quot;es3&quot;&gt;${site_alias}&lt;/span&gt;;
                                root /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/httpdocs/web;
                                index index.php;
                                access_log /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/logs/access.log;
                                error_log  /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/logs/error.log error;
                                charset utf-8;
                                #charset        windows-1251;
                                location = /favicon.ico {
                                                log_not_found off;
                                                access_log off;
                                                break;
                                }
                                location = /robots.txt {
                                                allow all;
                                                log_not_found off;
                                                access_log off;
                                }
                                &lt;span class=&quot;es3&quot;&gt;${main}&lt;/span&gt;
                                location ~ /(protected|themes/\w+/views)/ {
                                                access_log off;
                                                log_not_found off;
                                                return 404;
                                }
                                #
                                location ~ \.(xml)&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt; {
                                                expires 24h;
                                                charset windows-1251;
                                                #log_not_found off;
                                                #try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri =404;
                                                #try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri/ /index.php?&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;query_string;
                                }
                                #
                                location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt; {
                                                expires 24h;
                                                #log_not_found off;
                                                #try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri =404;
                                                try_files &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri &lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;uri/ /index.php?&lt;span class=&quot;es1&quot;&gt;\$&lt;/span&gt;query_string;
                                }
&amp;nbsp;
                                # Hide all system files
                                location  ~ /\. {
                                                deny  all;
                                                access_log off;
                                                log_not_found off;
                                }
}
&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;etc&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;nginx&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;conf.d&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;${site_name}&lt;/span&gt;.conf
&amp;nbsp;
				service php&lt;span class=&quot;co1&quot;&gt;${PHP}&lt;/span&gt;&lt;span class=&quot;re5&quot;&gt;-fpm&lt;/span&gt; reload
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$APACHE&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          service apache2 reload
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        service nginx reload
&amp;nbsp;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;--------------------------------------------------------&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;User: &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Login: &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Password: &lt;span class=&quot;es3&quot;&gt;${password}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Path: /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;SSH Private file: /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/.ssh/id_rsa&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;SSH Public file: /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/.ssh/id_rsa.pub&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Servers:&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Site name: &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt; (&lt;span class=&quot;es3&quot;&gt;${IP}&lt;/span&gt;)&amp;quot;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-z&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$site_alias&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Site alias: &lt;span class=&quot;es3&quot;&gt;${site_alias}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;site-www&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Use redirect from &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt; to &lt;span class=&quot;es3&quot;&gt;${server_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;				
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;www-site&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Use redirect from &lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt; to &lt;span class=&quot;es3&quot;&gt;${server_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$REDIRECT&lt;/span&gt; = &lt;span class=&quot;st_h&quot;&gt;&#039;off&#039;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Redirect disabled. use only &lt;span class=&quot;es3&quot;&gt;${server_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Site root: /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/httpdocs/web&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Site logs path: /home/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;/logs&amp;quot;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$APACHE&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Back-end server: Apache 2&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;NGINX: /etc/nginx/conf.d/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.conf&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;APACHE: /etc/apache2/sites-enabled/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.conf&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Back-end server: PHP-FPM&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;NGINX: /etc/nginx/conf.d/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.conf&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;PHP-FPM: /etc/php/&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;/fpm/pool.d/&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.conf&amp;quot;&lt;/span&gt;  
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;unixsock: /var/run/php-fpm-&lt;span class=&quot;es3&quot;&gt;${PHP}&lt;/span&gt;-&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;.sock&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$LOCK&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Web auth: admin &lt;span class=&quot;es3&quot;&gt;${authpassword}&lt;/span&gt;&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$AWSTATS&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-eq&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Statistic:&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;awstats.&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt;&amp;quot;&lt;/span&gt;
          &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Add crontab task: */20 * * * * /usr/lib/cgi-bin/awstats.pl -config=&lt;span class=&quot;es3&quot;&gt;${site_name}&lt;/span&gt; -update &amp;gt; /dev/null&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;--------------------------------------------------------&amp;quot;&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
usage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;cat&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;&amp;lt;&amp;lt; EOF
usage: $0 options
&amp;nbsp;
This script create settings files for nginx, php-fpm (ver: 5, 7), apache2, awstats.
&amp;nbsp;
OPTIONS:
   --host=                  Host name without www (Example: --host=myhost.com)
   --ip=                    IP address, default usage 80 (Example: --ip=127.0.0.1:8080)
   --redirect=              WWW redirect add (Example: --redirect=www-site or --redirect=site-www or disable redirect --redirect=off)
   --alias=                 Set Nginx alias (Examle: --alias=&amp;quot;alias1 alias2 etc&amp;quot;)
   --apache                 Usage apache back-end
   --awstats                Usage awstats
   --dont-change-password   Usage for change user password (Default: 1. Usage only for update)
   -5 | --php5              Usage PHP 5.x
   -7 | --php7              Usage PHP 7.0
   -71 | --php71            Usage PHP 7.1
   -72 | --php72            Usage PHP 7.2
   -73 | --php73            Usage PHP 7.3
   -74 | --php74            Usage PHP 7.4         
   -l | --lock              Usage Nginx HTTP Auth basic	 
   -h | --help              Usage
&amp;nbsp;
EXAMPLES:
   bash site-create.sh --host=&amp;quot;mirocow.com&amp;quot; --ip=&amp;quot;192.168.1.131:8082&amp;quot;
   bash site-create.sh --host=&amp;quot;mirocow.com&amp;quot; --alias=&amp;quot;c1.mirocow.com c2.mirocow.com&amp;quot; --php73
&amp;nbsp;
EOF&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re2&quot;&gt;SET_PASSWORD&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;HTTPS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;REDIRECT&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;site-www&#039;&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;LOCK&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;HOST&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;&#039;&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;ALIAS&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;&#039;&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;APACHE&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;AWSTATS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.2&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;PHP_OPCACHE&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;Off&#039;&lt;/span&gt;
&lt;span class=&quot;re2&quot;&gt;IP&lt;/span&gt;=$&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;trim $&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;hostname&lt;/span&gt; -I&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:&lt;span class=&quot;nu0&quot;&gt;80&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;$@&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;re1&quot;&gt;$i&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt;		
        &lt;span class=&quot;re5&quot;&gt;--host&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;HOST&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${i#*=}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;--alias&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;ALIAS&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${i#*=}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;				
        &lt;span class=&quot;re5&quot;&gt;--ip&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;IP&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${i#*=}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;--redirect&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;REDIRECT&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es3&quot;&gt;${i#*=}&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        --https&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;HTTPS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        --apache&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;APACHE&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        --dont-change-password&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;SET_PASSWORD&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-l&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --lock&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;LOCK&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-5&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php5&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;5.6&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-7&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php7&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.0&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-71&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php71&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.1&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-72&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php72&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.2&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-73&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php73&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.3&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-74&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php74&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;7.4&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;        
        &lt;span class=&quot;re5&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --php-opcache&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;PHP_OPCACHE&lt;/span&gt;=&lt;span class=&quot;st_h&quot;&gt;&#039;On&#039;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;	
        &lt;span class=&quot;re5&quot;&gt;-w&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --awstats&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;re2&quot;&gt;AWSTATS&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;shift&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;re5&quot;&gt;-h&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;|&lt;/span&gt; --help&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            usage
            &lt;span class=&quot;kw3&quot;&gt;exit&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;co0&quot;&gt;# unknown option&lt;/span&gt;
        &lt;span class=&quot;sy0&quot;&gt;;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;esac&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;done&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co0&quot;&gt;# === AUTORUN ===&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-z&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es2&quot;&gt;$HOST&lt;/span&gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
  create_site
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
  usage
&lt;span class=&quot;kw1&quot;&gt;fi&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;/div&gt;
&lt;!-- EDIT{&amp;quot;target&amp;quot;:&amp;quot;section&amp;quot;,&amp;quot;name&amp;quot;:&amp;quot;nano ~\/site-create.sh&amp;quot;,&amp;quot;hid&amp;quot;:&amp;quot;nano_site-createsh&amp;quot;,&amp;quot;codeblockOffset&amp;quot;:1,&amp;quot;secid&amp;quot;:2,&amp;quot;range&amp;quot;:&amp;quot;300-&amp;quot;} --&gt;</description>
    </item>
</rdf:RDF>
