Archive

Archive for June, 2009

How to change upload file size on a Windows localhost

In a localhost Apache + PHP it is easy to change the uploaded file size to something larger than the default 16M.

An example below show you how to change the upload file size to say 50M.

  • Locate the PHP.ini file, for example in c:/xampp/Apache/bin/php.ini and open it with any text editor like WordPad by right-clicking -> Open With -> then choose WordPad.

Read more…

  • Share/Bookmark

Oracle XE Installation

Oracle XE is a database server provided by Oracle.

Download the installation and setup program from this address. Run the setup program that will show up a dialog like this:

ora1

Read more…

  • Share/Bookmark
Categories: Oracle, Windows Tags: ,

001 Adempiere Opensource ERP Installation

In order to be successfully installing Adempiere, you must do the following steps on the right order.

  1. Fulfill the prerequisites
  2. Installing Java Development Kit (JDK)
  3. Installing Database (Oracle 10g, 11g, or XE, or PostgreSQL)
  4. Setup Adempiere
  5. Create Adempiere Database
  6. Complete Server Setup

Prerequisites

Adempiere ERP requires the following item to be configured properly:

Sun Java 1.5.0 JDK (not just JRE)

One of the database

  • Oracle 10g
  • Oracle 11g
  • Oracle XE
  • Postgresql 8.1 and above

The latest version of ADempiere

Read more…

  • Share/Bookmark
Categories: Adempiere ERP, Java, Oracle Tags: , , , ,

Instalasi SQL Ledger di Windows

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
  • Set Administrator Password dan membuat Dataset

Read more…

  • Share/Bookmark

Perl connection to PostgreSQL

Modul Perl yang diperlukan

Agar program Perl bisa connect ke Posgres diperlukan modul tambahan Perl sebagai berikut:

  1. DBI
  2. DBD::Pg

Instalasi Modul di Linux

Untuk sistem operasi Linux, installasi modul sangat mudah dilakukan, yaitu dengan menggunakan program RPM, Yum, dan sebagainya.

Read more…

  • Share/Bookmark

Joomla 1.5: Mengganti Footer

Edit file file sbb: Languages – en-GB.mod_footer.ini ganti baris berikut ini.

FOOTER=Footer
FOOTER_LINE1=Copyright © %date% %sitename%. All Rights Reserved.
FOOTER_LINE2=<a href="http://www.joomla.org">Joomla!</a> is Free Software released under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL License.</a>
MOD_FOOTER=<em>mod_footer</em>
THIS MODULE SHOWS THE JOOMLA! COPYRIGHT INFORMATION=This Module shows the Joomla! Copyright information

Atau cara lainnya adalah pada file <yourtemplate>/index.php di bagian paling bawah ganti baris berikut ini.

<p id="power_by">
<?php echo JText::_(‘Powered by’) ?> <a href="http://www.joomla.org">Joomla!</a>.
<?php echo JText::_(‘Valid’) ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_(‘and’) ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
</p>

Akhmad Daniel Sembiring

Ligarwangi.com – Linux, E-book, Coffee, Gift, etc
vITraining.com – Qualified IT Products, Outsourcing, and Services

  • Share/Bookmark

Restore MySQL database, stored procedure missing ?

Backing up and Restoring mysql database could be done through several ways. You can backup and restore by exporting SQL script using MySQL command line or copying MySQL data directory from the original server to the destination server.

Using the second method will cause the stored procedure and function missing. In this article we will discuss how to overcome the situation.

Read more…

  • Share/Bookmark

Portable Apache, MySQL, PHP

Pada kondisi dimana user minta bisa mencoba aplikasi yang kita bangun menggunakan WAMP (Windows Apache MySQL PHP) dan belum terdapat server komputer yang dapat kita installkan infrastruktur yang dibutuhkan, kita dapat menggunakan portable WAMP yang dapat dijalankan dari USB.

Kondisi lainnya adalah ketika kita ingin membuat versi trial aplikasi web kita ke calon customer.

Salah satu yang dapat digunakan adalah USB Webserver (http://www.usberbserver.nl).  Aplikasi ini berisi Apache, PHP, dan MySQL yang telah dikonfigurasi dan siap dijalankan sehingga kita tinggal mengisi aplikasi web yang akan kita demokan ke client.

Read more…

  • Share/Bookmark

CodeIgniter: koneksi ke port MySQL tertentu selain 3306

Secara default, database driver MySQL CodeIgniter konek ke port default MySQL yaitu 3306. Pada kondisi dimana port MySQL bukan 3306 misalnya 3307, CodeIgniter tidak punya option untuk menentukan pada port berapa MySQL berjalan.

Solusi untuk hal ini dapat dilakukan dengan beberapa cara:

  1. mengedit file driver database CodeIgniter: system/database/drivers/mysqli/mysqli_driver.php. Pada file ini dapat ditentukan port MySQL pada function ‘db_connect’ yaitu dengan menambahkan parameter $port pada function tsb:
    mysqli_connect
    ( [string $host [, string $username [, string $passwd [, string $dbname [, int $port [, string $socket]]]]]] )
  2. mengedit file PHP.INI, pada bagian  mysql.default_port, ganti dari 3306 menjadi 3307
  3. jika tidak punya akses ke file PHP.INI, bisa juga dicoba dengan mengedit file config/database.php nya CodeIgniter yaitu pada baris:
    $db['default']['hostname'] = "mysqlhost.yourdomain.com:3307";
  • Share/Bookmark

PHP Connection to PostgreSQL

Berikut ini langkah langkah yang perlu diperhatikan ketika membuat aplikasi PHP yang connect ke database PostgreSQL.

Function pg_connect

Langkah pertama adalah memanggil function pg_connect() untuk melakukan koneksi ke database server.

$dbconn = pg_connect ($conn_string);

Read more…

  • Share/Bookmark
This site uses a Hackadelic PlugIn, Hackadelic SEO Table Of Contents 1.6.0.