<?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>ontwikkelBLOG.nl &#187; CentOS</title>
	<atom:link href="http://www.ontwikkelblog.nl/category/linux/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ontwikkelblog.nl</link>
	<description>Mijn weblog over: Linux, PHP, Bash, Servers, Xen, Java, Webhosting en meer!</description>
	<lastBuildDate>Tue, 01 Mar 2011 16:25:01 +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>De ramp die &#8220;gutsy&#8221; heet, nieuwe VDS: Aphrodite</title>
		<link>http://www.ontwikkelblog.nl/2008/04/13/de-ramp-die-gutsy-heet-nieuwe-vds-aphrodite.html</link>
		<comments>http://www.ontwikkelblog.nl/2008/04/13/de-ramp-die-gutsy-heet-nieuwe-vds-aphrodite.html#comments</comments>
		<pubDate>Sun, 13 Apr 2008 18:29:09 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Aphrodite]]></category>
		<category><![CDATA[Athena]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Neo/Alectrona/Artemis]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/?p=68</guid>
		<description><![CDATA[Een poosje geleden heb ik geprobeerd om verschillende VDS-en te upgraden naar Ubuntu 7.10 Gutsy Gibbon. Om een of andere reden resulteert elke upgrade die ik probeer in segmentation faults. Ook met een gloednieuwe image, gemaakt met debootstrap, komen overal segmentation faults tevoorschijn. Ik heb vanalles geprobeerd: verschillende gcc versies, eerst gcc upgraden en dan [...]]]></description>
			<content:encoded><![CDATA[<p>Een poosje geleden heb ik geprobeerd om verschillende VDS-en te upgraden naar <a href="http://www.ubuntu.com">Ubuntu 7.10 Gutsy Gibbon</a>. Om een of andere reden resulteert elke upgrade die ik probeer in segmentation faults. Ook met een gloednieuwe image, gemaakt met debootstrap, komen overal segmentation faults tevoorschijn. Ik heb vanalles geprobeerd: verschillende gcc versies, eerst gcc upgraden en dan de rest&#8230; enz. Ook heb ik verschillende mensen om raad gevraagd die ook geen oplossing hadden. Deze problemen had ik met de VDS-en <a href="http://athena.maikelg.net">Athena</a>, Alectrona en Artemis en de VDS host Neo. Welke allemaal Ubuntu 7.04 Feisty Fawn draaide. Omdat ik het probleem niet opgelost kreeg heb ik al deze servers geherinstalleerd naar een ander besturingssysteem. Hierbij heb ik steeds gekozen tussen Ubuntu 6.06 LTS Dapper Drake, de versie van Ubuntu met 5 jaar ondersteuning, en <a href="http://www.centos.org">CentOS 5.1</a>. Voor Alectrona en Artemis heb ik gekozen voor CentOS 5.1 omdat daarbij de meer up2date packages belangrijker zijn. Voor Neo en Athena heb ik voor Ubuntu 6.06 LTS Dapper Drake, omdat op die servers toch veel custom opstellingen draaien en ik daarvoor liever met Ubuntu werk. Ook is het voor die servers belangrijk dat ze voorlopig niet meer geherinstalleerd hoeven te worden.</p>
<p>Ik heb nu ook een losse VDS die sowizo alle databases voor Athena host, maar hij wordt ook voor andere databases gebruikt. Ook draait deze VDS de nieuwe <a href="http://nl.wikipedia.org/wiki/DNS-server">recursive dns server</a>. Deze VDS heet <a href="http://aphrodite.maikelg.net">Aphrodite</a>, draait op CentOS 5.1 en maakt gebruik van <a href="http://www.mysql.com">MySQL 5.0.51a</a> . <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2008/04/13/de-ramp-die-gutsy-heet-nieuwe-vds-aphrodite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PC ruil, nieuwe laptop en Neo vervangen</title>
		<link>http://www.ontwikkelblog.nl/2008/02/29/pc-ruil-nieuwe-laptop-en-neo-vervangen.html</link>
		<comments>http://www.ontwikkelblog.nl/2008/02/29/pc-ruil-nieuwe-laptop-en-neo-vervangen.html#comments</comments>
		<pubDate>Fri, 29 Feb 2008 17:56:02 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Neo/Alectrona/Artemis]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2008/02/29/pc-ruil-nieuwe-laptop-en-neo-vervangen.html</guid>
		<description><![CDATA[Neo, de server die thuis als bestandsserver en dnsserver dient, is op dit moment een Pentium III 500 Mhz met 512MB RAM. Neo draait op Ubuntu 7.04 Feisty Fawn en gebruikt Xen als virtualisatieplatform. De virtuele servers Alectrona en Artemis draaien op Neo. Alectrona neemt de bestandsserver en de interne recursive dns voor zijn rekening [...]]]></description>
			<content:encoded><![CDATA[<p>Neo, de server die thuis als bestandsserver en dnsserver dient, is op dit moment een Pentium III 500 Mhz met 512MB RAM. Neo draait op <a href="http://www.ubuntu.com">Ubuntu</a> 7.04 Feisty Fawn en gebruikt Xen als virtualisatieplatform. De virtuele servers Alectrona en Artemis draaien op Neo. Alectrona neemt de bestandsserver en de interne recursive dns voor zijn rekening en Artemis de 3e authorative nameserver. Dit systeem draait nu al ruim 3 jaar en is meerdere keren uitgebreid. Nu het einde van Ubuntu 7.04 inzicht komt en gewoon upgraden naar Ubuntu 7.10 vrijwel onmogelijk is gebleken (hierover later meer) ben ik mogelijkheden gaan zoeken om Neo te vervangen door een krachtigere machine, waar dan ook genoeg ruimte is om test VDS-en aan te kunnen maken.</p>
<p><span id="more-63"></span></p>
<p>Nu waren mijn ouders toch al van plan een nieuwe laptop voor hunzelf aan te schaffen. Zo heb ik bedacht dat ik hun, nog vrijwel nieuwe, PC (<a href="http://www.ontwikkelblog.nl/2007/10/08/pc-ouders-overleden-nieuwe-gebouwd.html">AMD Athlon X2 4000+, 1.5 GB RAM</a>) en TFT-scherm (dan heb ik weer dual screen <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ) over kan nemen. Mijn huidige PC (Intel Pentium D 2.6 Ghz, 1 GB RAM) kan dan gaan dienen als nieuwe Neo. Mijn ouders konden zich ook wel vinden in dat plan. Ik heb voor hun een <a href="http://maikel.kiekjes.org/showimg.php?file=/Nieuwe%20laptop%20en%20Windows1%20wordt%20nieuwe%20Neo/mini-DSC01372.JPG">nieuwe laptop</a> uitgezocht bij <a href="http://www.dell.nl">Dell</a>. Een Intel Pentium Dual-Core T2130, met 2 GB RAM en 160 GB Harddisk, met Windows Vista Home Premium. De service bij Dell was verassend goed, binnen een week werd de nieuwe laptop thuisbezorgd. Mijn <a href="http://maikel.kiekjes.org/showimg.php?file=/Uitbreiding%20netwerk%20en%20andere%20PC/mini-DSC01361.JPG">&#8220;nieuwe&#8221; PC</a> heb ik uitgerust met Ubuntu 7.10 Gutsy Gibbon en draait uitstekend. Over de Dual screen opstelling later meer. In de nieuwe Neo heb ik wel de <a href="http://maikel.kiekjes.org/showimg.php?file=/Nieuwe%20laptop%20en%20Windows1%20wordt%20nieuwe%20Neo/mini-DSC01389.JPG">CPU cooler vervangen</a> omdat hij eigenlijk een beetje te warm was en als hij 24 uur per dag gaat draaien is het wel zo prettig dat hij lekker koel is. Op de nieuwe Neo heb ik gekozen voor Ubuntu 6.06 LTS Dapper Drake met de binary versie van <a href="http://www.xen.org">Xen</a> 3.0.4. De virtuele servers Alectrona en Artemis zijn beiden uitgerust met <a href="http://www.centos.org">CentOS</a> linux 5.1, omdat wat nieuwe versies wel handig zijn. Alectrona verzorgt de interne recursive DNS en de bestandsserver. Ook heb ik nu een <a href="http://nl.wikipedia.org/wiki/TLD">intern TLD</a> opgezet &#8220;.wng&#8221;. Alle PC&#8217;s en interne diensten zijn nu te bereiken onder <em>hostname</em>.wng. Artemis neemt nogsteeds de 3e authorative DNS opzich en houdt ook de <a href="http://traffic.wng.maikelg.net">dataverkeer statistieken</a> van de Cisco SB101 router bij.</p>
<p>Inmiddels is Neo naar de inloopkast verplaatst omdat de nieuwe toch wel erg veel lawaai maakt in de woonkamer <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2008/02/29/pc-ruil-nieuwe-laptop-en-neo-vervangen.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Virtuele servers op Neo: Alectrona en Exodus</title>
		<link>http://www.ontwikkelblog.nl/2007/09/02/virtuele-servers-op-neo-alectrona-en-exodus.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/09/02/virtuele-servers-op-neo-alectrona-en-exodus.html#comments</comments>
		<pubDate>Sun, 02 Sep 2007 19:33:07 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Neo/Alectrona/Artemis]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/09/02/virtuele-servers-op-neo-alectrona-en-exodus.html</guid>
		<description><![CDATA[Na de succesvolle realisatie van Atlas heb ik besloten om mijn thuisserver Neo ook in twee virtuele servers te gaan verdelen: Alectrona en Exodus. Dit is handiger omdat ik dan de diensten voor binnen het thuisnetwerk en die voor de buitenwereld gescheiden kan houden. Alectrona is de interne fileserver en caching dns server voor het [...]]]></description>
			<content:encoded><![CDATA[<p>Na de succesvolle realisatie van <a href="http://atlas.maikelg.net">Atlas</a> heb ik besloten om mijn thuisserver Neo ook in twee virtuele servers te gaan verdelen: Alectrona en Exodus. Dit is handiger omdat ik dan de diensten voor binnen het thuisnetwerk en die voor de buitenwereld gescheiden kan houden. Alectrona is de interne fileserver en caching dns server voor het netwerk. Exodus doet de secundaire DNS.</p>
<p><span id="more-50"></span><br />
Ik wou eigenlijk eerst Neo op CentOS gaan draaien. Maar CentOS 5 bleek erg slecht te werken op de wat verouderde hardware (Pentium 3 500 Mhz, 512 MB ram). Daarom heb ik besloten verder te gaan met Ubuntu 7.04 Feisty Fawn.<br />
Ubuntu 7.04 werkt als een trein en Xen was snel vanuit de repository&#8217;s geinstalleerd. Beide virtuele servers (Alectrona en Exodus) zijn uitgerust met Ubuntu 7.04 Feisty Fawn.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/09/02/virtuele-servers-op-neo-alectrona-en-exodus.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stroomuitval te Easynet DC Schiphol-rijk: Atlas, Asclepius, Athena, Atropos en nog een paar duizend servers offline</title>
		<link>http://www.ontwikkelblog.nl/2007/08/04/stroomuitval-te-easynet-dc-schiphol-rijk-atlas-asclepius-athena-atropos-en-nog-een-paar-duizend-servers-offline.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/08/04/stroomuitval-te-easynet-dc-schiphol-rijk-atlas-asclepius-athena-atropos-en-nog-een-paar-duizend-servers-offline.html#comments</comments>
		<pubDate>Sat, 04 Aug 2007 17:56:08 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Algemeen]]></category>
		<category><![CDATA[Asclepius]]></category>
		<category><![CDATA[Athena]]></category>
		<category><![CDATA[Atlas]]></category>
		<category><![CDATA[Atropos]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/08/04/stroomuitval-te-easynet-dc-schiphol-rijk-atlas-asclepius-athena-atropos-en-nog-een-paar-duizend-servers-offline.html</guid>
		<description><![CDATA[Gisteren was ik om kwart voor drie &#8216;smiddags bij Albert Heijn toen ik een SMSje kreeg. Als ik een SMSje krijg betekend dat vaak niet veel goeds. Dus ik ging kijken: &#8220;NOC: De service HTTP op atlas.maikelg.net is down.&#8221;, hmm, Atlas is de VDS host server waar Asclepius, Athena en Atropos op draait, dus dat [...]]]></description>
			<content:encoded><![CDATA[<p>Gisteren was ik om kwart voor drie &#8216;smiddags bij <a HREF="http://www.ah.nl">Albert Heijn</a> toen ik een SMSje kreeg. Als ik een SMSje krijg betekend dat vaak niet veel goeds. Dus ik ging kijken: &#8220;<a HREF="http://www.maikelgnoc.nl">NOC</a>: De service HTTP op atlas.maikelg.net is down.&#8221;, hmm, Atlas is de VDS host server waar Asclepius, Athena en Atropos op draait, dus dat betekend dat die ook offline zijn. Hiervan zou ik echter geen smsjes moeten krijgen, omdat dat wordt onderdrukt als Atlas al offline is.<br />
Omdat het ook een valse melding kan zijn bel ik vanuit de AH <a HREF="http://www.thijsdewert.com">Thijs</a>, hij neemt echter niet op. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  Dan m&#8217;n <a HREF="http://www.hermans-plaatjes.nl">oom</a> maar proberen. Die nam wel op en heb ik terwijl ik met m&#8217;n vader terug liep naar de auto door verschillende sites heen geloodst om te kijken of Atlas echt offline was, en daarmee de virtuele servers ook. Dat was ook zo.</p>
<p><span id="more-45"></span><br />
Thuis aangekomen heb ik direct mijn PC aangezet en ben ik snel verschillende systemen afgegaan om te kijken wat er aan de hand is. Het was mij al snel duidelijk dat niet allleen heel Atlas met de virtuele servers offline was, maar ook de servers van mijn provider, die in hetzelfde datacentrum staan (niet specifiek in hetzelfde rack). Terwijl ik via mijn thuis fileserver Neo irc opstartte belde ik de Technische Dienst van mijn provider op. Die vertelde mij dat er een stroomstoring was en dat half Easynet plat lag. Nou, daar kan je het dan mee doen <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  .<br />
Na 2 en half uur was de stroom toevoer hersteld en zouden de servers allemaal weer online moeten zijn. Mijn server was een half uur later nogsteeds niet online. Even later kreeg ik een bericht van de technische dienst dat mijn server gewoon draaide. Toen een medewerker van mijn provider ging kijken bleek dat networking niet vanzelf was gestart, nadat dit handmatig was gedaan kon ik mijn server weer bereiken <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>Verder ging alles gewoon goed alleen op Asclepius wou Plesk niet meteen starten, maar dat ging later ook weer zonder er wat aan te doen <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>Op dit moment is het <a HREF="http://www.ispam.nl/archives/983/stroomstoring-in-het-easynet-datacentrum/">nog niet bekend</a> waarom de stroom is weggevallen.</p>
<p>Ik hoop dit niet vaker mee te maken, maarjah, shit happens&#8230;.</p>
<p><strong>Update 06-08-2007:</strong> Vandaag is bekend geworden dat de stroomuitval door menselijk falen is veroorzaakt: <a href="http://www.ispam.nl/archives/992/menselijke-fout-oorzaak-van-stroomstoring-in-het-easynet-datacentrum/">http://www.ispam.nl/archives/992/menselijke-fout-oorzaak-van-stroomstoring-in-het-easynet-datacentrum/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/08/04/stroomuitval-te-easynet-dc-schiphol-rijk-atlas-asclepius-athena-atropos-en-nog-een-paar-duizend-servers-offline.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Plesk] Statistieken genereren</title>
		<link>http://www.ontwikkelblog.nl/2007/08/04/plesk-statistieken-genereren.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/08/04/plesk-statistieken-genereren.html#comments</comments>
		<pubDate>Sat, 04 Aug 2007 15:04:34 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Algemeen]]></category>
		<category><![CDATA[Asclepius]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/08/04/plesk-statistieken-genereren.html</guid>
		<description><![CDATA[Toen ik mijn Plesk server Asclepius net een paar dagen had draaien viel het mij op dat de statistieken niet werden gegenereerd. Eerst ben ik is gaan kijken hoe de statistieken bij Plesk worden gegenereerd. De applicatie statistics in de uitgebreide shell scripts directory van Plesk /usr/local/psa/admin/sbin bleek hiervoor te zorgen. Met het commando: 1shell# [...]]]></description>
			<content:encoded><![CDATA[<p>Toen ik mijn <a HREF="http://www.swsoft.com/plesk">Plesk</a> server <a HREF="http://asclepius.maikelg.net">Asclepius</a> net een paar dagen had draaien viel het mij op dat de statistieken niet werden gegenereerd.<br />
Eerst ben ik is gaan kijken hoe de statistieken bij Plesk worden gegenereerd. De applicatie <em>statistics</em> in de uitgebreide shell scripts directory van Plesk /usr/local/psa/admin/sbin bleek hiervoor te zorgen. Met het commando:</p>
<p><span id="more-44"></span></p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# /usr/local/psa/admin/sbin/statistics --calculate-all</div></td></tr></tbody></table></div>
</pre>
<p>kon ik de statistieken handmatig genereren. Dit ging prima, en de statistieken zagen er goed uit.<br />
Het probleem lag dus niet bij het genereren zelf. Toen ben het gaan zoeken bij de cronjob. Maar ook die zag er prima uit.<br />
Wat vreemd&#8230;. Maar wacht is, het zal toch niet dat de cron daemon niet draait?</p>
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>asclepius sbin<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># ps aux | grep crond </span><br />
root &nbsp; &nbsp; <span style="color: #000000;">15349</span> &nbsp;<span style="color: #000000;">0.0</span> &nbsp;<span style="color: #000000;">0.0</span> &nbsp; <span style="color: #000000;">4996</span> &nbsp; <span style="color: #000000;">672</span> pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span> &nbsp; &nbsp;R+ &nbsp; <span style="color: #000000;">17</span>:01 &nbsp; <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">grep</span> crond <br />
<span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>asclepius sbin<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;">#</span></div></td></tr></tbody></table></div>
</pre>
<p>Ja hoor, de cron daemon draaide gewoon niet <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /><br />
Met een <em>/sbin/service crond start</em> was het opgelost. Achteraf bleek alles in <em>chkconfig</em> gewoon goed te staan, dus hoe het nou is gekomen dat crond niet was gestart&#8230; Ik weet het niet, maar alles werkt iniedergeval weer <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/08/04/plesk-statistieken-genereren.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data backuppen op Plesk server</title>
		<link>http://www.ontwikkelblog.nl/2007/08/04/data-backuppen-op-plesk-server.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/08/04/data-backuppen-op-plesk-server.html#comments</comments>
		<pubDate>Sat, 04 Aug 2007 14:52:44 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Asclepius]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/08/04/data-backuppen-op-plesk-server.html</guid>
		<description><![CDATA[Voor het backuppen van de data op mijn Plesk server Asclepius heb ik er voor gekozen om dat niet via de ingebouwde backup functie van Plesk te doen. Plesk gebruikt een backup formaat die ik tot nu toe nog niet zelf uit heb kunnen pakken. Dat is onhandig, want dan kan ik niet specifieke delen [...]]]></description>
			<content:encoded><![CDATA[<p>Voor het backuppen van de data op mijn <a href="http://www.swsoft.com/plesk">Plesk</a> server <a href="http://asclepius.maikelg.net">Asclepius</a> heb ik er voor gekozen om dat niet via de ingebouwde backup functie van Plesk te doen. Plesk gebruikt een backup formaat die ik tot nu toe nog niet zelf uit heb kunnen pakken. Dat is onhandig, want dan kan ik niet specifieke delen van een backup herstellen. Daarom heb ik het volgende script gemaakt:</p>
<p><span id="more-43"></span></p>
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">MAILADDR</span>=<span style="color: #ff0000;">'&lt;e-mail voor backup notificatie&gt;'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">MYSQLUSER</span>=<span style="color: #ff0000;">'admin'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">MYSQLPASS</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>psa<span style="color: #000000; font-weight: bold;">/</span>.psa.shadow<span style="color: #000000; font-weight: bold;">`</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">FTPSERVER</span>=<span style="color: #ff0000;">'&lt;ftpserver&gt;'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #007800;">FTPUSER</span>=<span style="color: #ff0000;">'&lt;ftpuser&gt;'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #007800;">FTPPASS</span>=<span style="color: #ff0000;">'&lt;ftp-password&gt;'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #007800;">REMOTEPATH</span>=<span style="color: #ff0000;">'&lt;path op ftp server&gt;'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'Plesk enhanced-backup v1.0'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Oude backups verwijderen'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>backup.tar.bz2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>place<span style="color: #000000; font-weight: bold;">/*</span>.tar.bz2 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>place<span style="color: #000000; font-weight: bold;">/*</span>.sql &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>place &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; MySQL backup maken'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqldump <span style="color: #660033;">--password</span>=<span style="color: #007800;">$MYSQLPASS</span> <span style="color: #660033;">--user</span>=<span style="color: #007800;">$MYSQLUSER</span> <span style="color: #660033;">--all-databases</span> <span style="color: #000000; font-weight: bold;">&gt;</span> dbs.sql &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Mail backup maken'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cjf</span> mail.tar.bz2 <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>qmail<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Websites backup maken'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cjf</span> sites.tar.bz2 <span style="color: #660033;">--exclude</span>=chroot<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>vhosts<span style="color: #000000; font-weight: bold;">/</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Alles inpakken'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-cjf</span> backup.tar.bz2 <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>place &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Backup uploaden'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>ncftpput <span style="color: #660033;">-u</span> <span style="color: #007800;">$FTPUSER</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$FTPPASS</span> <span style="color: #007800;">$FTPSERVER</span> <span style="color: #007800;">$REMOTEPATH</span> backup.tar.bz2 <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&gt;&gt; Mail sturen om te laten weten dat het is gelukt'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Het backuppen is gelukt!&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mutt <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;Backup voltooit&quot;</span> <span style="color: #007800;">$MAILADDR</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'&lt;&lt; BACKUP VOLTOOIT &gt;&gt;'</span></div></td></tr></tbody></table></div>
</pre>
<p>Dit script maakt een afzonderlijke backup van de website data, e-mail en mysql databases en upload deze naar een externe ftp server.<br />
Let op, hiervoor heb je wel de applicaties mutt en ncftp nodig. Indien deze nog niet zijn geinstalleerd kan je dat als volgt doen:<br />
Op Ubuntu/Debian:</p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# apt-get install ncftp mutt</div></td></tr></tbody></table></div>
</pre>
<p>CentOS 5 heeft ncftp standaard niet in haar repository&#8217;s, daar kan het installeren via (i386):</p>
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">yum install</span> mutt<br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>mirror.ontwikkelzone.nl<span style="color: #000000; font-weight: bold;">/</span>rpms<span style="color: #000000; font-weight: bold;">/</span>ncftp-3.2.0-<span style="color: #000000;">1</span>.fc5.i386.rpm<br />
<span style="color: #666666;">shell# </span>rpm <span style="color: #660033;">-i</span> ncftp-3.2.0-<span style="color: #000000;">1</span>.fc5.i386.rpm</div></td></tr></tbody></table></div>
</pre>
<p>Het script gebruikt /opt/backup en /opt/backup/place als tijdelijke mappen, maar dit kan je natuurlijk gewoon aanpassen.<br />
Op deze manier kan ik alle data goed backuppen en ook specifieke delen terug plaatsen. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/08/04/data-backuppen-op-plesk-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De realisatie van Atlas, het vervolg</title>
		<link>http://www.ontwikkelblog.nl/2007/07/13/de-realisatie-van-atlas-het-vervolg.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/07/13/de-realisatie-van-atlas-het-vervolg.html#comments</comments>
		<pubDate>Fri, 13 Jul 2007 19:31:26 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Acropolis]]></category>
		<category><![CDATA[Asclepius]]></category>
		<category><![CDATA[Athena]]></category>
		<category><![CDATA[Atlas]]></category>
		<category><![CDATA[Atropos]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/07/13/de-realisatie-van-atlas-het-vervolg.html</guid>
		<description><![CDATA[Zoals ik in voorgaande posts heb verteld ben ik bezig met het opzetten van een nieuwe server die al mijn websites ed mag gaan hosten. Ik heb uitgelegd dat ik dit wil gaan doen door de server in meerdere virtuele servers te verdelen dmv Xen. Het is een poosje geleden dat ik hierover heb geschreven, [...]]]></description>
			<content:encoded><![CDATA[<p>Zoals ik in voorgaande posts heb verteld ben ik bezig met het opzetten van een nieuwe server die al mijn websites ed mag gaan hosten. Ik heb uitgelegd dat ik dit wil gaan doen door de server in meerdere virtuele servers te verdelen dmv <a href="http://www.xensource.com">Xen</a>. Het is een poosje geleden dat ik hierover heb geschreven, maar ik heb het zo druk gehad met het realiseren van Atlas dat ik helemaal niet aan scrijven toen ben gekomen. Die achterstand probeer ik nu in te halen. </p>
<p>Inmiddels heb ik alle hardware binnen en heb ik Atlas gebouwd en volledig geinstalleerd.</p>
<p><span id="more-37"></span><br />
<strong>Hardware</strong></p>
<ul>
<li>Chieftec 1U case UNC-110S-W</li>
<li>Intel Core 2 Duo E4300 1.8 Ghz</li>
<li>Supermicro PDSMi+ server motherboard</li>
<li>Supermicro SNK-P0016 heatsink</li>
<li>4x Corsair 1024MB DDR2 128MX64</li>
<li>2x WesternDigital Caviar SE16 320GB (Software RAID 1)</li>
</ul>
<p>Ik had eerst de verkeerde koeler besteld, ook was m&#8217;n eerste motherboard, de <a href="http://www.intel.com/design/servers/boards/s3000ah/index.htm">Intel S3000AHV</a> niet leverbaar. Ik heb toen eerst een <a href="http://www.asus.com/products4.aspx?l1=3&#038;l2=11&#038;l3=332&#038;model=1314&#038;modelmenu=1">Asus P5B-V</a> geprobeerd, maar daar bleek m&#8217;n koeler niet op te passen. Nu heb ik uiteindelijk de <a href="http://www.supermicro.com/products/motherboard/Xeon3000/3000/PDSMi+.cfm">Supermicro PDSMi+</a> genomen, een erg leuk moederbordje.</p>
<p><strong>Software op Atlas</strong></p>
<p>De software die ik heb gebruikt op Atlas:</p>
<ul>
<li>Ubuntu 6.06 LTS</li>
<li>Xen 3.0.4</li>
<li>Apache 2.2.4</li>
<li>PHP 5.2.3</li>
<li>MRTG met eigen scripts</li>
</ul>
<p>Ubuntu als OS, Xen als virtualisatiesoftware. MRTG gebruik ik om het dataverkeer verbruik van de virtuele servers bij te houden <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p><strong>De virtuele servers</strong></p>
<p><u>Asclepius</u><br />
40 GB harddisk<br />
512 MB RAM<br />
CentOS Linux 5.0<br />
<a href="http://www.swsoft.com/plesk">SWsoft Plesk 8.2</a><br />
<em>Voor de normale websites. Mijn keuze is op Plesk gevallen omdat ik dat een heel uitgebreid en net controlepaneel vind. CentOS is een stabiele distributie en een goede combinatie met Plesk, mede heb ik voor CentOS gekozen omdat Plesk de software uit de repositorys van het OS haalt en CentOS 5 gewoon op dit moment het beste bij de tijd daar mee is. PHP 5 heb ik zelf gecompileerd.</p>
<p><u>Athena</u><br />
40 GB harddisk<br />
768 MB ram<br />
Gentoo Linux<br />
<em>Voor Ontwikkelzone, OntwikkelBLOG, de website waar het dataverkeer verbruik op staat, database en website van Anna en experimenten ed: De keuze voor Gentoo omdat je het gewoon lekker naar je eigen hand kan zetten. Je kan helemaal zelf opgeven met welke opties je pakketten gecompileert moeten worden ( Portage <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), en dat is voor een server die toch meer gericht is op de development wel zo leuk. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </em></p>
<p><u>Atropos</u><br />
5 GB harddisk<br />
256 MB ram<br />
Ubuntu Linux 6.06 LTS<br />
<em>Voor Anna (de bot zelf), m&#8217;n IRC server en m&#8217;n bouncer. Ik heb voor Ubuntu 6.06 gekozen omdat dat het besturingssysteem is wat ik het meeste gebruik en debian based vind ik nog altijd het prettigste werken. Deze IRC servers zijn toch niet zonder risico en daarom lekker gescheiden van de rest op deze virtuele server. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>Met deze virtuele servers is er nog genoeg ruimte over voor test virtuele servers, dus met atlas kan ik weer een hele poos voort.</p>
<p>De plaatsing van Atlas vind aanstaande woensdag (18-07-07) plaats. Ik ga Atlas plaatsen in het <a href="http://www.datacentrumgids.nl/datacentrum/easynet-dc-schiphol">Easynet datacentrum te Amsterdam Schiphol-rijk</a>. Atlas zal daar met de rest van de wereld in verbinding staan via het <a href="http://www.netwerkgids.com/netwerk/euroaccess">Euroaccess</a> netwerk.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/07/13/de-realisatie-van-atlas-het-vervolg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plesk test, upgraden naar PHP 5.2.3</title>
		<link>http://www.ontwikkelblog.nl/2007/07/03/plesk-test.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/07/03/plesk-test.html#comments</comments>
		<pubDate>Tue, 03 Jul 2007 16:50:57 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Apollo]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/07/03/plesk-test.html</guid>
		<description><![CDATA[Plesk is net als DirectAdmin een webhosting control panel. Gebruikt om webhosting-pakketten aantemaken en te beheren. Plesk bied wat meer mogelijkheden en ziet er naar mijn mening beter uit (overgens kan je DirectAdmin wel makkelijk een ander uiterlijk geven. Er zijn tientallen skins voor weinig geld beschikbaar). Het is dan ook een stuk duurder. DirectAdmin [...]]]></description>
			<content:encoded><![CDATA[<p><a HREF="http://www.swsoft.com/plesk">Plesk</a> is net als <a HREF="http://www.directadmin.com">DirectAdmin</a> een webhosting control panel. Gebruikt om webhosting-pakketten aantemaken en te beheren.<br />
Plesk bied wat meer mogelijkheden en ziet er naar mijn mening beter uit (overgens kan je DirectAdmin wel makkelijk een ander uiterlijk geven. Er zijn tientallen skins voor weinig geld beschikbaar). Het is dan ook een stuk duurder.</p>
<p>DirectAdmin lifetime voor onbeperkte domeinen kost bij DirectAdmin zelf 219.46 EUR (omgerekend van dollars naar euro&#8217;s), en dan ondersteund DirectAdmin ook gewoon spamfilters ed en er zit een ticket systeem ingebouwd.<br />
Plesk lifetime kost bij <a HREF="http://www.koopplesk.nl">http://www.koopplesk.nl</a> voor 100 domeinen 284.41 EUR, en dan zit er nog geeneens ondersteuning voor een spamfilter bij.<br />
Plesk heeft daar integen wel een gratis 1 domein licentie, dus ik kan zonder problemen testen. Dit heb ik dan ook gedaan, op Apollo, zowel op CentOS 4.4, Ubuntu 6.06 LTS en CentOS 5.0.<br />
<span id="more-34"></span><br />
<strong>Installeren</strong></p>
<p>De installatie verliep op alle drie vlot, maar dat is vroeger wel is anders geweest&#8230;. Ik heb eerder een poosje een Plesk server beheerd, en toen was het installeren een ramp. Maar nu ging het prima.</p>
<p><strong>Software versies</strong></p>
<p>Plesk gebruikt de repository&#8217;s van het OS. Als je dus een OS gebruikt met oude versies, heeft Plesk ook oude versies. Gebruik je een OS met nieuwe versies, heeft Plesk ook nieuwe versies. Daarom ben ik verder gegaan met CentOS 5.0 omdat deze het meeste bij de tijd is.</p>
<p><strong>PHP</strong></p>
<p>Omdat ik veel met specifieke functies in PHP werk, wil ik PHP volledig bij de tijd hebben. Dit bleek helemaal niet zo&#8217;n probleem te zijn met Plesk (commando&#8217;s voor CentOS 5):</p>
<ul>
<li>Voer de volgende commando&#8217;s uit:
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src <br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">yum install</span> httpd-devel libxml2-devel mysql-devel ncurses-devel gcc-c++ <span style="color: #c20cb9; font-weight: bold;">make</span> <br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>nl3.php.net<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>php-5.2.3.tar.gz<span style="color: #000000; font-weight: bold;">/</span>from<span style="color: #000000; font-weight: bold;">/</span>this<span style="color: #000000; font-weight: bold;">/</span>mirror <br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvvzf</span> php-5.2.3.tar.gz <br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> php-5.2.3 <br />
<span style="color: #666666;">shell# </span>.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>php5 <span style="color: #660033;">--with-apxs2</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">apxs</span> <span style="color: #660033;">--enable-discard-path</span> <span style="color: #660033;">--enable-force-redirect</span> <span style="color: #660033;">--with-mysql</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #660033;">--enable-sockets</span> &nbsp;<span style="color: #000000; font-weight: bold;">&lt;</span>verdere<span style="color: #000000; font-weight: bold;">&gt;</span><br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">make</span> <br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>conf<span style="color: #000000; font-weight: bold;">/</span>httpd.conf</div></td></tr></tbody></table></div>
<li>Verwijder de php5 module regel en sla op.</li>
<li>Kopieer php.ini naar de nieuwe locatie:
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# cp /etc/php.ini /opt/php5/lib/php.ini</div></td></tr></tbody></table></div>
</pre>
</li>
<li>Herstart Apache:
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# /sbin/service httpd restart</div></td></tr></tbody></table></div>
</pre>
</li>
</ul>
<p>En klaar <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  PHP 5 draait ! <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Conclusie</strong></p>
<p>Ik vind Plesk een zeer leuk controlepaneel met leuke functies die ik in DirectAdmin een beetje mis. Ik heb besloten om over te stappen op Plesk, maar dan wel de 30 domeinen licentie. Meer heb ik toch niet nodig <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/07/03/plesk-test.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat JSP server installeren en integreren met Apache</title>
		<link>http://www.ontwikkelblog.nl/2007/06/03/tomcat-jsp-server-installeren-en-integreren-met-apache.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/06/03/tomcat-jsp-server-installeren-en-integreren-met-apache.html#comments</comments>
		<pubDate>Sun, 03 Jun 2007 17:34:15 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Aphrodite]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/06/03/tomcat-jsp-server-installeren-en-integreren-met-apache.html</guid>
		<description><![CDATA[In mijn vorige post heb ik verteld hoe ik met Java en JSP bezig ben. Hoe ik de Tomcat JSP server heb geinstalleerd en met Apache heb geintegreerd ga ik in deze post uitleggen. In dit voorbeeld gebruik ik een server met CentOS 4.4, maar de procedure is bij elke andere linux distributie vrijwel hetzelfde. [...]]]></description>
			<content:encoded><![CDATA[<p>In mijn <a href="http://www.ontwikkelblog.nl/2007/06/02/java-leren.html">vorige post</a> heb ik verteld hoe ik met Java en JSP bezig ben. Hoe ik de <a href="http://tomcat.apache.org">Tomcat</a> JSP server heb geinstalleerd en met Apache heb geintegreerd ga ik in deze post uitleggen. In dit voorbeeld gebruik ik een server met CentOS 4.4, maar de procedure is bij elke andere linux distributie vrijwel hetzelfde.</p>
<p><span id="more-26"></span></p>
<p><strong>Tomcat installeren</strong></p>
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>tomcat<br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>tomcat<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>apache.proserve.nl<span style="color: #000000; font-weight: bold;">/</span>tomcat<span style="color: #000000; font-weight: bold;">/</span>tomcat-<span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">/</span>v6.0.13<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apache-tomcat-6.0.13.tar.gz<br />
<span style="color: #666666;">shell# </span>adduser tomcat<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> tomcat:tomcat <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>tomcat<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> apache-tomcat-6.0.13.tar.gz<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">rm</span> apache-tomcat-6.0.13.tar.gz<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">mv</span> apache-tomcat-6.0.13<span style="color: #000000; font-weight: bold;">/*</span> .<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-r</span> apache-tomcat-6.0.13<br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;JAVA_HOME = &lt;path naar Java Runtime Environment&gt;&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>bashrc<br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;export JAVA_HOME&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>bashrc<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">bash</span><br />
<span style="color: #666666;">shell# </span>bin<span style="color: #000000; font-weight: bold;">/</span>startup.sh</div></td></tr></tbody></table></div>
</pre>
<p>Vervang &lt;path naar Java Runtime Environment&gt; met het path naar JRE.</p>
<p><strong>User voor manager aanmaken</strong></p>
<p>Nu is Tomcat geinstalleerd en opgestart. Je kan met <em>netstat -l</em> kijken op welke poort Tomcat is gestart, daar kun je dan de manager vinden. </p>
<p>Nu is het tijd om een user aan te maken voor de manager. Met de manager kan je applications deployen en undeployen.</p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# nano /usr/local/tomcat/conf/tomcat-users.xml</div></td></tr></tbody></table></div>
</pre>
<p>Voeg tussen &lt;tomcat-users&gt; en &lt;/tomcat-users&gt; de volgende regels toe:</p>
<pre>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;role</span> <span style="color: #000066;">rolename</span>=<span style="color: #ff0000;">&quot;manager&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;user</span> <span style="color: #000066;">username</span>=<span style="color: #ff0000;">&quot;admin&quot;</span> <span style="color: #000066;">password</span>=<span style="color: #ff0000;">&quot;pass&quot;</span> <span style="color: #000066;">roles</span>=<span style="color: #ff0000;">&quot;manager&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></td></tr></tbody></table></div>
</pre>
<p>Vervang admin en pass door je eigen gebruikersnaam en wachtwoord.</p>
<p><strong>mod_jk installeren en configureren</strong></p>
<p>Nu gaan we Tomcat integreren in Apache, ik ga uit van Apache 2.2.4, maar ook voor oudere series zijn mod_jk binaries te vinden.</p>
<p>Uiteraard moet je de apache path&#8217;s gebruiken die bij jou van toepassing zijn.</p>
<pre>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>modules<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.apache.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>tomcat<span style="color: #000000; font-weight: bold;">/</span>tomcat-connectors<span style="color: #000000; font-weight: bold;">/</span>jk<span style="color: #000000; font-weight: bold;">/</span>binaries<span style="color: #000000; font-weight: bold;">/</span>linux<span style="color: #000000; font-weight: bold;">/</span>jk-1.2.21<span style="color: #000000; font-weight: bold;">/</span>mod_jk-1.2.21-apache-<span style="color: #000000;">2.2</span>.x-linux-i686.so<br />
<span style="color: #666666;">shell# </span><span style="color: #7a0874; font-weight: bold;">cd</span> ..<span style="color: #000000; font-weight: bold;">/</span>conf<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">touch</span> ..<span style="color: #000000; font-weight: bold;">/</span>logs<span style="color: #000000; font-weight: bold;">/</span>mod_jk.log<br />
<span style="color: #666666;">shell# </span><span style="color: #c20cb9; font-weight: bold;">nano</span> httpd.conf</div></td></tr></tbody></table></div>
</pre>
<p>Voeg onderaan httpd.conf toe:</p>
<pre>
<div class="codecolorer-container apache default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br /></div></td><td><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">LoadModule</span> jk_module /usr/local/apache2/modules/mod_jk.so<br />
<br />
<span style="color: #adadad; font-style: italic;"># Where to find workers.properties</span><br />
JkWorkersFile /usr/local/apache2/workers.properties <br />
<br />
<span style="color: #adadad; font-style: italic;"># Where to put jk logs</span><br />
JkLogFile /usr/local/apache2/logs/mod_jk.log<br />
<br />
<span style="color: #adadad; font-style: italic;"># Set the jk log level [debug/error/info]</span><br />
JkLogLevel info<br />
<br />
<span style="color: #adadad; font-style: italic;"># Select the log format</span><br />
JkLogStampFormat <span style="color: #7f007f;">&quot;[%a %b %d %H:%M:%S %Y] &quot;</span><br />
<br />
<span style="color: #adadad; font-style: italic;"># JkOptions indicate to send SSL KEY SIZE,</span><br />
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories<br />
<br />
<span style="color: #adadad; font-style: italic;"># JkRequestLogFormat set the request format</span><br />
JkRequestLogFormat <span style="color: #7f007f;">&quot;%w %V %T&quot;</span><br />
<br />
<span style="color: #adadad; font-style: italic;"># Send servlet for context / jsp-examples to worker named worker1</span><br />
JkMount /jspapplicatie worker1<br />
<span style="color: #adadad; font-style: italic;"># Send JSPs for context /jsp-examples/* to worker named worker1</span><br />
JkMount /jspapplicatie/* worker1</div></td></tr></tbody></table></div>
</pre>
<p>De laatste 4 regels moeten steeds herhaald worden voor extra applicaties.</p>
<p>Nu moeten we workers.properties aanmaken:</p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# nano /usr/local/apache2/workers.properties</div></td></tr></tbody></table></div>
</pre>
<p>Zet in workers.properties het volgende:</p>
<pre>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">workers.tomcat_home<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/usr/lib/apache-tomcat</span><br />
workers.java_home<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/usr/lib/jdk</span><br />
<span style="color: #000099;">ps</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/</span><br />
worker.list<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">worker1</span><br />
<br />
worker.default.port<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">&lt;tomcat poort&gt;</span><br />
worker.default.host<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">localhost</span><br />
worker.default.type<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">ajp13</span><br />
worker.default.lbfactor<span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span></div></td></tr></tbody></table></div>
</pre>
<p>Vervang &lt;tomcat poort&gt; door de tomcat poort.</p>
<p>Dan kan apache gerestart worden met:</p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# /usr/local/apache2/bin/apachectl -k restart</div></td></tr></tbody></table></div>
</pre>
<p>Dat is het! Nu wordt http://je-url/jspapplicatie naar de tomcat server geforward.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/06/03/tomcat-jsp-server-installeren-en-integreren-met-apache.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java leren</title>
		<link>http://www.ontwikkelblog.nl/2007/06/02/java-leren.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/06/02/java-leren.html#comments</comments>
		<pubDate>Sat, 02 Jun 2007 21:49:47 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Aphrodite]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/06/02/java-leren.html</guid>
		<description><![CDATA[Ik ben begonnen met het leren van Java. Ik heb Netbeans IDE op mijn desktop geinstalleerd (die draait op Ubuntu 7.04 Feisty Fawn) en ben aan het spelen gegaan. Ik ben begonnen met het maken van een GUI applicatie dmv Swing. Veel dingen had ik snel door, Java is erg logisch, in tegenstelling tot bijv. [...]]]></description>
			<content:encoded><![CDATA[<p>Ik ben begonnen met het leren van <a href="http://en.wikipedia.org/wiki/Java_(programming_language)">Java</a>. Ik heb <a href="http://www.netbeans.info">Netbeans IDE</a> op mijn desktop geinstalleerd (die draait op <a href="http://www.ubuntu.com">Ubuntu</a> 7.04 Feisty Fawn) en ben aan het spelen gegaan. Ik ben begonnen met het maken van een GUI applicatie dmv Swing. Veel dingen had ik snel door, Java is erg logisch, in tegenstelling tot bijv. Delphi.<br />
Ik heb ook een goede functie naslag voor Java gevonden: <a href="http://www.exampledepot.com/">http://www.exampledepot.com/</a>. Hier heb ik tijdens het uitproberen wel veel aan gehad.</p>
<p><span id="more-25"></span></p>
<p>In mijn eerste &#8220;Hello World!&#8221; java applicatie heb ik inmiddels al voor elkaar:</p>
<ul>
<li>Exceptions window in en uitschakelen</li>
<li>Aanpassen van Hello World string</li>
<li>Aanpassen button text</li>
<li>Opslaan van instellingen in INI file</li>
<li>Uitlezen van instellingen INI file</li>
<li>Verwijderen van aangemaakte INI file</li>
<li>Credits scherm</li>
<li>Instellingen naar resetten</li>
</ul>
<p>Deze Java applicatie is te downloaden op: <a href="http://dev.ontwikkelzone.nl/java/hwapp.zip">http://dev.ontwikkelzone.nl/java/hwapp.zip</a>.</p>
<p>De applicatie heeft Java Runtime Environment 6 nodig om goed te functioneren. Mocht er bij het uitvoeren een foutmelding komen, probeer hem dan op deze manier te starten:</p>
<pre>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">shell# java -jar Hello_World_App.jar</div></td></tr></tbody></table></div>
</pre>
<p>Ook ben ik sinds gisteren begonnen met het spelen met <a href="http://en.wikipedia.org/wiki/JavaServer_Pages">JavaServer Pages</a>. Dit vind ik eigenlijk iets lastiger dan normaal met Java werken in een GUI applicatie, maar ik heb het toch vrij snel voor elkaar gekregen om de GET en POST parameters op te vragen en te verwerken.</p>
<p>Voor het draaien van de JSP applicatie heb ik op Aphrodite een <a href="http://tomcat.apache.org">Tomcat</a> server geinstalleerd. Ook heb ik die geintegreerd met Apache. Hoe ik dat heb gedaan zal ik in een later stukje uitleggen.</p>
<p>Java is een uitgebreide en breed inzetbare programmeer taal, waar ik zeker nog meer van wil leren <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/06/02/java-leren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nieuwe Aphrodite</title>
		<link>http://www.ontwikkelblog.nl/2007/05/27/nieuwe-aphrodite.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/05/27/nieuwe-aphrodite.html#comments</comments>
		<pubDate>Sun, 27 May 2007 21:35:17 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Aphrodite]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/05/27/nieuwe-aphrodite.html</guid>
		<description><![CDATA[Vandaag heb ik een oude pc van de buurman gekregen. Een Pentium III 450 Mhz, 128 MB ram, 2 GB harddisk. Niet zo heel lang geleden is een van mij testservers aphrodite overleden, dus ik was wel blij met deze nieuwe testserver. Ik heb er 64 mb ram bij geplaatst en de harddisk vervangen door [...]]]></description>
			<content:encoded><![CDATA[<p>Vandaag heb ik een oude pc van de buurman gekregen. Een Pentium III 450 Mhz, 128 MB ram, 2 GB harddisk. Niet zo heel lang geleden is een van mij testservers aphrodite overleden, dus ik was wel blij met deze nieuwe testserver. Ik heb er 64 mb ram bij geplaatst en de harddisk vervangen door een Seagate 10 GB harddisk. Ook heb ik de cd-rom drive vervangen (die was kapot). Ik heb er <a href="http://www.centos.org">CentOS 4.4</a> opgezet. Ik wil op deze nieuwe aphrodite gaan testen met virtualisatie dmv <a href="http://www.xensource.com">Xen</a>. Ik ben vanplan om morgen Xen 3.1 op deze server te installeren.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/05/27/nieuwe-aphrodite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Idee: Zelf virtuele servers hosten</title>
		<link>http://www.ontwikkelblog.nl/2007/05/07/idee-zelf-virtuele-servers-hosten.html</link>
		<comments>http://www.ontwikkelblog.nl/2007/05/07/idee-zelf-virtuele-servers-hosten.html#comments</comments>
		<pubDate>Mon, 07 May 2007 18:43:21 +0000</pubDate>
		<dc:creator>Maikel Gommans</dc:creator>
				<category><![CDATA[Acropolis]]></category>
		<category><![CDATA[Apollo]]></category>
		<category><![CDATA[Asclepius]]></category>
		<category><![CDATA[Athena]]></category>
		<category><![CDATA[Atlas]]></category>
		<category><![CDATA[Atropos]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xen]]></category>

		<guid isPermaLink="false">http://www.ontwikkelblog.nl/2007/05/07/idee-zelf-virtuele-servers-hosten.html</guid>
		<description><![CDATA[Op dit moment heb ik een vds bij JRonline, namelijk: Acropolis. Dit is een vds met 4 GB harddisk, 512 MB ram, 50 GB traffic, 2 IP&#8217;s, Debian 3.1 Sarge en een DirectAdmin licentie. Dit wordt echter een beetje te klein voor mij, zeker met al die experimenten en fotos. Daarnaast moet ik toch oppassen [...]]]></description>
			<content:encoded><![CDATA[<p>Op dit moment heb ik een vds bij <a href="http://www.jronline.nl">JRonline</a>, namelijk: <a href="http://acropolis.maikelg.net">Acropolis</a>. Dit is een vds met 4 GB harddisk, 512 MB ram, 50 GB traffic, 2 IP&#8217;s, Debian 3.1 Sarge en een DirectAdmin licentie.</p>
<p>Dit wordt echter een beetje te klein voor mij, zeker met al die experimenten en fotos. Daarnaast moet ik toch oppassen wat ik op Acropolis allemaal uitvoer. Alles draait er namelijk op: Websites, Experimenten, <a href="http://www.annab0t.nl">Anna</a>, M&#8217;n IRC server, Foto&#8217;s&#8230;.<br />
Met sommige websites en experimenten loop ik tegen de beperkingen aan die DirectAdmin me oplegt, en sommige dingen zou ik zowizo liever apart draaien, bijv. omdat het veiliger is (IRC server en Anna).</p>
<p><span id="more-10"></span></p>
<p>Nu ben ik me erin gaan verdiepen hoe het met de kosten zit met een compleet eigen server. Na een poos offertes aanvragen en een hoop rekenwerk ben ik tot de conclusie gekomen dat een eigen colocated server al snel goedkoper is, en zoveel meer mogelijkheden bied <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .</p>
<p>De colocation provider en de configuratie van de server staat al redelijk vast:</p>
<p>De colocation provider: <a href="http://www.technotop.nl">Technotop Internet Diensten</a><br />
De configuratie van de server:<br />
Chieftec 1U case UNC-110S-W<br />
Intel Core 2 Duo E4300 1.8 Ghz<br />
Intel S3000AHV server moederbord<br />
4x Corsair 1024MB DDR2 128MX64<br />
2x WesternDigital Caviar SE16 320GB (Software RAID 1)</p>
<p>Op die server (die Atlas zal gaan heten) zal ik dan gebruik maken van Ubuntu 6.06 LTS met Xen 3.1.0 als virtualisatiesoftware.<br />
Hier heb ik inmiddels al meerdere testjes mee gedaan en dat werkt hartstikke goed.<br />
De keuze voor Ubuntu 6.06 LTS is omdat ik vind dat Debian teveel achterblijft met ouwe meuk, en daarnaast is de LTS versie ondersteund tot 2011. Wat natuurlijk wel erg fijn is met een server in een datacenter.</p>
<p>Op die server wil ik dan de volgende virtuele servers voor mezelf draaien:</p>
<p><strong>Asclepius</strong><br />
50 GB harddisk<br />
768 MB RAM<br />
CentOS 4.4<br />
DirectAdmin<br />
<em>Voor de normale websites: De keuze voor CentOS omdat dat beter werkt met DirectAdmin. Ik heb zowel DirectAdmin servers met CentOS als met Debian opgezet. En op CentOS bezorgt het updaten van versies je gewoon veel minder hoofdpijn <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  .</em></p>
<p><strong>Athena</strong><br />
50 GB harddisk<br />
1024 MB RAM<br />
Gentoo 2006.1<br />
<em>Voor Ontwikkelzone, OntwikkelBLOG, database en website van Anna en experimenten ed: De keuze voor Gentoo omdat je het gewoon lekker naar je eigen hand kan zetten. Je kan helemaal zelf opgeven met welke opties je pakketten gecompileert moeten worden ( Portage <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ), en dat is voor een server die toch meer gericht is op de development wel zo leuk. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p><strong>Atropos</strong><br />
5 GB harddisk<br />
256 MB RAM<br />
CentOS 4.4 of Debian 4.0 Etch (daar ben ik nog niet helemaal uit <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' />  )<br />
<em>Voor Anna (de bot zelf), IRC-server, en m&#8217;n bouncer: Lekker gescheiden van de rest. Dit soort dingen zijn toch niet zonder risico. De keuze voor het OS: tjah, CentOS vind ik ook wel fijn, ik zit er aan te denken om Debian er in z&#8217;n geheel uittegooien op Atlas (lees eerder genoemde reden). CentOS heeft langere ondersteuning, maar voor deze VDS is dat niet zo heel noodzakelijk. Ik denk er nog even over na&#8230;. </em></p>
<p>Er is dan ook nog meer dan genoeg ruimte over om kleine test vds-jes te kunnen aanmaken <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Ik ben bezig die installatie uitgebreid te testen. Dat doe ik nu nog op Apollo, maar ik wil binnenkort de hardware gaan bestellen. Ik ben ook bezig met een Traffic manager die het dataverkeer van die vds-en moet gaan meten en het netjes in grafiekjes weer moet geven.</p>
<p>Voordat dat dit helemaal uitgevoerd is zal ik waarschijnlijk heel wat blogjes verder zijn&#8230;.. <img src='http://www.ontwikkelblog.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ontwikkelblog.nl/2007/05/07/idee-zelf-virtuele-servers-hosten.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

