Cara Mengatasi Error Apache2 configtest failed Ketika Apache dijalankan (Linux)

Berikut adalah cara mengatasi error saat menjalankan Apache server di vps linux debian. Jadi, berdasarkan pengalaman penulis saat ketika menjalankan apache2 server muncul error
[FAIL] Starting web server: apache2 failed!
[warn] The apache2 configtest failed. ... (warning).
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.



Solusinya adalah dengan menginstall php5 dengan perintah :
apt-get install libapache2-mod-php5
 
 
 
 
Selesai. 

0 comments :

Post a Comment