1. Trik merubah Teks Apache menjadi lainnya

    9/01/2007
    By eko, category: Apache

    Sempat beberapa bulan yang lalu kaget melihat web serper temen kok aneh, tidak apache tidak juga IIS melainkan H.A.P/0.0.0, padahal servernya Apache. tak tanyain ke orang nya katanya suruh rubah di source Apache nya. akhirnya 2 hari kemarin aku coba berhasil. Sambil bagi-bagi  ilmu akhirnya tulis aja deh disini.

    edit file include/ap_release.h

    cari baris berikut :


    #define AP_SERVER_BASEPRODUCT "Apache"
    #define AP_SERVER_MAJORVERSION_NUMBER 2
    #define AP_SERVER_MINORVERSION_NUMBER 2
    #define AP_SERVER_PATCHLEVEL_NUMBER 3
    #define AP_SERVER_DEVBUILD_BOOLEAN 0

    kemudian rubah sesuai kehendak anda :d (aku merubah menjadi seperti ini)


    #define AP_SERVER_BASEPRODUCT "GlobeServ"
    #define AP_SERVER_MAJORVERSION_NUMBER 0
    #define AP_SERVER_MINORVERSION_NUMBER 0
    #define AP_SERVER_PATCHLEVEL_NUMBER 0
    #define AP_SERVER_DEVBUILD_BOOLEAN 0

    kemudian baru lakukan langkah compile dst seperti biasa.

    ./configure ......
    make all
    make install

    Kemuadian jalankan Apachenya seperti biasa. pasti teks yang biasanya Apache/2.2.3 menjadi GlobeServ/0.0.0

    O..iya, aku menggunakan Apache 2.2.3 di Slackware 11.sedangakan jika ingin install PHP sekalian,….

    Edit file configure yang terletak pada source PHP, cari baris berikut :

    if test "$APACHE_VERSION" -le 2000000; then
    { echo "configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" 1>&2; exit 1; }
    elif test "$APACHE_VERSION" -lt 2000040; then
    { echo "configure: error: Please note that Apache version >= 2.0.40 is required" 1>&2; exit 1; }
    fi

    beri tanda comment saja sehingga menjadi seperti berikut :

    # if test "$APACHE_VERSION" -le 2000000; then
    # { echo "configure: error: You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)" 1>&2; exit 1; }
    # elif test "$APACHE_VERSION" -lt 2000040; then
    # { echo "configure: error: Please note that Apache version >= 2.0.40 is required" 1>&2; exit 1; }
    # fi

    Setelah itu lakukan proses install seperti biasa

    ./configure …….
    make all
    make install

    Sukses….

Recent Post

Recent Comment

Archive