Apache2, PHP5, Oracle Instant Client di Fedora Core 4

Baru sempet nulis nih :) dari dulu ga ada waktu terus, langsung aja ya. Yang perlu dipersiapkan pertama kali :

Langkah-langkah :

  1. Oracle Instant Client
    unzip instantclient-basic-linux32-10.2.0.3-20061115.zip
    unzip instantclient-sdk-linux32-10.2.0.3-20061115.zip
    • pindahkan direktori hasil ekstrak (misal: instantclient_10_2) ke direktori /usr/local/ –>
      mv instantclient_10_2 /usr/local/

  2. Install Apache
      tar -zxvf httpd-2.2.2.tar.gz
      cd httpd-2.2.2
  3. Install apr
    	cd srclib/apr
    	./buildconf
    	./configure -prefix=/usr/local/apr-httpd
    	make
    	make install
  4. Install apr-util
    	cd ../apr-util
    	./buildconf
    	./configure -prefix=/usr/local/apr-util-httpd -with-apr=/usr/local/apr-httpd
    	make
    	make install
  5. Install Apache
    	cd ../../
            ./buildconf
    	./configure -enable-module=so -prefix=/usr/local/apache -with-apr=/usr/local/apr-httpd -with-apr-util=/usr/local/apr-util-httpd
    	make
    	make install
  6. Install PHP5
    	tar -zxvf php-5.2.2.tar.gz
    	cd php-5.2.2
    	./configure -with-oci8=instantclient,/path/to/oic/lib -prefix=/usr/local/php -with-apxs2=/usr/local/apache/bin/apxs -enable-sigchild -with-config-file-path=/usr/local/apache/conf
    	make
    	make install
  7. Testing
    • buat file php (misal: info.php) yang isinya <?php phpinfo();?> kemudian simpan file tersebut di direktori /var/www
    • buka file tersebut melalui browser (misal: http://localhost/info.php)
    • untuk mengetahui apakah Oracle Instant Client nya sudah terpasang cari bagian yang bertuliskan OCI, bila ada berarti proses instalasi berhasil. Jika tidak ada, kemungkinan proses instalasi ada yang gagal.

Sekian terima kasih, semoga bermanfaat.

Comments

comments

2 thoughts on “Apache2, PHP5, Oracle Instant Client di Fedora Core 4

  1. gia Post author

    @firdi
    bebas mas mau diletakkan dimana saja :D, ntar abis ngejalanin perintah itu bakalan ada direktori baru bernama httpd-2.2.2 di direktori tempat anda menyimpan file .tar.gz nya

    Semoga membantu :D

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.