Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Total messages for plesk email

find /var/qmail/mailnames/EXAMPLE.COM/USERNAME/Maildir/ -type f -print | wc -l
https://snipt.net/embed/0ded253230208f3896197fedb0a42453/
https://snipt.net/raw/0ded253230208f3896197fedb0a42453/
0ded253230208f3896197fedb0a42453
bash
Bash
1
2016-12-09T02:45:25
True
False
False
Jun 27, 2013 at 08:03 PM
/api/public/snipt/65909/
total-messages-for-plesk-email
<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>find /var/qmail/mailnames/EXAMPLE.COM/USERNAME/Maildir/ -type f -print <span class="p">|</span> wc -l </span></pre></div> </td></tr></table>
email, plesk

Bash

Unsuspend Domain in Plesk - SSH

/usr/local/psa/bin/domain -u mydomain.com -status enabled
https://snipt.net/embed/96756b37bc7bf006c1d8977247f7d4e6/
https://snipt.net/raw/96756b37bc7bf006c1d8977247f7d4e6/
96756b37bc7bf006c1d8977247f7d4e6
bash
Bash
1
2016-12-09T05:05:38
True
False
False
Dec 26, 2012 at 07:47 PM
/api/public/snipt/52384/
unsuspend-domain-in-plesk-ssh
<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/psa/bin/domain -u mydomain.com -status enabled </span></pre></div> </td></tr></table>
"enable domain", plesk

Bash

Upgrade Plesk 10 to latest version

/usr/local/psa/admin/sbin/autoinstaller --select-release-latest --upgrade-installed-components 
https://snipt.net/embed/764c59ced53c9d9918d1d135c6c08cb7/
https://snipt.net/raw/764c59ced53c9d9918d1d135c6c08cb7/
764c59ced53c9d9918d1d135c6c08cb7
bash
Bash
1
2016-12-09T06:18:55
True
False
False
/api/public/snipt/27908/
upgrade-plesk-10-to-latest-version
<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/psa/admin/sbin/autoinstaller --select-release-latest --upgrade-installed-components </span></pre></div> </td></tr></table>
"plesk 10", parallels, plesk, upgrade

Bash

Remove Plesk billing (Plesk 10)

rpm -e plesk-billing && mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "delete from cl_param where param='ppb-url'" && /usr/local/psa/bin/sso -d
https://snipt.net/embed/dd18d286a33ce884bb954b63690d3c62/
https://snipt.net/raw/dd18d286a33ce884bb954b63690d3c62/
dd18d286a33ce884bb954b63690d3c62
bash
Bash
1
2016-12-09T06:19:07
True
False
False
/api/public/snipt/23951/
remove-plesk-billing-plesk-10
<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>rpm -e plesk-billing <span class="o">&amp;&amp;</span> mysql -uadmin -p<span class="sb">`</span>cat /etc/psa/.psa.shadow<span class="sb">`</span> psa -e <span class="s2">&quot;delete from cl_param where param=&#39;ppb-url&#39;&quot;</span> <span class="o">&amp;&amp;</span> /usr/local/psa/bin/sso -d </span></pre></div> </td></tr></table>
"plesk 10", admin, plesk

Bash

Show list of IPs accessing apache (Plesk)

cat /var/www/vhosts/*/statistics/logs/access_log | cut -d ' ' -f 1 | sort | uniq -c | sort -n
https://snipt.net/embed/8c1cabe00b657fe52305153767f9f68c/
https://snipt.net/raw/8c1cabe00b657fe52305153767f9f68c/
8c1cabe00b657fe52305153767f9f68c
bash
Bash
1
2016-12-09T06:19:16
True
False
False
/api/public/snipt/23540/
show-list-of-ips-accessing-apache-plesk
<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>cat /var/www/vhosts/*/statistics/logs/access_log <span class="p">|</span> cut -d <span class="s1">&#39; &#39;</span> -f <span class="m">1</span> <span class="p">|</span> sort <span class="p">|</span> uniq -c <span class="p">|</span> sort -n </span></pre></div> </td></tr></table>
access, access_log, apache, plesk, report

