<?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>Pocko.org - Rosen Ivanov &#187; Linux/Plesk</title>
	<atom:link href="http://blog.pocko.org/category/linuxplesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pocko.org</link>
	<description>Everything is possible! The impossible just takes a little more time...</description>
	<lastBuildDate>Wed, 23 Jun 2010 14:49:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install ffmpeg, ffmpeg-php and codecs automagically (Centos 5.2)</title>
		<link>http://blog.pocko.org/2009/11/install-ffmpeg-ffmpeg-php-and-codecs-automagically-centos-52/</link>
		<comments>http://blog.pocko.org/2009/11/install-ffmpeg-ffmpeg-php-and-codecs-automagically-centos-52/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 22:23:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[automatic install for ffmpeg]]></category>
		<category><![CDATA[centos install ffmpeg + ffmpeg-php]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[install ffmpeg]]></category>
		<category><![CDATA[install ffmpeg with all codecs]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=139</guid>
		<description><![CDATA[I was looking so many times in the net how to install ffmpeg and all codecs + ffmpeg-php and make it working from the first time &#8230; Well &#8230; I found a solution . It&#8217;s very simple and easy. 1. You have to have installed PHP on your server. It&#8217;s better to install the latest [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking so many times in the net how to install ffmpeg and all codecs + ffmpeg-php and make it working from the first time &#8230;</p>
<p>Well &#8230; I found a solution <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="Install ffmpeg, ffmpeg php and codecs automagically (Centos 5.2)" /> . It&#8217;s very simple and easy.</p>
<p>1. You have to have installed PHP on your server. It&#8217;s better to install the latest version which is now 5.2.9 i think.</p>
<p>2. After you are done with this just follow these steps in the linux console (most of the times we use <strong>putty</strong>)</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mkdir ~/ffmpeg-packages<br />
cd ~/ffmpeg-packages<br />
wget &lt;a title=&quot;http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz&quot; href=&quot;http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz&quot;&gt;http://trulymanaged.com/ffmpeg/ffmpeginstall.tar.gz&lt;/a&gt;<br />
tar -xvzf ffmpeginstall.tar.gz<br />
cd ffmpeginstall</div></div>
</blockquote>
<p>If you don&#8217;t want the author to be emailed upon a successful installation, comment out line 47 of install.sh Here is how&#8230;</p>
<p>At the command prompt</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># nano install.sh</div></div>
</blockquote>
<p>Now comment out line 47</p>
<p>From</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo `hostname -i `|mail -s &quot; FFmpeg installed $_version &quot; vps @ esds.com</div></div>
</blockquote>
<p>To</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># echo `hostname -i `|mail -s &quot; FFmpeg installed $_version &quot; vps @ esds.com</div></div>
</blockquote>
<p>Once you have done with this (if you want of course) just run the install script</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">./install.sh</div></div>
</blockquote>
<p>After everything is done, just reboot your server and check your php configuration (create a php file and use phpinfo() function to get the config of php) if everything is ok and you have installed ffmpeg properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2009/11/install-ffmpeg-ffmpeg-php-and-codecs-automagically-centos-52/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Fresh Linux Tutorials</title>
		<link>http://blog.pocko.org/2009/01/new-fresh-linux-tutorials/</link>
		<comments>http://blog.pocko.org/2009/01/new-fresh-linux-tutorials/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 19:48:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[online linux tutorials]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=120</guid>
		<description><![CDATA[1. Pipe Viewer &#8211; Shell pipeline element to meter data passing through debianadmin.com/ 2. How to Install Adobe Flash in Debian EtchLennySid debianadmin.com/ 3. How to auto login and startx without a display manager in Debian debianadmin.com/ 4. How To upgrade from Debian Etch 4.0 to Lenny 5.0 debianadmin.com/ 5. How to install Google Gadgets [...]]]></description>
			<content:encoded><![CDATA[<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="1. Pipe Viewer - Shell pipeline element to meter data passing through"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/pv-pipe-viewer-shell-pipeline-element-to-meter-data-passing-through.html">1. Pipe Viewer &#8211; Shell pipeline element to meter data passing through</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="2. How to Install Adobe Flash in Debian EtchLennySid"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/how-to-install-adobe-flash-in-debian-etchlennysid.html">2. How to Install Adobe Flash in Debian EtchLennySid</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="3. How to auto login and startx without a display manager in Debian"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/how-to-auto-login-and-startx-without-a-display-manager-in-debian.html">3. How to auto login and startx without a display manager in Debian</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="4. How To upgrade from Debian Etch 4.0 to Lenny 5.0"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/howto-upgrade-from-debian-etch-40-to-lenny-50.html">4. How To upgrade from Debian Etch 4.0 to Lenny 5.0</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="5. How to install Google Gadgets in ubuntu 8.10 Intrepid Ibex"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/howto-install-google-gadgets-in-ubuntu-810-intrepid-ibex.html">5. How to install Google Gadgets in ubuntu 8.10 Intrepid Ibex</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="6. How to install Virtualbox 2.1.0 in Ubuntu 8.10 Intrepid Ibex 8.04 Hardy"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-install-virtualbox-21-in-ubuntu-810-intrepid-ibex804-hardy-heron.html">6. How to install Virtualbox 2.1.0 in Ubuntu 8.10 Intrepid Ibex 8.04 Hardy</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="7. How to use SSH Via HTTP Proxy using Corkscrew in Ubuntu"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-use-ssh-via-http-proxy-using-corkscrew-in-ubuntu.html">7. How to use SSH Via HTTP Proxy using Corkscrew in Ubuntu</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="8. Host interface networking made easy in VirtualBox 2.1.0"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/host-interface-networking-made-easy-in-virtualbox-210.html">8. Host interface networking made easy in VirtualBox 2.1.0</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="9. How to Install KDE 4.2 beta in Ubuntu 8.10 - Intrepid Ibex"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-install-kde-42-beta-in-ubuntu-810-intrepid-ibex.html">9. How to Install KDE 4.2 beta in Ubuntu 8.10 &#8211; Intrepid Ibex</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="10. How to control virtual machines Virtualbox using VBoxManage"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-control-virtual-machines-virtualbox-using-vboxmanage.html">10. How to control virtual machines Virtualbox using VBoxManage</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="11. VBoxSDL - The simplified VM displayer for Virtualbox"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/vboxsdl-the-simplified-vm-displayer-for-virtualbox.html">11. VBoxSDL &#8211; The simplified VM displayer for Virtualbox</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="12. Tools to delete files securely in ubuntu Linux"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/tools-to-delete-files-securely-in-ubuntu-linux.html">12. Tools to delete files securely in ubuntu Linux</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="13. VRDP - VirtualBox Remote Desktop Protocol"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/vrdp-virtualbox-remote-desktop-protocol.html">13. VRDP &#8211; VirtualBox Remote Desktop Protocol</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="14. How to Setup Broadcom Wireless BCM4312 rev 02 for Ubuntu Hardy"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://onlyubuntu.blogspot.com/2008/10/how-to-setup-broadcom-wireless-bcm4312.html">14. How to Setup Broadcom Wireless BCM4312 rev 02 for Ubuntu Hardy</a></h4>
<p>onlyubuntu.blogspot.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="15. Virtual DesktopOS Emulator Tools for Ubuntu"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://onlyubuntu.blogspot.com/2008/12/virtual-desktopos-emulator-tools-for.html">15. Virtual DesktopOS Emulator Tools for Ubuntu</a></h4>
<p>onlyubuntu.blogspot.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="1. prealloc - to create a large file in HP/UX"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=374">1. prealloc &#8211; to create a large file in HP/UX</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="2. How To select fastest mirror in Ubuntu"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-select-fastest-mirror-in-ubuntu.html">2. How To select fastest mirror in Ubuntu</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="3. prtconf - hardware information IBM AIX"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=86">3. prtconf &#8211; hardware information IBM AIX</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="4. genkld - list of shared objects in AIX"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=250">4. genkld &#8211; list of shared objects in AIX</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="5. how to determine if a volume group is normal, big, or scalable in AIX"  style="border:1px solid #999999" title="New Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=1074">5. how to determine if a volume group is normal, big, or scalable in AIX</a></h4>
<p>coolcommands.com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2009/01/new-fresh-linux-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Backup and restore a Plesk domain from the command line</title>
		<link>http://blog.pocko.org/2008/11/howto-backup-and-restore-a-plesk-domain-from-the-command-line/</link>
		<comments>http://blog.pocko.org/2008/11/howto-backup-and-restore-a-plesk-domain-from-the-command-line/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 17:55:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[HOWTO: Backup and restore a Plesk domain from the comma]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=115</guid>
		<description><![CDATA[This HOWTO shows how to use the Plesk command line utilties to backup and restore a single domain. This can be useful, among other reasons, as a way to move a site between servers (though now they have the Migration Manager for that) or as a way to make a final backup of a domain [...]]]></description>
			<content:encoded><![CDATA[<p>This HOWTO shows how to use the Plesk command line utilties to backup and restore a single domain. This can be useful, among other reasons, as a way to move a site between servers (though now they have the Migration Manager for that) or as a way to make a final backup of a domain before removing it (though to be safe you should make other backups and have regular periodic backups as well).</p>
<h3>BACKUP</h3>
<p>Set a domain name as a variable in your shell (not really required, just makes the rest harder to screw up if you copy and paste from this howto):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DOMAIN_NAME=example.com</div></div>
<p>Go to the directory where plesk keeps the dumps</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /var/lib/psa/dumps/$DOMAIN_NAME</div></div>
<p>Create a file with the description.  even if you don’t care about the description, the file needs to exist.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">echo &quot;description goes here&quot; &amp;gt; description.txt</div></div>
<p>Run the backup:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/usr/local/psa/admin/bin/domain_bu --backup --domain-name $DOMAIN_NAME --dump-file $DOMAIN_NAME.domain_dump --desc-file description.txt</div></div>
<p>Note that the shell prompt will be returned to you before the backup is completd. you can watch for the backup to be finished with this command (after waiting a moment or two for backup_restore.log to be created if it wasn’t there already):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tail -f backup_restore.log</div></div>
<p>When you see the text “Single domain backup is successfully completed.” (or something to that effect, depending on your version), the backup is completed.</p>
<h3>RESTORE</h3>
<p>To restore again with the backup, or restore on another server:</p>
<p>- Add the domain under the desired client in plesk (the domain has to exist in plesk to continue).</p>
<p>- Copy the .dump file to other server’s /var/lib/psa/dumps/[DOMAIN_NAME] directory.</p>
<p>- Set a domain name, client login and ip address the site should use as variables in your shell (not really required, just makes the rest harder to screw up if you copy and paste from this howto):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DOMAIN_NAME=example.com<br />
CLIENT_LOGIN=myclient<br />
IP_ADDRESS=1.2.3.4</div></div>
<p>Go to the dumps directory where you had copied the dump to</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd /var/lib/psa/dumps/$DOMAIN_NAME</div></div>
<p>Run the restore command:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/usr/local/psa/admin/bin/domain_bu --restore --domain-name $DOMAIN_NAME --client-login $CLIENT_LOGIN --domain-ip $IP_ADDRESS --dump-file $DOMAIN_NAME.domain_dump</div></div>
<p>If you get errors when restoring related to unmatched cert, see the instructions here: http://forum.plesk.com/showthread.php?s=&amp;threadid=12274</p>
<h3>MIGRATION TIPS</h3>
<p>If this backup/restore was to move a domain to a new server, here are some useful tips:</p>
<p>- Set the TTL for the zone to something low like 600 more than a day in advance.</p>
<p>- After the move, you can add something like this to the .htaccess file of the site on the old server (for web requests that still make it there):</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RewriteEngine on<br />
RewriteRule (.*) http://domain.com.previewhostname/$1 [P]</div></div>
<p>where domain.com.previewhostname would be where the site can be viewed before dns is changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/11/howto-backup-and-restore-a-plesk-domain-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fresh Linux Tutorials</title>
		<link>http://blog.pocko.org/2008/10/fresh-linux-tutorials/</link>
		<comments>http://blog.pocko.org/2008/10/fresh-linux-tutorials/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 11:21:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[linux tutorials]]></category>
		<category><![CDATA[online linux tutorials]]></category>

		<guid isPermaLink="false">http://blog.pocko.org/?p=101</guid>
		<description><![CDATA[1. How to install a Counter-strike source dedicated server on linux mediasmoke.com/ 2. Quick Samba Install and Setup libraryofmike.org/ 3. Buddi &#8211; Personal budget software for Ubuntu Desktop ubuntugeek.com/ 4. Money Manager Ex &#8211; Cross-platform, easy-to-use personal finance software ubuntugeek.com/ 5. How to use Magic System Request Keys in Ubuntu Linux ubuntugeek.com/ 6. How to [...]]]></description>
			<content:encoded><![CDATA[<h4><img src="http://www.pixel2life.com/images/tut_avatars/64/64134.gif" border="0" alt="1. How to install a Counter-strike source dedicated server on linux"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://counterstrikesource.mediasmoke.com/forum/viewtopic.php?id=29">1. How to install a Counter-strike source dedicated server on linux</a></h4>
<p>mediasmoke.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="2. Quick Samba Install and Setup"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://libraryofmike.org/linux/quick-samba-install">2. Quick Samba Install and Setup</a></h4>
<p>libraryofmike.org/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="3. Buddi - Personal budget software for Ubuntu Desktop"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/buddi-personal-budget-software-for-ubuntu-desktop.html">3. Buddi &#8211; Personal budget software for Ubuntu Desktop</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="4. Money Manager Ex - Cross-platform, easy-to-use personal finance software"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/money-manager-ex-cross-platform-easy-to-use-personal-finance-software.html">4. Money Manager Ex &#8211; Cross-platform, easy-to-use personal finance software</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="5. How to use Magic System Request Keys in Ubuntu Linux"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-use-magic-system-request-keys-in-ubuntu-linux.html">5. How to use Magic System Request Keys in Ubuntu Linux</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="6. How to make your application appear in the Add Remove tool - gnome-app-install"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/how-to-make-your-application-appear-in-the-addremove-tool-gnome-app-install.html">6. How to make your application appear in the Add Remove tool &#8211; gnome-app-install</a></h4>
<p>ubuntugeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="7. Yahoo! Zimbra Desktop - all in one desktop application for openSUSE"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/desktop/yahoo-zimbra-desktop-all-in-one-desktop-application-for-opensuse/">7. Yahoo! Zimbra Desktop &#8211; all in one desktop application for openSUSE</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="8. FrostWire - free opensource Gnutella client for openSUSE"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/internet-browser/frostwire-free-opensource-gnutella-client-for-opensuse/">8. FrostWire &#8211; free opensource Gnutella client for openSUSE</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="9. BeeDiff - opensource GUI tool for file comparison and merge"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/general/beediff-opensource-gui-tool-for-file-comparison-and-merge/">9. BeeDiff &#8211; opensource GUI tool for file comparison and merge</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="10. aMSN - opensource MSN messenger client for openSUSE"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/internet-browser/amsn-opensource-msn-messenger-client-for-opensuse/">10. aMSN &#8211; opensource MSN messenger client for openSUSE</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="11. Stellarium - Free opensource planetorium on your computer"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/general/stellarium-free-opensource-planetorium-on-your-computer/">11. Stellarium &#8211; Free opensource planetorium on your computer</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="12. superTux - Classic 2D jump'n'run sidescroller game in openSUSE"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/games/supertux-classic-2d-jumpnrun-sidescroller-game-in-opensuse/">12. superTux &#8211; Classic 2D jump&#8217;n'run sidescroller game in openSUSE</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="13. How to configure hotwayd on openSUSE 11 Gnome to enable Evolution to access Hotmail"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.susegeek.com/general/howto-configure-hotwayd-on-opensuse-11-gnome-to-enable-evolution-to-access-windows-live-hotmail/">13. How to configure hotwayd on openSUSE 11 Gnome to enable Evolution to access Hotmail</a></h4>
<p>susegeek.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="14. Howto use more than 4 GB RAM on Debian etch"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/howto-use-more-than-4-gb-ram-on-debian-etch.html">14. Howto use more than 4 GB RAM on Debian etch</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="15. Puppet - Centralised configuration management for networks"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.debianadmin.com/puppet-centralised-configuration-management-for-networks.html">15. Puppet &#8211; Centralised configuration management for networks</a></h4>
<p>debianadmin.com/</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="1. ipcs - calculate the memory used by a user hiding in shared memory"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=534">16. ipcs &#8211; calculate the memory used by a user hiding in shared memory</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="2. find files by size and modification time in current filesystem"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=40">17. find files by size and modification time in current filesystem</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="3. snap - create a snapshot for IBM tech support in AIX"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=227">18. snap &#8211; create a snapshot for IBM tech support in AIX</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="4. bindprocessor - find number of active processors in IBM AIX"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.coolcommands.com/index.php?option=com_cccat&#038;task=display&#038;id=12">19. bindprocessor &#8211; find number of active processors in IBM AIX</a></h4>
<p>coolcommands.com</p>
<h4><img src="http://www.pixel2life.com/images/cat_avatar/89.gif" border="0" alt="5. Conduit - Synchronize Your data in Easy Way"  style="border:1px solid #999999" title="Fresh Linux Tutorials" /> <a href="http://www.ubuntugeek.com/conduit-synchronize-your-data-in-easy-way.html">20. Conduit &#8211; Synchronize Your data in Easy Way</a></h4>
<p>ubuntugeek.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/10/fresh-linux-tutorials/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Enable remote access to MySQL database server?</title>
		<link>http://blog.pocko.org/2008/08/how-to-enable-remote-access-to-mysql-database-server/</link>
		<comments>http://blog.pocko.org/2008/08/how-to-enable-remote-access-to-mysql-database-server/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 16:37:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[database remote access]]></category>
		<category><![CDATA[linux remote access]]></category>
		<category><![CDATA[mysql connection]]></category>
		<category><![CDATA[php connection]]></category>
		<category><![CDATA[remote mysql connection]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=47</guid>
		<description><![CDATA[Ok, The article is because there is no good article how to configure 2 linux servers to use 1 Database server. The idea is to make two separate servers &#8211; 1 server for all static files and the code of the application and another one only for the Database! So here are the steps which [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, The article is because there is no good article how to configure 2 linux servers to use 1 Database server.</p>
<p>The idea is to make two separate servers &#8211; 1 server for all static files and the code of the application and another one only for the Database!</p>
<p>So here are the steps which we have to take:</p>
<p>1. Configure mysql server to use remote connection</p>
<p>2. Configure the iptables of both servers to allow connections and ports</p>
<p>3. Change the settings of the application<br />
<strong>Let&#8217; Start!</strong></p>
<h4>Step 1</h4>
<p>1. First we need to configure a file which is located in /etc/ directory of linux. So we go and configure it like this</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /etc</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vi &nbsp;/etc/my.cnf</div></div>
<p>For example, if your MySQL server IP is 192.162.0.3 then entire block should be look like as follows:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[mysqld]<br />
user &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= mysql<br />
pid-file &nbsp; &nbsp; &nbsp; &nbsp;= /var/run/mysqld/mysqld.pid<br />
socket &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= /var/run/mysqld/mysqld.sock<br />
port &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3306<br />
basedir &nbsp; &nbsp; &nbsp; &nbsp; = /usr<br />
datadir &nbsp; &nbsp; &nbsp; &nbsp; = /var/lib/mysql<br />
tmpdir &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= /tmp<br />
language &nbsp; &nbsp; &nbsp; &nbsp;= /usr/share/mysql/English<br />
bind-address &nbsp; &nbsp;= 192.168.0.3<br />
# skip-networking<br />
....<br />
..<br />
....</div></div>
<p>Where,</p>
<ul>
<li>bind-address : IP address to bind to.</li>
<li>skip-networking : Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed. Since you need to allow remote connection this line should removed from file or put it in comment state.</li>
</ul>
<p>Then we have to Restart mysql service to take change in effect:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/init.d/mysql restart</div></div>
<p>or if it&#8217;s with plesk:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/service mysqld restart</div></div>
<p>The next step is to grant some privileges to the user and database. You can do this through the phpmyadmin but it&#8217;s easier and faster with SSH <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To Enable remote access to MySQL database server?" /> .</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mysql -u root -p mysql</div></div>
<p>Grant access to new database<br />
If you want to add new database called foo for user bar and remote IP 202.54.10.20 then you need to type following commands at mysql&gt; prompt:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql&amp;gt; CREATE DATABASE test;<br />
mysql&amp;gt; GRANT ALL ON test.* TO user@'192.168.0.2' IDENTIFIED BY 'PASSWORD';</div></div>
<h4>How Do I Grant access to existing database?</h4>
<p>Let us assume that you are always making connection from remote IP called 202.54.10.20 for database called webdb for user webadmin, To grant access to this IP address type the following command At mysql&gt; prompt for existing database:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql&amp;gt; update db set Host='202.54.10.20' where Db='webdb';<br />
mysql&amp;gt; update user set Host='202.54.10.20' where user='webadmin';</div></div>
<p>After you make the necessary changes just exit from the mysql</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql&amp;gt; exit</div></div>
<h4>Step 2</h4>
<p>After we make the changes in the mysql server we have to change the iptables (firewall) settings so everything will work after we turn on the firewall.</p>
<p>On the database machine we have to configure the iptables to allow port 3306</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /etc/sysconfig/</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vi iptables</div></div>
<p>If you don&#8217;t have such a file probably it&#8217;s located in <strong>iptables.d </strong>folder.</p>
<p>So you have to put a line like this:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT</div></div>
<p>Then just restart the iptables &#8211; <strong>/etc/init.d/iptables restart</strong></p>
<p>After you make these changes in the DB server, you have to allow OUTPUT connection to the DB server for File server in the same way:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /etc/sysconfig/</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># vi iptables</div></div>
<p>If you don&#8217;t have such a file probably it&#8217;s located in <strong>iptables.d </strong>folder.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">-A OUTPUT -p tcp -m tcp --dport 3306 -j ACCEPT</div></div>
<p>Then just restart the iptables again &#8211; <strong>/etc/init.d/iptables restart</strong></p>
<h4>Step 3</h4>
<p>After you are ready with all of these things you just try if everything is ready from the Files Server:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># telnet 192.168.0.3 3306</div></div>
<p>if everything is ok then</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mysql -u user -h 192.168.0.3 -p</div></div>
<p>Then if the connection is ok everything is configured well.</p>
<p>Finally change the host of your application to the remote host</p>
<p>$host = &#8220;192.168.0.3&#8243;;</p>
<p>I hope that it will help everybody who wants to know how to configure remote mysql connections <img src='http://blog.pocko.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' title="How To Enable remote access to MySQL database server?" /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/08/how-to-enable-remote-access-to-mysql-database-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change the system date in Linux</title>
		<link>http://blog.pocko.org/2008/07/how-to-change-the-system-date-in-linux/</link>
		<comments>http://blog.pocko.org/2008/07/how-to-change-the-system-date-in-linux/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 11:25:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[change linux date]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=43</guid>
		<description><![CDATA[To simplify, this is how you do it. Set the current date to April 7 2008 8:42:45pm. The easy way, #date -s &#34;7 April 2008 20:42:45&#34; The harder way, #date &#160;040720422008.45 The break down: MM DD hh mm YYYY ss MM = month = 04 DD = day = 07 hh = hour = 20 [...]]]></description>
			<content:encoded><![CDATA[<p>To simplify, this is how you do it.</p>
<p>Set the current date to April 7 2008 8:42:45pm.</p>
<p>The easy way,</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#date -s &quot;7 April 2008 20:42:45&quot;</div></div>
<p>The harder way,</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">#date &nbsp;040720422008.45</div></div>
<p>The break down: MM DD hh mm YYYY ss</p>
<p>MM = month = 04</p>
<p>DD = day = 07</p>
<p>hh = hour = 20</p>
<p>mm = minute = 42</p>
<p>YYYY = year = 2008</p>
<p>ss = second = 450</p>
<p>sample output,</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[root@klmsyslog01p ~]# date -s “7 April 2008 20:42:45″<br />
Mon Apr &nbsp;7 20:42:45 MYT 2008<br />
[root@klmsyslog01p ~]#</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[root@kmmserver01p ~]# date 040720422008.45<br />
Mon Apr &nbsp;7 20:42:45 MYT 2008<br />
[root@kmmserver01p ~]#</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/how-to-change-the-system-date-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I create a cron job?</title>
		<link>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/</link>
		<comments>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 12:41:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[add php to cron job]]></category>
		<category><![CDATA[create cron job]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[execute php with cron]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=22</guid>
		<description><![CDATA[A cron job (run by the cron daemon, or cron service) is a request for the server to run a particular command and/or program via the command line and set points during the hour, day, week, month or year. At the moment, there are two ways you can add, edit or delete cron jobs on [...]]]></description>
			<content:encoded><![CDATA[<p>A cron job  (run by the <tt>cron</tt> daemon, or cron service) is a request for the server to run a particular command and/or program via the command line and set points during the hour, day, week, month or year.</p>
<p>At the moment, there are two ways you can add, edit or delete cron jobs on our servers. The first is the easiest and that&#8217;s using the Plesk interface. The second is more complex, using the <tt>crontab</tt> program, but if you&#8217;re used to using the SSH console and have knowledge of <tt>VIM</tt>, it&#8217;s available.</p>
<p>However, if you&#8217;re not familiar with the way cronjobs are configured, please read the following section which will explain the syntax and how it&#8217;s works.</p>
<h2>What does a cron line and how does it work?</h2>
<p>A cronjob line if a very simple line with six parts. The first five set the day/time the job is/are run, while the last part is the command to be run. For example</p>
<blockquote>
<pre>0 * * * * php /var/www/vhosts/example.com/httpdocs/cron.php</pre>
</blockquote>
<p>will run the <tt>php</tt> command-line interpreter, processing the file <tt>cron.php</tt> (on the website for <tt>example.com</tt>) at the start of every hour.</p>
<p>The date/time fields have the following meaning:</p>
<blockquote>
<pre># +------------ Minute (0 - 59)
# | +---------- Hour (0 - 23)
# | | +-------- Day of the Month (1 - 31)
# | | | +------ Month (1 - 12)
# | | | | +---- Day of the Week (0 - 7) (Sunday is 0 or 7)
# | | | | |
# * * * * * command<strong>

</strong></pre>
</blockquote>
<p>Therefore, the option <tt>0 * * * *</tt> (from the above example) means &#8216;<span style="font-style: italic;">on the zeroth minute of any hour on any day of the month, in any month, on any day in the week, run this command</span>&#8216;.</p>
<p>Although can you add a single value, the power of cron comes in it&#8217;s ability to allow a number of different syntax options for specifying different values. The following examples will be based on the minutes field, but they can be used in any of the five fields to specific month, day, etc.:</p>
<blockquote>
<pre>0          - Run it when the minute is zero
*          - Run it on any value (i.e. every minute)
0,15,30,45 - Run it when the minute is 0, 15, 30 or 45 (i.e. every 15 min)
*/15       - Same as above - run it when the minute is divisible by 15
10-15      - Run it every minute between 10 and 15 minutes
30-59/5    - Run it every fifth minute of 30 (i.e. 30, 35, 40, ...)<strong>

</strong></pre>
</blockquote>
<p>However, taking the last example, the divisor is not against the minute of the hour, but against the minute within the period selected, therefore while <tt>30-59/5</tt> is when the minute can be divided by <tt>5</tt> between <tt>30</tt> and <tt>59</tt>, the option <tt>3-58/5</tt> will not enact on <tt>5</tt>, <tt>10</tt>, etc., but on <tt>3</tt>, <tt>8</tt>, <tt>13</tt>, etc.</p>
<p>Also, where as the first four fields must match to run the command (i.e. when the minute, hour, day of the month and month match), if the fifth field (day of the week) is also specified, the command will run when either the day of the month OR day of the week match.</p>
<p>To finish off, here are a number of complete examples:</p>
<blockquote>
<pre>*/15    *     *  *  *   - Run every 15 minutes
3-58/5  *     *  *  *   - Run every 5 minutes on the 3rd and 8th minute
0       */2   *  *  *   - Run every 2 hours, on the hour
25      8,17  *  *  *   - Run at 08:25 and 17:25
0       6     *  *  1   - Run at 06:00 every Monday
30      7     *  1  *   - Run at 07:30 on the first day of the month
0       0     1  *  5   - Run at midnight on the first of the month OR a Friday
*/30    9-17  *  *  1-5 - Run every 30 minutes between 9 to 5, Monday to Friday<strong>

</strong></pre>
</blockquote>
<h2>Editing your crontab with Plesk</h2>
<p>To add a cron job in Plesk:</p>
<ul>
<li>Log onto Plesk using your username and password.</li>
<li>From your list of domains, click on the domain you would like to add the cronjob to.</li>
<li>Click on <span style="font-style: italic;">Crontab</span>.</li>
<li>If you have multiple users on this domain (i.e. you have setup different FTP accounts for sub-domains or web users), from the drop-down select the username you want to create the cronjob for, and then click <span style="font-style: italic;">Set</span>.</li>
<li>Click on <span style="font-style: italic;">Add New Task</span>.</li>
<li>For each of the first five fields, enter the value as it would be for the cron line (i.e. the date/time fields). All fields are required, so if you don&#8217;t have a specific value in that field, enter <tt>*</tt>.</li>
<li>Finally, enter the full command into the <span style="font-style: italic;">Command</span> field.</li>
<li>Click <span style="font-style: italic;">OK</span> to save or <span style="font-style: italic;">Cancel</span> to return.</li>
<li>If you return back to the page with any errors, please correct the errors and click <span style="font-style: italic;">OK</span> again.</li>
</ul>
<blockquote>
<pre>By default, the sever will send any error messages or output from the cronjobs to <tt>username@server</tt>, e.g. <tt>mysite33@gamma.jabservers.co.uk</tt>,
which will always come to us. If you want to see the output from your
cronjob, or notices if it doesn't run (for whatever reason), you'll
need to change the address the e-mail is set to.

To do this, goto the crontab page and select the user running the crontab, click on <span style="font-style: italic;">Set</span>, and then change <span style="font-style: italic;">Send Crontab messages to address</span> to the e-mail address you want them sent to. Click <span style="font-style: italic;">Set</span> again to commit the change.<strong>

</strong></pre>
</blockquote>
<h2>Editing your Crontab via SSH</h2>
<p>The main limitation with this option is that you can only edit the crontab for the main domain, as you can only log on via SSH using the user for the master FTP account. If you need to change the crontab for a web user or sub-domain, you will have to use the Plesk interface.</p>
<p>To add a cron job via SSH:</p>
<blockquote><p>Although we will take you through the steps of using VIM on the server, knowledge of VIM is important for using the <tt>crontab</tt> program &#8211; if you do not know how to use VIM, please see how to add a cronjob using Plesk above.</p></blockquote>
<ul>
<li>Log onto SSH using your chosen program and the username/password for the domain.</li>
<li>Run the command &#8216;<tt>crontab -e</tt>&#8216; to edit the crontab.</li>
<li>Move to the end of the file, press <tt>i</tt> to enter Insertion mode, create a new line and then enter the cron line.</li>
<li>Press <tt>Esc</tt> and then enter <tt>:wq</tt> to write (save) the changes and quit the program.</li>
<li>If there is an error in the line, you will be notified and asked if you want to re-edit your changes.</li>
<li>If there is no error, you will see the message &#8216;<tt>crontab: installing new crontab</tt>&#8216;.</li>
</ul>
<blockquote><p>Again, like with Plesk, any errors, notices or output from the cronjob will go to <tt>username@server</tt> (e.g. <tt>mysite33@gamma.jabservers.co.uk</tt>), which, as we manage <tt>server</tt>, or <tt>gamma.jabservers.co.uk</tt> in the example, the e-mails will come to us.</p>
<p>To change this and tell the <tt>cron</tt> daemon to send the e-mails to you, add the line &#8216;<tt>MAILTO=example@example.com</tt>&#8216; to the top of your crontab.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/how-do-i-create-a-cron-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Traffic Balancers and clusters</title>
		<link>http://blog.pocko.org/2008/07/traffic-balancers-and-clusters/</link>
		<comments>http://blog.pocko.org/2008/07/traffic-balancers-and-clusters/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 00:10:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[backup balancer]]></category>
		<category><![CDATA[balancers]]></category>
		<category><![CDATA[cluster servers]]></category>
		<category><![CDATA[hardware balancers]]></category>
		<category><![CDATA[locator balancer]]></category>
		<category><![CDATA[mysql clusters]]></category>
		<category><![CDATA[overloaded servers]]></category>
		<category><![CDATA[traffic balancers]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=15</guid>
		<description><![CDATA[I check about balancing the traffic between the two servers and here is the conclusion for what i learn and found: There are different softwares for balancing the traffic between servers BUT. 1. Almost all of them for linux and windows are not good. There are free softwares which are available in the internet. I [...]]]></description>
			<content:encoded><![CDATA[<p>I check about balancing the traffic between the two servers and here is the conclusion for what i learn and found:</p>
<p>There are different softwares for balancing the traffic between servers BUT.</p>
<p>1. Almost all of them for linux and windows are not good. There are free softwares which are available in the internet. I check Linux Virtual Servers, i check also other balancers for both OS &#8211; linux and windows, but there are no good comments for all of them .<br />
I check also that symantec has their own Veritas Cluster Server, but i&#8217;m not familiar with it and probably it&#8217;s very very expensive.</p>
<p>2. I check also that most of the balancers offers balance for HTTP requests, but there are no balancers for Database or they are very vey expensive (thousands of dollars)</p>
<p>3. If we find a good software (free because paid sofwares are very expensive) we risk to have failers and loose a lot of connections.<br />
-about database balancers<br />
a) there are no balancers easy to set up<br />
b) there are no free or cheap &#8211; some companies want thousands for MySQL balancing software</p>
<p>4. The most real solution for such a think is:</p>
<p>- Hardware load balancers, then yes this is an obvious solution, but each balancer can cost twice as much as a Linux server on its own !<br />
- These balancers will remove all possiblities for failurs!!!</p>
<p>5. There are lot of testers who try all free softwares on the market for balancing servers but almost everybody is saying that there are a lot of problems and BUGS.</p>
<p>6. I think that we also should ask peer1 to make this balance between the servers, because they are really experts and know how to do it. If we risk to configure our servers with any balancer we can have a lot of troubles because we are NOT PRO administrators and that this should be done by a hosting company.</p>
<p>7. I saw in the web that there are some hostings which offers ready hostings for this ,but they offers hostings , not the whole server and it&#8217;s very expensive again &#8230; it&#8217;s almost $5000-$6000 a year &#8230; which is not solution because we already have 2 servers which are very strong.</p>
<p>8. The balancers will work properly like this : we have two servers, they are connected to each other , then they go through Load Balancer Active and through Load Balancer Backup and then through them it goes to the real users&#8230;<br />
- We need to have some hardware which is making a backup all the time , so if something fails on any of the servers, this hardware can save the situation and send the requests back to the users.</p>
<p>9. So i think that we have to speak with peer1 about this problem and see what they will offer for a solution. I hope that they will even offer it for a free , because we already have 2 servers from them</p>
<p>Here are a few links which can be good for all users:</p>
<p><a href="http://www.linux.com/articles/46735">http://www.linux.com/articles/46735</a></p>
<p><a href="http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html">http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html</a></p>
<p><a href="http://iweb.com/managed-hosting/web-cluster?gclid=CNzCwo7n45QCFQ9WtAodMXPEZA">http://iweb.com/managed-hosting/web-cluster?gclid=CNzCwo7n45QCFQ9WtAodMXPEZA</a></p>
<p><a href="http://en.wikipedia.org/wiki/Microsoft_Cluster_Server">http://en.wikipedia.org/wiki/Microsoft_Cluster_Server</a></p>
<p><a href="http://www.symantec.com/business/support/overview.jsp?pid=15066">http://www.symantec.com/business/support/overview.jsp?pid=15066</a></p>
<p>I hope that this article will help to everybody who is trying to solve the problem with overloading and big traffic.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/traffic-balancers-and-clusters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reconfigure a Plesk vhost</title>
		<link>http://blog.pocko.org/2008/07/reconfigure-a-plesk-vhost/</link>
		<comments>http://blog.pocko.org/2008/07/reconfigure-a-plesk-vhost/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 19:38:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux/Plesk]]></category>
		<category><![CDATA[plesk vhost]]></category>
		<category><![CDATA[plesk vhost reconfiguration]]></category>
		<category><![CDATA[reconfigure plesk]]></category>

		<guid isPermaLink="false">http://pocko.org/blog/?p=10</guid>
		<description><![CDATA[Should you need to reconfigure a Plesk vhost, open a Terminal window and as a root user, enter the following. /usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=INSERTDOMAIN /etc/init.d/httpd reload]]></description>
			<content:encoded><![CDATA[<div class="entrybody">
<p>Should you need to reconfigure a Plesk vhost, open a Terminal window and as a root user, enter the following.</p>
<blockquote>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=INSERTDOMAIN</div></div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/init.d/httpd reload</div></div>
</blockquote>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.pocko.org/2008/07/reconfigure-a-plesk-vhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
