Rabu, 15 Mei 2013

Configurasi DATABASE Oracle dengan PHP



Berikut ini urutan dan configurasi dari software dan file :
A.      Software  :
Ø  Apache/XAMPP
1. Jalankan file httpd-2.2.16-win32-x86-openssl-0.9.8o
2. Pada ND dan SD isi/ketik localhost  dan pada Admin ‘s Email Address
                   isi/ketik   me@localhost, kemudian pilih/klik opsi “for all users”
3. Change Folder menjadi c:\Apache2.2\
4.  OK & FINISH

Ø  NOTEPAD ++
Jalankan file npp.6.2.3.Installer

Ø  ORACLE XE
1.       Jalankan file oracleXEUniv.exe
2.       Hilangkan tanda  checklist  pada opsi Launch the Database homepage
3.       TEST ING or  Exerciseà  Login : system               Password : manager
4.       OK & FINISH

Ø  PHP
1.       Matikan service Apache
2.       Jalankan file php-5.2.14-win32-installer
3.       Change folder c:\php\
4.       Pilih Apache  2.2.x Module
5.       Isikan C:\Apache 2.2\conf\
6.        Pilih extensions , modul Oracle (10) dan PDO|Oracle 10g client and above
7.       OK  & FINISH




B.      File
Ø  Httpd.conf
1.       Masuk ke menu all program pada windows.
2.       Pilih/klik Apache HTTP Server 2.2,
3.       kemudian klik Configure Apache Server dan 
4.       Edit the apache httpd.conf configuration file  Atau  pada   Xampp\apache\conf\httpd.ini Pada halaman  httpd.conf ,  cari dan rubah  isi dari Document Root  dan
                       DirectoryIndex  menjadi sbb :
                Document Root “C:/Apache2.2/htdocs”
                 DirectoryIndex  index.php  index.html

5.       Masih pada halaman Edit the apache httpd.conf configuration file, cari dan
                     lengkapi  isi <IfModule mime_module>   menjadi sbb :
<IfModule mime_module>
AddType application/x-compress .Z
AddType application/x-gzip .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php-source .phps
6.       Simpan          
7.       Apache di Restart
8.       TESTING
9.       HASIL    “It  works!”

Ø  Php.ini
1.       Configurasi  atau  hilangkan tanda  ;      pada   :  C:\php\php.ini
Baris 342 : error_reporting = E_ALL & ~E_NOTICE
Baris 373 : display_errors  =  On
Baris 496 : magic_quotes_gpc =  On
Baris 535 : doc_root  =  “C:/Apache2.2/htdocs”

Ø  Php5ts.dll
1.       Copy file php5ts.dll   dari   c:\php  ke   c:\Xampp\Apache2.2\bin


Tidak ada komentar:

Posting Komentar