<?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>NewSourceMedia Blog &#187; Web Servers</title>
	<atom:link href="http://newsourcemedia.com/blog/category/web-servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Upgrade Server Settings Sync Problem with Perallels Plesk</title>
		<link>http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/</link>
		<comments>http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 19:12:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=824</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/"><img title="Upgrade Server Settings Sync Problem with Perallels Plesk" src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/plesk-300x163.png" alt="Upgrade Server Settings Sync Problem with Perallels Plesk" width="200" height="108" /></a></span><br/>Once I upgraded my server increasing RAM from 500 MB to 1 GB and disk space from 20 GB to 30 GB, my plesk panel was out of sync. I check that my server was upgraded viewing Godaddy's default control &#8230; <a href="http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/"><img title="Upgrade Server Settings Sync Problem with Perallels Plesk" src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/plesk-300x163.png" alt="Upgrade Server Settings Sync Problem with Perallels Plesk" width="200" height="108" /></a></span><br/><a href="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/plesk.png"><img class="alignnone size-medium wp-image-828" title="plesk" src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/plesk-300x163.png" alt="" width="300" height="163" /></a>

Once I upgraded my server increasing RAM from 500 MB to 1 GB and disk space from 20 GB to 30 GB, my plesk panel was out of sync. I check that my server was upgraded viewing Godaddy's default control panel and also logging in to my server via SSH from the terminal running <strong>df -h </strong>to check disk space and <strong>free -m </strong>to view memory total / usage. The server had been upgraded so now I had to go about fixing the Plesk pannel to refresh. I spent way too much time on the phone with tech support until they pointed me over to their chat service to get in touch with their VDS experts.

Their expert find a refresh button buried in the pannel under the following path:

Tools &amp; Utilities &gt; Server Tools &gt; Services management

I clicked the green arrows labeled refresh on the lop left. That worked so I thought. The home screen now showed accurate info; however the health monitoring was still out of sync. After sufring around on the web, I found a script on my server that needed kick in the rear. Here's the command I ran in the terminal that forced Plesk into rescanning my server settings:

/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/scripts/setup-health-monitor.php]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/perallels-plesk-upgrade-server-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 useful SSH terminal commands.</title>
		<link>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/</link>
		<comments>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 02:30:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[virtual server]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=813</guid>
		<description><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/"><img title="Top 10 useful SSH terminal commands." src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="Top 10 useful SSH terminal commands." width="200" height="200" /></a></span><br/>Now that you have a virtual server setup, you can enjoy the benefits of managing your server as root (super admin). With root level access, you can send commands to your server using a bash terminal. Here are the common &#8230; <a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<span class="image-rss"><a href="http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/"><img title="Top 10 useful SSH terminal commands." src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="Top 10 useful SSH terminal commands." width="200" height="200" /></a></span><br/><a href="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1.png"><img class="alignnone size-medium wp-image-815" title="img_Terminal" src="http://newsourcemedia.com/blog/wp-content/uploads/2011/09/img_Terminal1-300x300.png" alt="" width="300" height="300" /></a>

Now that you have a virtual server setup, you can enjoy the benefits of managing your server as root (super admin). With root level access, you can send commands to your server using a bash terminal. Here are the common commands:
<ul>
	<li><strong>man</strong> - stands for manual. Very useful command if you are just getting started with Linux. You can invoke 'man', followed by any other Linux command (cd, for example) and it will display detailed description and list of all available options.</li>
	<li><strong>cd</strong> - cd is short for 'change directory'. Allows browsing between different folders of your VPS.</li>
	<li><strong>cp, mv, rm</strong> - great commands for basic file management. You can copy (cp), move (mv) or remove (rm) files/folders this way from your server.</li>
	<li><strong>grep</strong> - grep permits you to print lines that match a particular pattern. Useful if you are looking for a phrase or or line in a large text file (logs, for example).</li>
	<li><strong>ls</strong> - allows you to list the content of a directory. Using "ls -la" will also show you hidden files/directories (those starting with a dot) and additional attributes, such as permissions and ownership.</li>
	<li><strong>chown, chmod</strong> - every file or directory has its own ownerhip rights - user and group. With "chown" you can modify those parameters and "chmod" gives you the ability to change permissions (read, write, execute) for the owner, group and the rest of the users, accessing that file/directory.</li>
	<li><strong>nano, vi </strong>- "nano" and "vi" are probably the two most popular Linux text editors. You may find "nano" easier to use, while "vi" appears as the preferred editor among more experienced.</li>
	<li><strong>top, ps</strong> - "top" provides you with a periodic update (every five seconds by defaut) of running Linux tasks, while "ps" takes a snapshot of all current processes and prints it on your screen.</li>
	<li><strong>df -h, du -hs </strong>- shows you the current overall use of your disk in gygabytes (df -h)."du -hs" calculates the total size of a directory in a human readable format (e.g., 1K 234M 2G).</li>
