Laragon tidak mengeksekusi file index.php Wordpress, tetapi browser malah mengunduh file tersebut #60

Open
opened 4 months ago by byprakoso · 0 comments
Owner

Environment

Laragon + Apache + PHP

Masalah:

  • File index.php terunduh, bukan dieksekusi
  • WordPress tidak dapat diakses

Penyebab

  • Konfigurasi .htaccess bermasalah
  • URL WordPress belum diset dengan benar
  • Laragon tidak dijalankan sebagai Administrator

Solusi

  • Jalankan Laragon sebagai Administrator
  • Rename / nonaktifkan file .htaccess di folder /public_html
  • Tambahkan konfigurasi berikut pada wp-config.php:
define('WP_HOME', 'http://localhost/public_html');
define('WP_SITEURL', 'http://localhost/public_html');

Hasil

  • PHP berhasil dieksekusi
  • WordPress dapat diakses melalui localhost/public_html
# Environment Laragon + Apache + PHP # Masalah: * File index.php terunduh, bukan dieksekusi * WordPress tidak dapat diakses # Penyebab * Konfigurasi .htaccess bermasalah * URL WordPress belum diset dengan benar * Laragon tidak dijalankan sebagai Administrator # Solusi * Jalankan Laragon sebagai Administrator * Rename / nonaktifkan file .htaccess di folder /public_html * Tambahkan konfigurasi berikut pada wp-config.php: ``` define('WP_HOME', 'http://localhost/public_html'); define('WP_SITEURL', 'http://localhost/public_html'); ``` # Hasil * PHP berhasil dieksekusi * WordPress dapat diakses melalui localhost/public_html
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.