<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSH Tips Archives - Ideas and Pixels</title>
	<atom:link href="https://www.ideasandpixels.com/articles/category/programming-tips/ssh-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ideasandpixels.com/articles/category/programming-tips/ssh-tips/</link>
	<description>The Best Cincinnati Web Design Agency</description>
	<lastBuildDate>Fri, 29 Aug 2014 08:47:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>How To Install Git On CentOS</title>
		<link>https://www.ideasandpixels.com/articles/how-to-install-git-on-centos/</link>
					<comments>https://www.ideasandpixels.com/articles/how-to-install-git-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[Allen Gingrich]]></dc:creator>
		<pubDate>Wed, 11 Sep 2013 20:51:37 +0000</pubDate>
				<category><![CDATA[Programming Tips]]></category>
		<category><![CDATA[SSH Tips]]></category>
		<guid isPermaLink="false">http://ideasandpixels.com/?p=1866</guid>

					<description><![CDATA[<p>If you are on a server using CentOS, you might have found that installing Git with Yum isn&#8217;t as easy as it is on some other server types. Yum on...</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/how-to-install-git-on-centos/">How To Install Git On CentOS</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you are on a server using CentOS, you might have found that installing Git with Yum isn&#8217;t as easy as it is on some other server types. Yum on CentOS does not have a Git repo, but there is a fairly simple workaround. All we have to do is grab the repository we&#8217;re missing, then run the yum command to install it. Easy as pie!</p>
<h2>Installing Git On CentOS</h2>
<pre class="prettyprint"># Add the repository
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

# Install the latest version of git
yum install --enablerepo=webtatic git-all</pre>
<p>But there&#8217;s more!</p>
<h2>Git SSL Certificate Problem On CentOS</h2>
<p>If you&#8217;re following the installation instructions on GitHub or Bitbucket, you&#8217;ll notice that you&#8217;re now running into another error. Something like this: <strong>error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing</strong>.</p>
<p>We now need to download some SSL certificates. Some guides online recommend that you disable SSL authentication, but that&#8217;s a very dangerous road to travel. Instead, lets get the SSL certificates.</p>
<pre class="prettyprint">$  cd /etc/pki/tls/certs
$  curl http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0}
 /-----END CERTIFICATE-----/ {split_after=1} {print &gt; "cert" n ".pem"}'
$  c_rehash</pre>
<p>This should work for you up until the <strong>c_rehash</strong> command. Chances are, your system cannot find the command. Let&#8217;s fix that:</p>
<pre class="prettyprint">$  yum install openssl
$  yum install openssl-perl</pre>
<p>Now, try the command and it should work:</p>
<pre class="prettyprint">$  c_rehash</pre>
<p>Everything should be good to go! Continue following the directions provided to you on GitHub or Bitbucket, hopefully without any problems from here.</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/how-to-install-git-on-centos/">How To Install Git On CentOS</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ideasandpixels.com/articles/how-to-install-git-on-centos/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Composer Error On Update / Install (script php artisan clear-compiled handling the pre-update-cmd)</title>
		<link>https://www.ideasandpixels.com/articles/composer-error-on-update-install-script-php-artisan-clear-compiled-handling-the-pre-update-cmd/</link>
					<comments>https://www.ideasandpixels.com/articles/composer-error-on-update-install-script-php-artisan-clear-compiled-handling-the-pre-update-cmd/#respond</comments>
		
		<dc:creator><![CDATA[Allen Gingrich]]></dc:creator>
		<pubDate>Wed, 07 Aug 2013 03:19:49 +0000</pubDate>
				<category><![CDATA[Programming Tips]]></category>
		<category><![CDATA[SSH Tips]]></category>
		<guid isPermaLink="false">http://ideasandpixels.com/?p=1797</guid>

					<description><![CDATA[<p>Occasionally the scripts block in composer.json causes composer to error out when performing an update or install. One common error seen is: script php artisan clear-compiled handling the pre-update-cmd To...</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/composer-error-on-update-install-script-php-artisan-clear-compiled-handling-the-pre-update-cmd/">Composer Error On Update / Install (script php artisan clear-compiled handling the pre-update-cmd)</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Occasionally the scripts block in composer.json causes composer to error out when performing an update or install. One common error seen is:</p>
<blockquote><p>script php artisan clear-compiled handling the pre-update-cmd</p></blockquote>
<p>To remedy this, try running composer without scripts.</p>
<p><code>composer update --no-scripts</code></p>
<p>The post <a href="https://www.ideasandpixels.com/articles/composer-error-on-update-install-script-php-artisan-clear-compiled-handling-the-pre-update-cmd/">Composer Error On Update / Install (script php artisan clear-compiled handling the pre-update-cmd)</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ideasandpixels.com/articles/composer-error-on-update-install-script-php-artisan-clear-compiled-handling-the-pre-update-cmd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Using GREP and SSH To Search Through Your Entire Website</title>
		<link>https://www.ideasandpixels.com/articles/using-grep-and-ssh-to-search-your-entire-website/</link>
					<comments>https://www.ideasandpixels.com/articles/using-grep-and-ssh-to-search-your-entire-website/#comments</comments>
		
		<dc:creator><![CDATA[Allen Gingrich]]></dc:creator>
		<pubDate>Thu, 04 Apr 2013 03:42:34 +0000</pubDate>
				<category><![CDATA[Programming Tips]]></category>
		<category><![CDATA[SSH Tips]]></category>
		<guid isPermaLink="false">http://ideasandpixels.com/?p=1302</guid>

					<description><![CDATA[<p>I always preach about how powerful the SSH command terminal can be, and how it has helped me become more rounded as a developer. But it&#8217;s not the terminal that...</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/using-grep-and-ssh-to-search-your-entire-website/">Using GREP and SSH To Search Through Your Entire Website</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I always preach about how powerful the SSH command terminal can be, and how it has helped me become more rounded as a developer. But it&#8217;s not the terminal that makes SSH so dynamic &mdash; it&#8217;s the different command libraries. Today, I want to introduce you to the <em>grep</em> command.</p>
<p><code>grep</code></p>
<h2>&#8220;Better Start Greppin'&#8221;</h2>
<p>I first heard of grep on <a href="" target="_blank">Stack Overflow</a> after searching Google for something along the lines of &#8220;how to search through my website for a line of code&#8221;. In one answer I read, &#8220;better start greppin&#8217;.&#8221; For a moment, I thought it said &#8220;reppin&#8221; &mdash; which I thought was an odd response &mdash; but a quick search revealed the real answer.</p>
<p>The grep command line utility was created in the 70&#8217;s for the exact purpose we want to use it for: to search through our website (to find where we put that buggy code?).</p>
<p>Here is the syntax for grep:</p>
<p><code>grep "some needle" inthehaystack.php</code></p>
<h2>Searching Your Entire Site With GREP</h2>
<p>The Scenario: <em>You update WordPress, which seemingly works without issue, but then you notice that jQuery stopped working because of an error. In this case, the error would be a conflict issue between two jQuerys being loaded at the same time (one by your theme, one by WordPress). Now, you need to find the file that contains the one loaded by WordPress to prevent it from loading and throwing the error.</em></p>
<p>Navigate into your HTTP root directory with the &#8220;cd&#8221; command, then execute the following code:</p>
<p><code>grep -l -r "jquery" *</code></p>
<p>This will tell grep to return the filename (&#8220;-l&#8221;), recurse into sub-directories when looking (&#8220;-r&#8221;), and search through everything (&#8220;*&#8221;).</p>
<p>If you require even more functionality, you can find tens of thousands of detailed articles online about using grep in cases other than the ones I mentioned here. Good luck!</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/using-grep-and-ssh-to-search-your-entire-website/">Using GREP and SSH To Search Through Your Entire Website</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ideasandpixels.com/articles/using-grep-and-ssh-to-search-your-entire-website/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Migrating Website Files With SSH and ZIP</title>
		<link>https://www.ideasandpixels.com/articles/migrating-website-files-with-ssh-and-zip/</link>
					<comments>https://www.ideasandpixels.com/articles/migrating-website-files-with-ssh-and-zip/#comments</comments>
		
		<dc:creator><![CDATA[Allen Gingrich]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 01:39:44 +0000</pubDate>
				<category><![CDATA[Programming Tips]]></category>
		<category><![CDATA[SSH Tips]]></category>
		<guid isPermaLink="false">http://ideasandpixels.com/?p=1252</guid>

					<description><![CDATA[<p>Migrating a website is a common task for any developer, one that can often grow tired with monotony. Transferring all the files from the source server to your computer, then...</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/migrating-website-files-with-ssh-and-zip/">Migrating Website Files With SSH and ZIP</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Migrating a website is a common task for any developer, one that can often grow tired with monotony. Transferring all the files from the source server to your computer, then from your computer to the destination server. But with SSH and it&#8217;s ZIP commands, moving your websites&#8217;s files to a new server can actually be very simple, and it only takes a few minutes.</p>
<p><strong>Before You Start:</strong> Download <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)</a> to SSH into your server. I also recommend using <a href="http://ttyplus.com/multi-tabbed-putty/" target="_blank">Multi-tabbed PuTTY (http://ttyplus.com/multi-tabbed-putty/)</a> for easy management of multiple servers.</p>
<h2>The Source Server</h2>
<p>SSH into the server that you want to take the files <em>from</em>, then navigate to the root HTTP directory using the <code>cd</code> command. Every server&#8217;s home paths are different so type <code>ls</code> to list the navigable directories available.</p>
<p>Once you&#8217;re in your HTTP root (often named &#8220;httpdocs&#8221;), use the following code to pack everything on your website into a single zip file:</p>
<p><code>zip -r example.zip *</code></p>
<p>While it packs, SSH into your other server (this is why multitabbed PuTTY is useful).</p>
<h2>The Destination Server</h2>
<p>Navigate to the HTTP folder on the new server (equivalent of &#8220;httpdocs&#8221;) using the <code>cd</code> command again, and once there, execute a cURL to download the zip file you created on your old server onto your new one.</p>
<p><code>curl -o example.zip http://theolderdomain.com/example.zip</code></p>
<p>Once it finishes downloading (watch the download counter), all you have to do is unpack the zip file and the files are fully transferred.</p>
<p><code>unzip example.zip</code></p>
<p>Keep in mind that this doesn&#8217;t move the server&#8217;s databases, only the file system. If moving large database structures, use phpMyAdmin&#8217;s built in export and import features.</p>
<p>Good luck!</p>
<p>The post <a href="https://www.ideasandpixels.com/articles/migrating-website-files-with-ssh-and-zip/">Migrating Website Files With SSH and ZIP</a> appeared first on <a href="https://www.ideasandpixels.com">Ideas and Pixels</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.ideasandpixels.com/articles/migrating-website-files-with-ssh-and-zip/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
