snipt

Ctrl+h for KB shortcuts

Text only

Untitled

try_files            $uri $uri/ /index.php?$args;
https://snipt.net/embed/e909345fd95e5adf3b8f76cdb14054e9/
/raw/e909345fd95e5adf3b8f76cdb14054e9/
e909345fd95e5adf3b8f76cdb14054e9
text
Text only
1
2019-06-20T14:19:44
True
False
False
Aug 09, 2016 at 07:30 AM
/api/public/snipt/147534/
7e15a4db
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>try_files $uri $uri/ /index.php?$args; </span></pre></div> </td></tr></table>

Text only

Untitled

1
2
3
4
5
6
FTP hostname : ADRES IP TWOJEGO SERWERA
FTP port : 21
FTP mode : FTP (explicit SSL)
FTP Passive (PASV) : ensure is checked/enabled
FTP username created for domenatestowa.kylos.pl : wordpress
FTP password created for domenatestowa.kylos.pl : HASŁO
https://snipt.net/embed/1133bdff84ccfb88bc2dd08ae8f6fb44/
/raw/1133bdff84ccfb88bc2dd08ae8f6fb44/
1133bdff84ccfb88bc2dd08ae8f6fb44
text
Text only
6
2019-06-06T22:56:56
True
False
False
Aug 09, 2016 at 07:27 AM
/api/public/snipt/147529/
a0c87e11
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>FTP hostname : ADRES IP TWOJEGO SERWERA </span><span id="L-2"><a name="L-2"></a>FTP port : 21 </span><span id="L-3"><a name="L-3"></a>FTP mode : FTP (explicit SSL) </span><span id="L-4"><a name="L-4"></a>FTP Passive (PASV) : ensure is checked/enabled </span><span id="L-5"><a name="L-5"></a>FTP username created for domenatestowa.kylos.pl : wordpress </span><span id="L-6"><a name="L-6"></a>FTP password created for domenatestowa.kylos.pl : HASŁO </span></pre></div> </td></tr></table>

Text only

Untitled

1
2
3
cd /usr/local/nginx/html/
wget https://files.phpmyadmin.net/phpMyAdmin/4.6.3/phpMyAdmin-4.6.3-all-languages.tar.gz
tar -xvzf phpMyAdmin-4.6.3-all-languages.tar.gz
https://snipt.net/embed/3b43d954e9b1790509891de11d94eb65/
/raw/3b43d954e9b1790509891de11d94eb65/
3b43d954e9b1790509891de11d94eb65
text
Text only
3
2019-06-15T09:34:58
True
False
False
Aug 09, 2016 at 06:49 AM
/api/public/snipt/147521/
5863ce22
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>cd /usr/local/nginx/html/ </span><span id="L-2"><a name="L-2"></a>wget https://files.phpmyadmin.net/phpMyAdmin/4.6.3/phpMyAdmin-4.6.3-all-languages.tar.gz </span><span id="L-3"><a name="L-3"></a>tar -xvzf phpMyAdmin-4.6.3-all-languages.tar.gz </span></pre></div> </td></tr></table>

Text only

Untitled

/usr/local/nginx/html/
https://snipt.net/embed/0795bc125977cf3c5748151ae7dd631e/
/raw/0795bc125977cf3c5748151ae7dd631e/
0795bc125977cf3c5748151ae7dd631e
text
Text only
1
2019-06-14T14:50:45
True
False
False
Aug 09, 2016 at 06:48 AM
/api/public/snipt/147520/
a61b1e72
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>/usr/local/nginx/html/ </span></pre></div> </td></tr></table>

Text only

Untitled

MySQL root password: HASŁO
https://snipt.net/embed/c91607dd313c73f676183b3945e2e84d/
/raw/c91607dd313c73f676183b3945e2e84d/
c91607dd313c73f676183b3945e2e84d
text
Text only
1
2019-06-19T05:12:03
True
False
False
Aug 09, 2016 at 06:47 AM
/api/public/snipt/147519/
844bf4d4
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>MySQL root password: HASŁO </span></pre></div> </td></tr></table>

Bash

let's encrypt 4

service directadmin restart
https://snipt.net/embed/cc0d21ee264fefbe61d88bd6d90f292a/
/raw/cc0d21ee264fefbe61d88bd6d90f292a/
cc0d21ee264fefbe61d88bd6d90f292a
bash
Bash
1
2019-06-24T08:12:09
True
False
False
Jun 01, 2016 at 10:33 AM
/api/public/snipt/147079/
lets-encrypt-4
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>service directadmin restart </span></pre></div> </td></tr></table>

Text only

let's encrypt 3

1
2
3
4
5
6
7
echo "letsencrypt=1" >> /usr/local/directadmin/conf/directadmin.conf

grep "enable_ssl_sni=1" /usr/local/directadmin/conf/directadmin.conf || echo "enable_ssl_sni=1" >> /usr/local/directadmin/conf/directadmin.conf

cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
https://snipt.net/embed/e150761d0a960cc89b2c2b6063b1b226/
/raw/e150761d0a960cc89b2c2b6063b1b226/
e150761d0a960cc89b2c2b6063b1b226
text
Text only
7
2019-06-14T04:59:26
True
False
False
/api/public/snipt/147078/
lets-encrypt-3
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>echo &quot;letsencrypt=1&quot; &gt;&gt; /usr/local/directadmin/conf/directadmin.conf </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>grep &quot;enable_ssl_sni=1&quot; /usr/local/directadmin/conf/directadmin.conf || echo &quot;enable_ssl_sni=1&quot; &gt;&gt; /usr/local/directadmin/conf/directadmin.conf </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>cd /usr/local/directadmin/custombuild </span><span id="L-6"><a name="L-6"></a>./build update </span><span id="L-7"><a name="L-7"></a>./build rewrite_confs </span></pre></div> </td></tr></table>

Bash

let's encrypt 2

apt-get update && apt-get upgrade
https://snipt.net/embed/77c60706cc0f14e1c4571ac2fb35823d/
/raw/77c60706cc0f14e1c4571ac2fb35823d/
77c60706cc0f14e1c4571ac2fb35823d
bash
Bash
1
2019-06-24T23:50:38
True
False
False
/api/public/snipt/147077/
648d3c08
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>apt-get update <span class="o">&amp;&amp;</span> apt-get upgrade </span></pre></div> </td></tr></table>

Bash

let's encrypt 1

yum update -y
https://snipt.net/embed/6896fdcd448972a9793147a3de786f4e/
/raw/6896fdcd448972a9793147a3de786f4e/
6896fdcd448972a9793147a3de786f4e
bash
Bash
1
2019-06-22T01:02:33
True
False
False
/api/public/snipt/147076/
50bc1d17
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>yum update -y </span></pre></div> </td></tr></table>