</ul>
Here are <strong>two bonus</strong> commands for checking <strong>DESK SPACE</strong> and <strong>RAM</strong> usages:

To check out the disk space usage on your server, execute this command:
<strong>df -h</strong>
And to see the memory usage:
<strong>free -m</strong>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/top-10-useful-ssh-terminal-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Change the permissions of a file in SSH</title>
		<link>http://newsourcemedia.com/blog/change-the-permissions-of-a-file-in-ssh/</link>
		<comments>http://newsourcemedia.com/blog/change-the-permissions-of-a-file-in-ssh/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 03:31:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Web Servers]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/?p=601</guid>
		<description><![CDATA[More here http://manojkumar.org/some-basic-ssh-and-linux-commands/ <a href="http://newsourcemedia.com/blog/change-the-permissions-of-a-file-in-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[To change the permissions of a file in SSH, once you have logged in, you can use the CHMOD command. Here are a few common examples of CHMOD:<span id="line-17"> </span><span id="line-18"> </span>

chmod number filename<span id="line-19"> </span>
<pre style="background-color: #f3f5f7; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; padding: 5pt; border: 1pt solid #aebdcc;">chmod 600 example.html - This will give the file read and write permissions by the owner only (-rw-------).
chmod 644 example.html - This will give the file read and write permissions by the owner and read by everyone else (-rw-r--r--).
chmod 700 example.html - This will give the file read, write and execute permissions by the owner only (-rwx------).
chmod 755 example.html - This will give the file read, write and execute permissions by the owner, read and execute permissions by the group and others (-rwxr-xr-x)
chmod 666 example.html - This will give the file read and write permissions by everyone(-rw-rw-rw-) (NOT RECOMMENDED)
chmod 777 example.html - This will give the file read, write and execute permissions by everyone (-rwxrwxrwx) (NOT RECOMMENDED)</pre>
<h3 id="head-cd4b3bc8d6be7ec6ccd242b1d4f60d747e0479a8" style="font-size: 9pt; font-weight: bold; color: #333333;">Changing the ownership</h3>
To change the ownership of a file in SSH, you can use the CHOWN command. e.g: chown owner filename
<pre style="background-color: #f3f5f7; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; padding: 5pt; border: 1pt solid #aebdcc;">chown user example.html</pre>
<pre style="background-color: #f3f5f7; font-family: courier, monospace; white-space: pre-wrap; word-wrap: break-word; padding: 5pt; border: 1pt solid #aebdcc;">
<div style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; vertical-align: top; margin: 0px; border: 0px initial initial;">
<pre style="outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; width: auto; float: none; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1.333; white-space: pre; font-family: monospace; padding: 0px; margin: 0px; border: 0px initial initial;"><span style="outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; color: #c20cb9; font-weight: bold; padding: 0px; margin: 0px; border: 0px initial initial;">chown</span> user:group <span style="outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; color: #000000; font-weight: bold; padding: 0px; margin: 0px; border: 0px initial initial;">&lt;</span>directory-name<span style="outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; color: #000000; font-weight: bold; padding: 0px; margin: 0px; border: 0px initial initial;">&gt;</span>

<span style="outline-width: 0px; outline-style: initial; outline-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; color: #c20cb9; font-weight: bold; padding: 0px; margin: 0px; border: 0px initial initial;">chown</span> apache avatars</pre>
</div></pre>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/change-the-permissions-of-a-file-in-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to backup MySQL Database via SSH</title>
		<link>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/</link>
		<comments>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/#comments</comments>
		<pubDate>Sat, 28 Nov 2009 02:44:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[MySQL / Database]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/</guid>
		<description><![CDATA[First you log in using your terminal application by typing the flowing SSH command: ssh yourusername@hostname-or-ipaddress After that, you will be prompted to enter your password. As you enter your password, the text will be hidden. Next we should switch &#8230; <a href="http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[First you log in using your terminal application by typing the flowing SSH command:

ssh yourusername@hostname-or-ipaddress

After that, you will be prompted to enter your password. As you enter your password, the text will be hidden. Next we should switch to the "root" user. You can do so by typing the following in your terminal window:

su - root

You will have to enter a password once more. Now navagate to where you would like to store your MySQL database file. For an example of changing the directory to the "public_html" direcotry, type this:

cd /var/www/html_public

Now you can back up your db here using the following command. This command will backup all of your databases. I also chose to compress them after the pipe "|" as a gzip file. Type the following but be sure to change the user name and password to your info:

mysqldump -u yourusername -p yourpassword --all-databases | gzip &gt;databasebackup.sql.gz

You can also target single database using the following:

mysqldump -u yourUserName -p yourDBName | gzip &gt;databasebackup.sql.gz]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/how-to-backup-mysql-database-via-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable or Enable Directory Browsing or Indexing</title>
		<link>http://newsourcemedia.com/blog/disable-or-enable-directory-browsing-or-indexing/</link>
		<comments>http://newsourcemedia.com/blog/disable-or-enable-directory-browsing-or-indexing/#comments</comments>
		<pubDate>Wed, 09 Feb 2005 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Setup .htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[browsing]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[disablnable]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[Hide]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Indexing]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[visable]]></category>
		<category><![CDATA[visible]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2005/02/08/disable-or-enable-directory-browsing-or-indexing/</guid>
		<description><![CDATA[How to disable directories from browsing or indexing to hide images, and other files from visitors. This give you total control of your web folders to block unwanted viewing using .htaccess files with Apache Disable or Enable Directory Browsing or &#8230; <a href="http://newsourcemedia.com/blog/disable-or-enable-directory-browsing-or-indexing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to disable directories from browsing or indexing to hide images, and other files from visitors. This give you total control of your web folders to block unwanted viewing using .htaccess files with Apache
<span id="more-186"></span>
<h4>Disable or Enable Directory Browsing or Indexing in .htaccess file</h4>
Browsing or indexing is an option that allows the contents of a directory to be displayed in the browser when the directory does not contain an index page.

For example, if you make an http call to a directory such as http://yourdomain.com/images/,     it would list all the images in that directory without the need for an html page with links.

We will need to create a blank file called ".htaccess". You can name it "htaccess.txt" while your editing it, then rename the file to ".htaccess" after the file is on your web server.
<h4>Disable Directory Browsing or Indexing</h4>
Type or copy and past the following line of text in to your blank file.
Note: I add the work "All" so that every folder in that directory follows the same rule.
<blockquote>
<table border="0" cellspacing="0" cellpadding="5" bgcolor="#e8e8e8">
<tbody>
<tr>
<td>Options All -Indexes</td>
</tr>
</tbody></table>
</blockquote>
<h4>Enable Directory Browsing or Indexing</h4>
You can reactivate it by adding the following line to your <span class="code">.htaccess</span> file:
<blockquote>
<table border="0" cellspacing="0" cellpadding="5" bgcolor="#e8e8e8">
<tbody>
<tr>
<td>Options  +Indexes</td>
</tr>
</tbody></table>
</blockquote>
Once this is added, the directory will fully index again.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/disable-or-enable-directory-browsing-or-indexing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
