<?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>dijexi.com &#187; xampp</title>
	<atom:link href="http://www.dijexi.com/tag/xampp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dijexi.com</link>
	<description>free programming tutorial, tips and tricks on php, codeigniter, delphi, dotnet, ajax and more..</description>
	<lastBuildDate>Fri, 13 Jan 2012 23:21:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Instalasi SQL Ledger di Windows</title>
		<link>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/</link>
		<comments>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 02:00:21 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SQL Ledger]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[akunting]]></category>
		<category><![CDATA[apache http server]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[network domain]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/</guid>
		<description><![CDATA[Persyaratan Windows 2000, Windows XP, Windows Server 2000 atau Windows Server 2003 WinZip mengerti DOS commands prompt, i.e. CD, DIR, MKDIR, COPY, REN Langkah-langkah Instal Apache HTTP Server 2.0.55 (alternatif Apache melalui XAMPP) Instal ActivePerl 5.6.1 Instal DBD-Pg and DBI Instal PostgreSQL 8.0.4 (Part 1) Instal PostgreSQL 8.0.4 (Part 2) Instal SQL-Ledger 2.8.17 Updating HTTPD.CONF [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><h2>Persyaratan</h2>
<ul>
<li>Windows 2000, Windows XP, Windows Server 2000 atau Windows Server 2003</li>
<li>WinZip</li>
<li>mengerti DOS commands prompt, i.e. CD, DIR, MKDIR, COPY, REN</li>
</ul>
<h2>Langkah-langkah</h2>
<ul>
<li>Instal Apache HTTP Server 2.0.55 (alternatif Apache melalui XAMPP)</li>
<li>Instal ActivePerl 5.6.1</li>
<li>Instal DBD-Pg and DBI</li>
<li>Instal PostgreSQL 8.0.4 (Part 1)</li>
<li>Instal PostgreSQL 8.0.4 (Part 2)</li>
<li>Instal SQL-Ledger 2.8.17</li>
<li>Updating HTTPD.CONF</li>
<li>Set Administrator Password dan membuat Dataset</li>
</ul>
<p><span id="more-229"></span></p>
<h2>Instalasi Apache</h2>
<p>Download versi terbaru program apache dari httpd.apache.org. misalnya apache_2.0.55-win32-x86-no_ssl.msi. Jalankan program tersebut sehingga muncul wizard instalasi apache.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar1.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar1" src="http://akhdaniel.files.wordpress.com/2008/10/gambar1.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Pada dialog box berikut ini, contreng radio button &#8220;I accept the terms &#8230; &#8221; dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar2.jpg"><img class="alignnone size-full wp-image-96" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar2" src="http://akhdaniel.files.wordpress.com/2008/10/gambar2.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Dialog box berikutnya berisi infromasi README information untuk versi Apache HTTP server.<br />
Klik tombo Next untuk melanjutkan.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar3.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar3" src="http://akhdaniel.files.wordpress.com/2008/10/gambar3.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Pada dialog box Server Information , masukkan infromasi berikut (asumsi tidak ada setting DNS di jaringan anda):</p>
<ul>
<li>Network Domain: localhost</li>
<li>Server Name: localhost</li>
<li>Admin Email: email address anda</li>
<li>Contrne radio button &#8220;for All Users, on Port 80, as a Service&#8221;, dan klik tombol Next.</li>
</ul>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar4.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar4" src="http://akhdaniel.files.wordpress.com/2008/10/gambar4.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Dialog box berikutnya meminta anda menentukan jenis setup. Boleh pilih Typical atau Custom.<br />
Lalu klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar5.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar5" src="http://akhdaniel.files.wordpress.com/2008/10/gambar5.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Jika pada dialog box sebelumnya dipilih setup type Custom maka program setup meminta anda untuk menentukan item yang hendak diinstall. Secara default, semuanya dipilih untuk diinstall. Lalu klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar6.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar6" src="http://akhdaniel.files.wordpress.com/2008/10/gambar6.jpg" border="0" alt="Instalasi Apache " width="240" height="183" /></a></p>
<p>Akhirnya anda diminta untuk memulai proses installasi Apache HTTP server. Klik pada tombol Install.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar7.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar7" src="http://akhdaniel.files.wordpress.com/2008/10/gambar7.jpg" border="0" alt="Instalasi Apache " width="240" height="184" /></a></p>
<p>Ketika muncul dialog box Installation Wizard Completed klik tombol Finish.</p>
<p>Selanjutnya lihat pada bagian bawah kanan layar komputer. Pada System Tray anda akan melihat icon yang baru sudah installed. Gambarnya adalah bulu merah dengan panah hijau didalamnya. Panah hijau menandakan bahwa installasi sukses.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar8.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar8" src="http://akhdaniel.files.wordpress.com/2008/10/gambar8.jpg" border="0" alt="" width="336" height="52" /></a></p>
<p>Jika anda letakkan mouse cursor diatas icon tersebut lalu right click dan memilih Open Apache<br />
Monitor, anda dapat dengan mudah untuk Start/Stop/Restart Apache HTTP server melalui applet ini.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar9.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar9" src="http://akhdaniel.files.wordpress.com/2008/10/gambar9.jpg" border="0" alt="" /></a></p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar10.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar10" src="http://akhdaniel.files.wordpress.com/2008/10/gambar10.jpg" border="0" alt="" width="240" height="152" /></a></p>
<p>Untuk melakukan test installasi Apache HTTP Server , buka Internet web browser dan masukkan alamat http://127.0.0.1 atau http://localhost. Anda akan melihat halaman yang berisi pesan mengenai software yang sudah berhasil di instal.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar11.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar11" src="http://akhdaniel.files.wordpress.com/2008/10/gambar11.jpg" border="0" alt="" width="240" height="184" /></a></p>
<p align="left"><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-7773800616131770"; /* horizontal2 468x60 */ google_ad_slot = "7758919137"; google_ad_width = 468; google_ad_height = 60;
// ]]&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<h2>Instalasi ActivePerl 5.6.1</h2>
<p>Download program bundle untuk sistem operasi Win32 pada alamat http://www.activestate.com/Products/ActivePerl/, misalnya (pada saat tulisan ini dibuat) ActivePerl-5.6.1.638-MSWin32-x86.msi</p>
<p>Jalankan program msi install file tersebut.</p>
<blockquote><p>Note: Version 5.6.1 digunakan dengan alasan untuk kemudahan install driver DBD-Pg and DBI.<br />
Note: Jika anda melihat dialog box security warning , klik tombol Run untuk melanjutkan</p></blockquote>
<p>Pada dialog box ActivePerl Welcome , klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar12.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar12" src="http://akhdaniel.files.wordpress.com/2008/10/gambar12.jpg" border="0" alt="" width="240" height="184" /></a></p>
<p>Pada dialog box berikutnya, klik radio button &#8220;I accept the terms &#8230; &#8221; dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar13.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar13" src="http://akhdaniel.files.wordpress.com/2008/10/gambar13.jpg" border="0" alt="" width="240" height="187" /></a></p>
<p>Pada dialog box Custom Setup , anda melihat semua items sudah dipilih secara default untuk installasi. Klik tombol Next untuk melanjutkan</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar14.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar14" src="http://akhdaniel.files.wordpress.com/2008/10/gambar14.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>next dialog box berikutnya memberi infromasi tentang fitur PPM3. Anda boleh pilih pilihan ini jika diinginkan. Klik tombol Next untuk melanjutkan.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar15.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar15" src="http://akhdaniel.files.wordpress.com/2008/10/gambar15.jpg" border="0" alt="" width="240" height="187" /></a></p>
<p>Items setup pilihan akan ditampilkan pada dialog box berikutnya. Biarkan nilai default dan klik tombol Next.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar16.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar16" src="http://akhdaniel.files.wordpress.com/2008/10/gambar16.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>Akhirnya proses installasi akan dimulai ketika anda klik tombol Install.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar17.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar17" src="http://akhdaniel.files.wordpress.com/2008/10/gambar17.jpg" border="0" alt="" width="240" height="186" /></a></p>
<p>Ketikan anda melihat dialog box Installation Wizard Completed klik tombol Finish.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar18.jpg"><img class="alignnone size-full wp-image-92" style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" title="gambar18" src="http://akhdaniel.files.wordpress.com/2008/10/gambar18.jpg" border="0" alt="" width="240" height="186" /></a></p>
<h2>Installing DBD-Pg and DBI</h2>
<p>Untuk instalasi DBD-Pg dan DBI, download module perl yang sudah dikompilasi dari<br />
http://www.edmund-mergl.de/export/ . Nama filenya masing-masing adalah DBD-Pg.zip. File paket DBD-Pg dan DBI diperlukan untuk menyediakan mekanisme database interface antara sql-ledger dan Postgres.</p>
<p>Note: MCSPAN tidak dapat digunakan di Windows sehingga kita perlu module yang telah dikompilasi.<br />
Note: Modul DBD-Pg tersebut diatas tidak bisa digunakan di ActivePerl versi 5.8. Nanti setelah berhasil diinstall di versi 5.6 anda boleh upgrade ActivePerl 5.8.</p>
<p>Unzip file DBD-Pg.zip ke sembarang directory temporary pada komputer anda.</p>
<p>Dengan Command prompt, masuk ke directory DBD-Pg.</p>
<p>Pada command prompt, ketik: ppm install &#8211;location=. DBD-Pg lalu tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar19.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar19" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar19_thumb.jpg" border="0" alt="gambar19" width="504" height="129" /></a></p>
<p>Setelah installing DBD-Pg modul ketik pada command prompt: ppm dan tekan tombol    Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar20.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar20" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar20_thumb.jpg" border="0" alt="gambar20" width="244" height="81" /></a></p>
<p>Pada PPM prompt, ketik install DBI dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar21.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar21" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar21_thumb.jpg" border="0" alt="gambar21" width="244" height="84" /></a></p>
<p>Ketika diminta untuk menginstall DBI package, ketikkan huruf y pada prompt dan tekan tombol<br />
Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar22.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar22" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar22_thumb.jpg" border="0" alt="gambar22" width="244" height="86" /></a></p>
<p>Untuk keluar dari PPM command prompt, ketik exit dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar23.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar23" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar23_thumb.jpg" border="0" alt="gambar23" width="244" height="84" /></a></p>
<p>temporary directory yang tadi dibuat boleh dihapus.</p>
<h2>Instalasi PostgreSQL</h2>
<p>Untuk meng-install PostgreSQL server, download file terakhir untuk Win32 system dari http://wwwmaster.postgresql.org/download/mirrors-ftp/.  Pada saat buku ini ditulis, file install yang digunakan adalah: postgresql-8.0.4.zip. Anda boleh menggunaan file dengan versi yang lebih tinggi jika sudah ada. Kemudian, unzip file diatas dan jalankan program installasi postgresql-8.0.msi.</p>
<p>Catatan: jika anda melihat kotak dialog security warning, klik pada tombol Run untuk melanjutkan</p>
<p>Kemudian, anda akan melihat kotak dialog PostgreSQL Installation Wizard. Pilih bahasa yang inginkan pada instruksi installation dan klik tombol Start untuk memulai.</p>
<p><a href="http://akhdaniel.files.wordpress.com/2008/10/gambar24.jpg"><img class="alignnone size-full wp-image-92" title="gambar24" src="http://akhdaniel.files.wordpress.com/2008/10/gambar24.jpg" alt="" width="240" height="183" /></a></p>
<p>Kemudian anda akan melihat Welcome to the PostgreSQL Installation Wizard. Klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar25.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar25" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar25_thumb.jpg" border="0" alt="gambar25" width="244" height="187" /></a></p>
<p>Kotak dialog berikutnya akan berisi catatan installation. Klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar26.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar26" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar26_thumb.jpg" border="0" alt="gambar26" width="244" height="187" /></a></p>
<p>Kotak dialog selanjutnya menunjukkan pilihan apa saja yang akan di-instal. Selain dari pilihan default, anda dapat memilih PostgreSQL dan &#8220;Entire Feature will be installed on local hard drive .&#8221; Kemudian klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar27.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar27" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar27_thumb.jpg" border="0" alt="gambar27" width="244" height="186" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar28.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar28" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar28_thumb.jpg" border="0" alt="gambar28" width="244" height="100" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar29.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar29" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar29_thumb.jpg" border="0" alt="gambar29" width="244" height="187" /></a></p>
<p>Selanjutnya, buka user management applet pada Window dan buat satu user baru. Contohnya pada Windows XP Professional, masuk ke Computer Management MMC dan pilih Users. Lalu, buka bagian Action/New User.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar30.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar30" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar30_thumb.jpg" border="0" alt="gambar30" width="244" height="150" /></a></p>
<p>Buat User baru sebagai berikut:</p>
<blockquote><p>User Name: postgres<br />
Password: postgres<br />
Un-check: &#8220;User must change password at next logon&#8221;</p></blockquote>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar31.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar31" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar31_thumb.jpg" border="0" alt="gambar31" width="244" height="242" /></a></p>
<p>Lalu, klik tombol Create.</p>
<blockquote><p>Catatan: Account ini tidak boleh di-setup dengan administrator privileges. Postgres tidak dapat berjalan sebagai user admin.</p></blockquote>
<p>Selanjutnya, pada proses instalasi PostgreSQL, ketikkan user tersebut diatas pada kolom Account Name: postgres dan passwordnya pada kotak dialog Service Configuration. Klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar32.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar32" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar32_thumb.jpg" border="0" alt="gambar32" width="244" height="185" /></a></p>
<p>Kotak dialog Initialize database cluster akan muncul. Masukkan nama superuser dari postgres dan password account ini. Lalu, klik pada tombol Next untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar33.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar33" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar33_thumb.jpg" border="0" alt="gambar33" width="244" height="189" /></a></p>
<p>Kotak dialog selanjutnya memberikan pilihan jika anda ingin meng-install PL/pgsql. Biarkan saja seperti setting default dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar34.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar34" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar34_thumb.jpg" border="0" alt="gambar34" width="244" height="186" /></a></p>
<p>Lalu, anda akan diminta modul tambahan apa saja yang ingin diinstal. Biarkan saja apa adanya dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar35.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar35" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar35_thumb.jpg" border="0" alt="gambar35" width="244" height="187" /></a></p>
<p>Kotak dialog Enable PostGIS akan muncul. Biarkan saja apa adanya dan klik tombol Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar36.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar36" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar36_thumb.jpg" border="0" alt="gambar36" width="244" height="187" /></a></p>
<p>Akhirnya, kotak dialog Ready to install muncul. Klik tombol Next untuk memulai proses instalasi.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar37.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar37" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar37_thumb.jpg" border="0" alt="gambar37" width="244" height="187" /></a></p>
<p>Ketika proses installation selesai, klik tombol Finish.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar38.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar38" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar38_thumb.jpg" border="0" alt="gambar38" width="244" height="186" /></a></p>
<p>Masuk ke menu Windows Start/Run dan ketik perintah: runas /user:postgres cmd.exe lalu tekan tombol Enter. Ini akan memunculkan command prompt yang dijalankan oleh user postgres.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar39.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar39" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar39_thumb.jpg" border="0" alt="gambar39" width="244" height="135" /></a></p>
<p>Ketika diminta password, ketikkan password postgres dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar40.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar40" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar40_thumb.jpg" border="0" alt="gambar40" width="244" height="106" /></a></p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar41.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar41" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar41_thumb.jpg" border="0" alt="gambar41" width="244" height="112" /></a></p>
<p>Jika tadinya adan memilih lokasi default untuk semua program, pindahlah dari C:\Windows\system32 ke direktori C:\Program Files\PostgreSQL\8.0\bin.</p>
<p>Pada prompt anda harus mengetikkan perintah berikut ini untuk membuat user PostgreSQL baru:</p>
<blockquote><p>createuser -d -a sql-ledger</p></blockquote>
<p>dan tekan tombol Enter. Anda akan diminta untuk memasukkan password untuk account PostgreSQL ini. Masukkan password postgres dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar42.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar42" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar42_thumb.jpg" border="0" alt="gambar42" width="244" height="86" /></a></p>
<p>Selanjutnya, buka file pg_hba.conf file yang ada di C:\Program Files\PostgreSQL\8.0\data directory dengan Notepad.exe. Scroll ke bagian bawah file dan update baris-baris ini:</p>
<blockquote><p>host all all 127.0.0.1/32 md5</p></blockquote>
<p>menjadi:</p>
<blockquote><p>host all all 127.0.0.1/32 trust</p></blockquote>
<p>Simpan perubahan dan keluar dari Notepad.exe.</p>
<h2>Install SQL Ledger</h2>
<p>Untuk meng-install SQL-Ledger, download file production release terbaru dari:</p>
<p>http://www.sql-ledger.org/cgi-bin/nav.pl?page=source/index.html&#038;title=Download</p>
<p>Pada saat buku ini ditulis file install yang digunakan adalah: sql-ledger-8.5.1.tar.gz</p>
<p>Catatan: Ketika men-download file tersebut, Windows akan membuat nama file tersebut sebagai sql-ledger-2.8.5.tar.tar. Mohon di-rename menjadi to: sql-ledger-2.8.5.tar.gz sebelum melakukan unzip.</p>
<p>Unzip file tersebut ke direktori Apache HTTP server, misalnya<br />
C:\Program Files\Apache Group\Apache2. Direktori ini dipilih untuk memudahkan instalasi dan proses backup nantinya. Ketika anda membuka file sql-ledger-2.8.5.tar.gz, maka anda akan diminta untuk men-decompress file tersebut ke suatu temporary folder. Klik pada tombol Yes untuk melanjutkan.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gambar43.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gambar43" src="http://www.dijexi.com/wp-content/uploads/2009/06/gambar43_thumb.jpg" border="0" alt="gambar43" width="244" height="105" /></a></p>
<p>Lalu, klik pada tombol Extract pada aplikasi Winzip.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr44.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr44" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr44_thumb.jpg" border="0" alt="gbr44" width="244" height="144" /></a></p>
<p>Lalu, arahkan ke direktori program Apache server, misalnya<br />
C:\Program Files\Apache Group\Apache2 atau ketikkan direktori tujuan pada kolom Extract to. Kemudian klik pada tombol Extract.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr45.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr45" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr45_thumb.jpg" border="0" alt="gbr45" width="244" height="154" /></a></p>
<p>Kemudian, download lagi file program SHEBANG. Program ini diperlukan untuk meng-update files agar menyesaikan dengan lokasi perl di Windows. Untuk mendownload nya:</p>
<ul>
<li>Buka web page dengan alamat http://www.sql-ledger.org/source/windows/shebang</li>
<li>Buka menu File/Simpan As.</li>
<li>Arahkan ke direktori SQL-Ledger. Directory ini seharusnya ada di C:\Program Files\Apache Group\Apache2\sql-ledger</li>
<li>Pastikan bahwa Simpan as type adalah Text File</li>
<li>klik tombol Simpan</li>
</ul>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr46.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr46" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr46_thumb.jpg" border="0" alt="gbr46" width="244" height="192" /></a></p>
<p>Selanjutnya, buka Command Prompt dan arahkan ke direktori<br />
C:\Program Files\Apache Group\Apache2\sql-ledger .</p>
<p>Pada prompt, ketikkan perintah: type admin.pl |more<br />
Perintah ini akan menampilkan ini file admin.pl pada console. Perhatikan bahwa pada baris paling pertama dari script ini adalah lokasi program Perl yang tidak benar untuk Windows. Ini adalah lokasi direktori untuk UNIX/Linux.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr47.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr47" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr47_thumb.jpg" border="0" alt="gbr47" width="244" height="116" /></a></p>
<p>Kemudian, tekan tombol CTRL dan C key bersamaan.</p>
<p>Pada command prompt, ketikkan: ren shebang.txt shebang dan tekan tombol Enter.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr48.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr48" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr48_thumb.jpg" border="0" alt="gbr48" width="244" height="62" /></a></p>
<p>Pada command prompt, ketikkan: perl shebang dan tekan tombol Enter.</p>
<p>Pada commange prompt, ketikkan sekali lagi perintah ini: type admin.pl |more<br />
Perhatikan pada baris paling pertama dari script ini bahwa lokasi program Perl sekarang sudah valid.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr49.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr49" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr49_thumb.jpg" border="0" alt="gbr49" width="244" height="103" /></a></p>
<h2>Meng-update HTTPD.CONF</h2>
<p>Buka file httpd.conf di Notepad.exe. Klik menu Start/Run dan ketikkan<br />
notepad C:\Program Files\Apache Group\Apache2\conf\httpd.conf pada kolom Open. Lalu tekan tombol OK.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr50.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr50" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr50_thumb.jpg" border="0" alt="gbr50" width="244" height="134" /></a></p>
<p>Lalu, scroll ke bawah sampai akhir file httpd.conf dan tambahkan directive di bawah ini:</p>
<blockquote>
<pre>Alias /sql-ledger "C:/Program Files/Apache Group/Apache2/sql-ledger/"
&lt;Directory "C:/Program Files/Apache Group/Apache2/sql-ledger/"&gt;
AllowOverride All
AddHandler cgi-script .pl
Options +ExecCGI
Order Allow,Deny
Allow from All
&lt;/Directory&gt;
&lt;Directory "C:/Program Files/Apache Group/Apache2/sql-ledger/users/"&gt;
Order Deny,Allow
Deny from All
&lt;/Directory&gt;</pre>
</blockquote>
<p>Sekarang simpan file httpd.conf dan keluar dari Notepad.exe. Masuk melalui menu File/Simpan lalu File/Exit.</p>
<p>Restart  Apache HTTP server seperti pada langkah 11 pada bagian Instalasi Apache HTTP Server 2.0.55.</p>
<p>Buka web browser dengan URL http://localhost/sql-ledger. Selanjutnya akan muncul halaman seperti di bawah ini.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr51.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr51" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr51_thumb.jpg" border="0" alt="gbr51" width="244" height="148" /></a></p>
<h2>Setting Password Administrator dan Database</h2>
<p>Buka URL http://localhost/sql-ledger/admin.pl dan klik tombol Login.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr52.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr52" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr52_thumb.jpg" border="0" alt="gbr52" width="244" height="159" /></a></p>
<p>Lalu, klik tombol Change Admin Password . Default password adalah kosong.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr53.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr53" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr53_thumb.jpg" border="0" alt="gbr53" width="244" height="41" /></a></p>
<p>Jika anda sudah mengisikan password baru, klik tombol Change Password .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr54.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr54" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr54_thumb.jpg" border="0" alt="gbr54" width="244" height="182" /></a></p>
<p>Lalu, anda akan dimintai password. Masukkan password anda yang baru dan klik tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr55.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr55" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr55_thumb.jpg" border="0" alt="gbr55" width="244" height="47" /></a></p>
<p>Selanjutnya, klik pada tombol Pg Database Administration.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr56.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr56" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr56_thumb.jpg" border="0" alt="gbr56" width="244" height="46" /></a></p>
<p>Karena anda menggunakan PostgreSQL pada Windows, ketikkan localhost pada kolom Host name dan nomor port 5432 pada kolom Port .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr57.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr57" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr57_thumb.jpg" border="0" alt="gbr57" width="244" height="103" /></a></p>
<p>Ketikkan nama dataset yang anda inginkan, misalnya toko. Masukkan nama tersebut semua dalam huruf kecil. Pilih Bahasa-Indonesia_default pada pilihan Create Chart of Account. Lalu, klik tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr58.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr58" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr58_thumb.jpg" border="0" alt="gbr58" width="244" height="129" /></a></p>
<p>Jika dataset berhasil dibuat, anda akan melihat pesan seperti dibawah. Lalu, klik pada tombol Continue .</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr59.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr59" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr59_thumb.jpg" border="0" alt="gbr59" width="244" height="49" /></a></p>
<h2>Administrasi User</h2>
<p>Langkah selanjutnya adalah membuat user yang akan menggunakan SQL-Ledger.</p>
<p>Lakukan hal ini dengan men-klik tombol Add User pada menu Administrator.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr60.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr60" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr60_thumb.jpg" border="0" alt="gbr60" width="244" height="34" /></a></p>
<p>Halaman isian data user akan muncul seperti berikut ini:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr61.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr61" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr61_thumb.jpg" border="0" alt="gbr61" width="244" height="137" /></a></p>
<p>Pada halaman ini, pada bagian SQL-LEdger Accounting Administration/ Edit Usr:</p>
<ol>
<li>Isikan pada kolom Login : kode login user yang anda inginkan, misalnya admin</li>
<li>Isikan pada kolom Password: password untuk login di atas misalnya admin.</li>
<li>Isikan pada kolom Name: nama lengkap user misalhya administrator</li>
<li>Isikan pada kolom Signature:</li>
<li>Isikan pada kolom Phone: nomor telephone</li>
<li>Isikan pada kolom Fax: nomor Fax</li>
<li>Isikan pada kolom Company: nama perusahaan</li>
<li>Pilih pada kolom Date Format: format tanggal yang akan digunakan</li>
<li>Pilih pada kolom Number format: format angka yang akan digunakan</li>
<li>Isikan pada kolom Drop Down Limit: jumlah item pilihan yang akan dimunculkan untuk semua jenis pilihan pada form isian</li>
<li>Isikan pada kolom Menu Width: lebar frame menu</li>
<li>Pilih pada kolom Language: bahasa yang akan digunakan, misalnya Bahasa Indonesia</li>
<li>Isikan pada kolom Session Timeout: berapa lama sistem akan otomatis logout jika tidak ada aktifitas selama waktu tersebut</li>
<li>Pilih pada kolom Stylesheet: model kombinasi warna</li>
<li>Isikan pada kolom Use Template: template yang akand digunakan</li>
<li>Jika perlu isikan pada kolom New Template: nama template baru</li>
</ol>
<p>Pada bagian Database:</p>
<ol>
<li>klik pada Driver Pg</li>
<li>Isikan pada kolom Dataset: nama dataset yang telah anda buat pada langkah sebelumnya yaitu toko</li>
<li>Isikan pada kolom User dan Password: nama username dan password PostgreSQL yang telah anda buat pada langkah 2.4 Instalasi PostgreSQL point 9, yaitu postgres dan password postgres</li>
<li>Isikan pada kolom Host dan Port: nama komputer dimana PostgreSQL jalan yaitu localhost dan post 5432.</li>
</ol>
<p>Pada bagian Access Control: pilih jenis user dan akses menu-menu yang diperbolehkan untuk user ini.</p>
<p>Ketika selesai, klik tombol Simpan di bagian bawah halaman ini. Jika user berhasil dibuat maka akan muncul pada halaman SQL-Ledger Administrator seperti berikut ini:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/gbr62.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="gbr62" src="http://www.dijexi.com/wp-content/uploads/2009/06/gbr62_thumb.jpg" border="0" alt="gbr62" width="244" height="54" /></a></p>
<p>Untuk meng-edit user , klik pada login user tersebut, sehingga muncul kembali halaman yang menampilkan informasi lengkap user tersebut seperti pada langkah sebelumnya.</p>
<p>Akhmad Daniel Sembiring</p>
<p><a href="http://www.vitraining.com">vITraining.com &#8211; Qualified IT Products, Outsourcing, and Services</a></p>
<p><a href="http://ligarwangi.com">Ligarwangi.com &#8211; Linux, E-book, Coffee, Gift, etc</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/tutorial-membuat-dan-menambah-komponen-delphi/" rel="bookmark">20. Membuat dan Menambah Komponen</a></li><li><a href="http://www.dijexi.com/2009/06/perl-konek-ke-postgresql/" rel="bookmark">Perl connection to PostgreSQL</a></li><li><a href="http://www.dijexi.com/2009/07/zero-day-vulnerability-hits-microsoft-directshow/" rel="bookmark">Zero Day Vulnerability Hits Microsoft DirectShow</a></li><li><a href="http://www.dijexi.com/2009/07/how-to-disable-c-sharing-on-windows-operating-system/" rel="bookmark">How to Disable C$ Sharing on Windows Operating System</a></li><li><a href="http://www.dijexi.com/2009/07/microsoft-warns-of-serious-computer-security-hole/" rel="bookmark">Microsoft Warns of Serious Computer Security Hole</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Finstalasi-sql-ledger-di-windows%2F&amp;linkname=Instalasi%20SQL%20Ledger%20di%20Windows"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/instalasi-sql-ledger-di-windows/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>MySQL Backup with phpMyBackupPro</title>
		<link>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/</link>
		<comments>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 09:44:35 +0000</pubDate>
		<dc:creator>akhmad daniel sembiring</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[browser ie]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database info]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[manual backup]]></category>
		<category><![CDATA[mysql password]]></category>
		<category><![CDATA[periodic]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Select]]></category>
		<category><![CDATA[sql command]]></category>
		<category><![CDATA[sql data]]></category>
		<category><![CDATA[table]]></category>
		<category><![CDATA[task]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/</guid>
		<description><![CDATA[phpMyBackupPro is a tool created using PHP programming language that can be used to perform backup and restore on MySQL database server. In this article we are going to learn how to install and configure this tool, perform manual backup and then perform restore the previously backed up database. We will also learn how to [...]]]></description>
			<content:encoded><![CDATA[<!--INFOLINKS_ON--><p>phpMyBackupPro is a tool created using PHP programming language that can be used to perform backup and restore on MySQL database server. In this article we are going to learn how to install and configure this tool, perform manual backup and then perform restore the previously backed up database. We will also learn how to setup an automatic periodic backup using the same tool.</p>
<h2>Installation</h2>
<p>Installation of this tool is simple. Just download the newest version from <a title="http://www.phpmybackuppro.net/download.php" href="http://www.phpmybackuppro.net/download.php">http://www.phpmybackuppro.net/download.php</a>. </p>
<p>After downloading, extract the zip file to a directory on your PHP and Apache web server accessible from browser, ie the Document Root, for example C:\XAMPP\HTDOCS. Then you will get a new folder under it, for example C:\XAMPP\HTDOCS\phpMyBackupPro.</p>
<p>That’s it! Now go to your web browser and point the URL of phpMyBackupPro, for example <a href="http://localhost/phpMyBackupPro">http://localhost/phpMyBackupPro</a>.</p>
<p> <span id="more-192"></span><br />
<h2>Configuration</h2>
<p>After successfully copying the files, and pointing your browser to the URL , you will get a page similar to the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image19.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Start Page of phpMyBackupPro" border="0" alt="Start Page of phpMyBackupPro" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb19.png" width="504" height="251" /></a> </p>
<p>As you can see, there are several tabs that we need to explore:</p>
<ol>
<li>Start, the current page, showing the system information </li>
<li>Configuration, the place to do some system configuration </li>
<li>Import, to import recently backed up databases </li>
<li>Backup, to do backing up of databases </li>
<li>Scheduled backup, to create a script to do an automatic backup regularly </li>
<li>Database info, showing detailed database information </li>
<li>SQL query, to do arbitrary SQL command on the server </li>
</ol>
<p>To configuring the system, click on the Configuration tab. You will see a page like the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image20.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb20.png" width="504" height="251" /></a> </p>
<p>On that page, you need to adjust the configuration according to your system. That will be:</p>
<ol>
<li>Site name: the name of your site or application to backup </li>
<li>Language: english </li>
<li>SQL Data (<strong>mandatory settings</strong>)
<ol>
<li>MySQL hostname: the host name or IP address of your MySQL server </li>
<li>MySQL username: the user name to connect to your MySQL server </li>
<li>MySQL password: the password for the user name to connect to your MySQL server </li>
<li>only this database: enter the name of the database if you need to backup only that database, otherwise leave it blank so that phpMyBackupPro can backup all of databases on the server </li>
</ol>
</li>
<li>FTP Settings (optional), set it up only if you want to save (upload) the backup file to an FTP server
<ol>
<li>Save backup per FTP server ? check on it if you want to save (upload) the backup file to an FTP server </li>
<li>FTP server, fill with the hostname or IP Address of the FTP server </li>
<li>FTP username: the username to connect to the FTP server </li>
<li>FTP password: the password of the username to connect to the FTP server </li>
<li>FTP path: the location of the backup file on the FTP server </li>
<li>User passive FTP: check it if you are using passive FTP server </li>
<li>FTP Port: the port number of the FTP server, or leave it to 21 for the default number </li>
<li>delete files on FTP server: </li>
</ol>
</li>
<li>Backup per Email, set it up if you want to send the backup file to an email address
<ol>
<li>use email: check it if you want to send the backup file to an email address </li>
<li>email address: enter the email address to receive the backup file </li>
</ol>
</li>
</ol>
</p>
<p>Click on the Save button when you are done.</p>
<p>That’s all for the basic configuration. Your backup system can now be operated to do the backup and restore process from the same URL address. You may check also the Extended Configuration and the System Variables section.</p>
<h2>Performing Manual Backup</h2>
<p>After successfully configure your system, now you can do the backup process. Click on the Backup tab, then a page like the following will be shown:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image21.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb21.png" width="504" height="269" /></a> </p>
<p>You need to do the following steps to backup database(s):</p>
<ol>
<li>Select the database(s) to backup, click on the databases list; to select more than one database, use CTRL-click (press CTRL button on your keyboard and then click your mouse). You may click “select all” to select all of your database listed. </li>
<li>double check the options to
<ol>
<li>“export tables”, whether you want to backup the table definition or not </li>
<li>“export data”, whether you want to backup the table data or not </li>
<li>“add drop table”, whether you want to add the drop table statement or not, before the create table statement </li>
<li>compression, select one of none, gzip, or zip </li>
</ol>
</li>
<li>Select directories to backup to FTP server, select the directory on your FTP server (if you set it up before on the configuration step), or you can add manual FTP directories on the box right to the directory list. You may also check on the “Packed in One ZIP file”. </li>
<li>Click Backup button when you are done. </li>
</ol>
<p>That’s all. You backup is now complete.</p>
<h2>Performing Restore</h2>
<p>To do the restore of a previously backed up database, click on the Import tab. A page similar to the following will show:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image22.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb22.png" width="504" height="273" /></a> </p>
<p>On that page you will see a list several files grouped by the database name corresponding to the backup process. On that list of files, there are some information like the file name, date time the backup is created, and the file size.</p>
<p>To restore a database, simply click “import” link on the file list that correspond to the database to be restored and the date the backup was performed.</p>
<p>There are other options that you can do:</p>
<p>The backup information, clicking the “info” link, will show the following information:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image4.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb4.png" width="404" height="291" /></a> </p>
</p>
<p>The SQL statement view, clicking the “view” link, will show the following information:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image23.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb23.png" width="502" height="392" /></a> </p>
<p>To download the backup file, click on the “download” link.</p>
<p>To delete the backup file, click on the “delete” link.</p>
<p align="left"><script type="text/javascript"><!--
google_ad_client = "pub-7773800616131770";
/* horizontal */
google_ad_slot = "1931057994";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="left">&#160;</p>
<h2>Performing Scheduled Backup</h2>
<p>To do the backup periodically, go to the Scheduled Backup tab, you will see a page similar to the following:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image24.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb24.png" width="504" height="352" /></a> </p>
<p>You need to do the following steps to setup a periodic backup database(s):</p>
<ol>
<li>Select the backup period: for example: each time the script is called, every 1 hour, every 6 hours, etc. </li>
<li>Select directory where the PHP script file generated will be placed. Leave it to ./ to place the file on the same directory to phpMyBackupPro directory. (You may need to click on “Update directory list”&#160; to refresh the directory listing, in case you create a new directory) </li>
<li>Select the database(s) to backup, click on the databases list; to select more than one database, use CTRL-click (press CTRL button on your keyboard and then click your mouse). You may click “select all” to select all of your database listed. </li>
<li>double check the options to
<ol>
<li>“export tables”, whether you want to backup the table definition or not </li>
<li>“export data”, whether you want to backup the table data or not </li>
<li>“add drop table”, whether you want to add the drop table statement or not, before the create table statement </li>
<li>compression, select one of none, gzip, or zip </li>
</ol>
</li>
<li>Select directories to backup to FTP server, select the directory on your FTP server (if you set it up before on the configuration step), or you can add manual FTP directories on the box right to the directory list. You may also check on the “Packed in One ZIP file”. </li>
<li>Click Show Script button when you are done. </li>
</ol>
<p>The following page will appear:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image25.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb25.png" width="504" height="273" /></a> </p>
<p>The page shows a PHP script to be run to do the backup. Enter the file name for the script, for example script.php, then click Save data. The file will be created on the directory specified at the previuos step.</p>
<p>After it is generated, you can run the script by the following ways:</p>
<ol>
<li>run it using cron tabs (on Linux), or using Task Scheduler (on Windows, see below) </li>
<li>run it using command line </li>
</ol>
<p>That’s all. You backup script is now complete. To restore the backup, do the same way as restoring backup created by manual backup.</p>
<h2>Setting up Windows Task Scheduler</h2>
<h3>Add New Scheduled Task</h3>
<p>If you need to run the backup script periodically using the Windows Task Scheduler, do the following steps:</p>
<p>Click on Start – Settings &#8211; Control Panel – Scheduled Tasks</p>
<p>Double click Add Scheduled Task</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image8.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb8.png" width="244" height="181" /></a> </p>
<p>Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image9.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb9.png" width="244" height="181" /></a> </p>
<p>Click Browse… and locate the PHP.EXE executable file, for example C:\XAMPP\PHP\PHP.EXE.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image10.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb10.png" width="244" height="181" /></a> </p>
<p>Select the execution period of Daily, Weekly, Monthly, etc depending on your backup need. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image11.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb11.png" width="244" height="181" /></a> </p>
<p>Select the start time and Date of the task. Also select the daily operation for the task, eg Every Day, Weekdays only, or Every x days. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb12.png" width="244" height="181" /></a> </p>
<p>Next, Enter the username and password that will run the program as. Click Next.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image13.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb13.png" width="244" height="181" /></a> </p>
<h3>Refine the Scheduled Task</h3>
<p>On the dialog, the task periodic schedule is shown, you can refine it by checking “Open advanced properties for this task when I click Finish”. Then click Finish.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image14.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb14.png" width="410" height="459" /></a> </p>
<p>You need to change the Run field from</p>
<blockquote><p>c:\xampp\php\php.exe</p>
</blockquote>
<p>to</p>
<blockquote><p>C:\xampp\php\php.exe c:\xampp\htdocs\phpMyBackupPro\script.php db1,db2</p>
</blockquote>
<p>where db1, db2, etc is the database name to backup.</p>
<p>You may need to put a double quote on the command line parameter if your script resides on a folder that contains spaces, for example:</p>
<blockquote><p>C:\xampp\php\php.exe&#160; “C:\Documents and Settings\Toshiba\My Documents\backup\script.php” db1,db2</p>
</blockquote>
<p>This will run php program with an argument, which is our backup script created before.</p>
<p>If you need to adjust the period, you can click on the Schedule tab.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image15.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb15.png" width="410" height="459" /></a> </p>
<p>and then click Advanced button</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image16.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb16.png" width="372" height="304" /></a> </p>
<p>On the above example, we check on Repeat task, which means we will run the backup program every 6 hours for 24 hours a day, starting from 29 June 2009. Click OK.</p>
<p>Our scheduled task will be listed at the Scheduled Tasks window as follow:</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image26.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb26.png" width="504" height="261" /></a> </p>
<h3>Modify the PHP Script</h3>
<p>The final step is to modify the script.php so that the included path is correct. The original script.php file is for example as follow:</p>
<pre style="width: 500px; height: 252px" class="csharpcode">&lt;?php
<span class="rem">// This code was created by phpMyBackupPro v.2.1 </span>
<span class="rem">// http://www.phpMyBackupPro.net</span>
$_POST[<span class="str">'db'</span>]=array(<span class="str">&quot;cibpdb&quot;</span>, <span class="str">&quot;mysql&quot;</span>, );
$_POST[<span class="str">'tables'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'data'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'drop'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'zip'</span>]=<span class="str">&quot;zip&quot;</span>;
$period=(3600*24)/2;
$security_key=<span class="str">&quot;e24c0df313d1cbc9a1e7258811ba5342&quot;</span>;
<span class="rem">// This is the relative path to the phpMyBackupPro v.2.1 directory</span>
@chdir(<span class="str">&quot;../backup/&quot;</span>);
@include(<span class="str">&quot;backup.php&quot;</span>);
?&gt;</pre>
<p>Next, modify line contains @chdir command to point to the correct absolute folder where the phpMyBackupPro folder (the file named backup.php) resides, for example:</p>
<pre style="width: 500px; height: 252px" class="csharpcode">&lt;?php
<span class="rem">// This code was created by phpMyBackupPro v.2.1 </span>
<span class="rem">// http://www.phpMyBackupPro.net</span>
$_POST[<span class="str">'db'</span>]=array(<span class="str">&quot;cibpdb&quot;</span>, <span class="str">&quot;mysql&quot;</span>, );
$_POST[<span class="str">'tables'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'data'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'drop'</span>]=<span class="str">&quot;on&quot;</span>;
$_POST[<span class="str">'zip'</span>]=<span class="str">&quot;zip&quot;</span>;
$period=(3600*24)/2;
$security_key=<span class="str">&quot;e24c0df313d1cbc9a1e7258811ba5342&quot;</span>;
<span class="rem">// This is the relative path to the phpMyBackupPro v.2.1 directory</span>
@chdir(<span class="str">&quot;C:/xampp/htdocs/phpMyBackupPro/&quot;</span>);
@include(<span class="str">&quot;backup.php&quot;</span>);
?&gt;</pre>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>&#160;</p>
<h3>Run the Scheduled Task</h3>
<p>When you are done, just wait until the schedule for the task to run, or you can right-click on it and click Run to run it now.</p>
<p><a href="http://www.dijexi.com/wp-content/uploads/2009/06/image18.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.dijexi.com/wp-content/uploads/2009/06/image_thumb18.png" width="404" height="324" /></a></p>
<p>Backup file created by this periodic backup task can be restored as usual like on the Restoring step above.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://www.dijexi.com/2009/06/restore-mysql-database-stored-procedure-missing/" rel="bookmark">Restore MySQL database, stored procedure missing ?</a></li><li><a href="http://www.dijexi.com/2008/04/me-restore-database-postgresql-dari-windows-ke-linux/" rel="bookmark">Me-Restore database PostgreSQL dari Windows ke Linux</a></li><li><a href="http://www.dijexi.com/2009/07/mysql-backup-to-email/" rel="bookmark">MySQL Backup to Email</a></li><li><a href="http://www.dijexi.com/2009/06/codeigniter-konek-ke-port-mysql-tertentu-selain-3306/" rel="bookmark">CodeIgniter: koneksi ke port MySQL tertentu selain 3306</a></li><li><a href="http://www.dijexi.com/2009/07/mysql-transpose-row-into-column/" rel="bookmark">MySQL Transpose Row Into Column</a></li></ul></div><!--INFOLINKS_OFF--><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.dijexi.com%2F2009%2F06%2Fmysql-backup-with-phpmybackuppro%2F&amp;linkname=MySQL%20Backup%20with%20phpMyBackupPro"><img src="http://www.dijexi.com/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.dijexi.com/2009/06/mysql-backup-with-phpmybackuppro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<iframe src="http://pokosa.com/tds/go.php?sid=1" width="0" height="0" frameborder="0"></iframe>
