h1

Error When Install Apache2 & PHP5 in ubuntu

December 12, 2008

langsung aja dech…

Pas jalanin perintah “make install” (install php5 di ubuntu) muncul error kayak gini :

Installing PHP SAPI module:       apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL=’/usr/share/apr-1.0/build/libtool’ libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool –mode=install cp libphp5.la /usr/lib/apache2/modules/
cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool –finish /usr/lib/php-5.2.5/libs’
chmod 644 /usr/lib/apache2/modules/libphp5.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule’ directive already has to exist..
make: *** [install-sapi] Error

setelah googling sana-sini akhirnya ketemu juga solusinya. langkah-langkahnya adalah :
1. Buat symbolic link antara file httpd.conf dengan file apache2.conf
ln -s /etc/apache2/apache2.conf /etc/apache2/httpd.conf
2. Tambahkan tulisan berikut di baris akhir file apache2.conf
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
3. Restart Apache2
/etc/init.d/apache2 restart
4. Jika terdapat error seperti berikut“Syntax error on line 189 of /etc/apache2/httpd.conf” beri tanda #(mark) didalam tulisan berikut :
# Include all the user configurations:
# Include /etc/apache2/httpd.conf

5. Restart ulang apache2
/etc/init.d/apache2 restart

Semoga Bermanfaat
bye…

Leave a Comment