OS X Tiger aku telah siap ada Apache version 1.3.33. Nak upgarade ke pada Apache2. Agak keliru sikit mulanya. Semalam jenuh aku dok try tapi tak berjaya. Mula try download source. Install ikut guide dari homepage apache. Berjaya tapi conflick dengan Apache asai dari Tiger.
Dalam System Preferences bila click Personal Web Sharing automatic load Apache 1.3.33
Try guna MacPort untuk install Apache2, berjaya tapi tak boleh nak install Phusion Passenger. Dan System Preferences masih default Apache 1.3.33
Rupa-rupanya kena tweak sikit installation process ni.
Install dari source. Aku ikut configure yang basic saja dan PREFIX=/usr/local/apache2
Bila dah habis install check kat Terminal
$httpd -v
masih version 1.3.33
$apachectl -v
masih lagi version lama.
Ada guide dari internet suruh set symlink /usr/local/apache2/bin/apachectl ke /usr/sbin/apachectl
Aku try tapi bila click Personal Web Sharing masih load version lama. Last sekali aku copy apachectl dan httpd dari PREFIX/bin/apachectl ke /usr/sbin
Lepas tu masukkan dalam /usr/local/apache2/conf/httpd.conf
PidFile /private/var/run/httpd.pd
Whaola click pada Personal Web Sharing dalam System Preferences, Aache2 jalan.
$httpd -v
Server version: Apache/2.2.10 (Unix)
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.