snipt

Ctrl+h for KB shortcuts

Bash

WP install via SSH on Plesk

wget http://wordpress.org/wordpress-3.3.tar.gz && tar -zxvf wordpress-3.3.tar.gz && cd wordpress/ && cp -rpf * ../ && cd .. && rm -rf ./wordpress && rm -f wordpress-3.3.tar.gz && USERS=`ls -ld ../. | awk '{ print $3 }'` && chown -R $USERS:psacln * && clear && echo "Wordpress is now installed with FastCGI friendly ownerships"
https://snipt.net/embed/115cad59060de6cafc0074098f7bfe14/
/raw/115cad59060de6cafc0074098f7bfe14/
115cad59060de6cafc0074098f7bfe14
bash
Bash
1
2019-06-18T08:43:28
True
False
False
/api/public/snipt/33745/
wp-install-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>wget http://wordpress.org/wordpress-3.3.tar.gz <span class="o">&amp;&amp;</span> tar -zxvf wordpress-3.3.tar.gz <span class="o">&amp;&amp;</span> <span class="nb">cd</span> wordpress/ <span class="o">&amp;&amp;</span> cp -rpf * ../ <span class="o">&amp;&amp;</span> <span class="nb">cd</span> .. <span class="o">&amp;&amp;</span> rm -rf ./wordpress <span class="o">&amp;&amp;</span> rm -f wordpress-3.3.tar.gz <span class="o">&amp;&amp;</span> <span class="nv">USERS</span><span class="o">=</span><span class="sb">`</span>ls -ld ../. <span class="p">|</span> awk <span class="s1">&#39;{ print $3 }&#39;</span><span class="sb">`</span> <span class="o">&amp;&amp;</span> chown -R <span class="nv">$USERS</span>:psacln * <span class="o">&amp;&amp;</span> clear <span class="o">&amp;&amp;</span> <span class="nb">echo</span> <span class="s2">&quot;Wordpress is now installed with FastCGI friendly ownerships&quot;</span> </span></pre></div> </td></tr></table>
wordpress