Pengalaman ERROR
SAAT JALANKAN LOCAL WEB DI LINUX OPENSUSE13.2, setelah googling sana
sini, akhirnya ketemu solusinya.
1. ERROR :
Not Found
The requested URL /localhost/..... was not found on this server.
The requested URL /localhost/..... was not found on this server.
Solusi:
aktifkan
mod_rewrite di mesin linux opensuse.
user root:
Edit file /etc/sysconfig/apache2 (saya pake editor gedit)
-
Cari APACHE_MODULES, dan akan menemukan kalimat seperti di bawah:
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir php5 reqtimeout authn_core authz_core”
-
Tambahkan “rewrite” <tanpa tanda kutip> diakhir kalimat sebelum akhir tanda kutip (“)
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl socache_shmcb userdir php5 reqtimeout authn_core authz_core rewrite”
-
Simpan dan Keluar.
-
Start ulang apache: systemctl restart apache2.service.
Jalankan, web local server, ternyata muncul error ke 2:
Access forbidden!
You don't have permission to
access the requested object. It is either read-protected or not
readable by the server.
If you think this is a server
error, please contact the webmaster.
Error 403
Solusi di
mesin Linux OpenSuse 13.2:
Buka
dengan editor kesukaan anda: /etc/apache2/default-server.conf
Tambahkan kode dibawah ini di akhir konfigurasi.
<Directory "/srv/www/htdocs/detik">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
Restart
ulang apache: systemctl restart
apache2.service
Semoga
Error sudah hilang.