Text only

Force plesk stat update

/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=<domain>
https://snipt.net/embed/6d2599576ba6d176e1e7a39fc6ef71e7/
https://snipt.net/raw/6d2599576ba6d176e1e7a39fc6ef71e7/
6d2599576ba6d176e1e7a39fc6ef71e7
text
Text only
1
2016-12-09T06:19:31
True
False
False
/api/public/snipt/14288/
force-plesk-stat-update
<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/psa/admin/sbin/statistics --calculate-one --domain-name=&lt;domain&gt; </span></pre></div> </td></tr></table>
awstat, force, plesk, webalizer

Bash

SSL Cert showing self-signed fix

cp /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.old && vi +/VirtualHost +\:\.\,\$\ s\/\^\/\#\/g +\:x /etc/httpd/conf.d/ssl.conf && service httpd restart
https://snipt.net/embed/daad6706ddd9b9d71228f2dffe545612/
https://snipt.net/raw/daad6706ddd9b9d71228f2dffe545612/
daad6706ddd9b9d71228f2dffe545612
bash
Bash
1
2016-12-07T11:37:45
True
False
False
/api/public/snipt/13515/
ssl-cert-showing-self-signed-fix
<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>cp /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.old <span class="o">&amp;&amp;</span> vi +/VirtualHost +<span class="se">\:\.\,\$\ </span>s<span class="se">\/\^\/\#\/</span>g +<span class="se">\:</span>x /etc/httpd/conf.d/ssl.conf <span class="o">&amp;&amp;</span> service httpd restart </span></pre></div> </td></tr></table>
dv, plesk, self, signed, ssl

Bash

reconfigure plesk vhost

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=<NOME_DOMINIO>
https://snipt.net/embed/c4409461f65dfabfe40737ca44c3f1b3/
https://snipt.net/raw/c4409461f65dfabfe40737ca44c3f1b3/
c4409461f65dfabfe40737ca44c3f1b3
bash
Bash
2
2016-12-05T01:19:22
True
False
False
/api/public/snipt/12801/
reconfigure-plesk-vhost
<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/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name<span class="o">=</span>&lt;NOME_DOMINIO&gt; </span></pre></div> </td></tr></table>
apache, conf, plesk, rebuild, reconfigure

Text only

kmemsize limit explanation

Adding the additional ram may help with privvmpages, however, because kmemsize deals exclusively with kernel memory you will likely not see a difference with the additional ram. The only solution you have to correct the kmemsize error is to optimize so that your server consumes less kernel memory. However, as you pointed out you have already gone through this process. At this point the only real option you have is to increase your kernel memory by upgrading to the next level of (dv) Dedicated-Virtual server such as Rage or Extreme. If you have any further questions regarding your (mt) Media Temple services, please feel free to contact us at any time.
https://snipt.net/embed/bdcac8f48f3185dc681853533ae7439c/
https://snipt.net/raw/bdcac8f48f3185dc681853533ae7439c/
bdcac8f48f3185dc681853533ae7439c
text
Text only
2
2016-12-07T11:38:27
True
False
False
/api/public/snipt/11039/
kmemsize-limit-explanation
<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>Adding the additional ram may help with privvmpages, however, because kmemsize deals exclusively with kernel memory you will likely not see a difference with the additional ram. The only solution you have to correct the kmemsize error is to optimize so that your server consumes less kernel memory. However, as you pointed out you have already gone through this process. At this point the only real option you have is to increase your kernel memory by upgrading to the next level of (dv) Dedicated-Virtual server such as Rage or Extreme. If you have any further questions regarding your (mt) Media Temple services, please feel free to contact us at any time. </span></pre></div> </td></tr></table>
kmemsize, mysql, plesk, privvmpages
Copyrighted, illegal, or inappropriate content? Email [email protected].