Subscribe to my RSS feed RSS
January 9, 2007

Trik merubah Teks Apache menjadi lainnya

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….

Feed for this Entry | Trackback Address

2 comments already

  1. kupu ungu on 03.19.2007 at 8:28 am | permalink
  2. konfigurasinya jalan di windows ga ya?
    :D

  3. globe on 03.26.2007 at 9:30 am | permalink
  4. bisa aja seh di windows, asalkan compile dari source juga tentunya.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>