indoglobal.com
Langsung ke: navigasi, cari

CakePHP

(Perbedaan revisi)
 
Baris 3: Baris 3:
 
==Internal Server Error (Too Many Redirects)==
 
==Internal Server Error (Too Many Redirects)==
  
Gejalanya adalah aplikasi memberi output Internal Server Error, dan pada [[Log Files|log file]] terdapat pesan error "Request exceeded the limit of 20 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace."
+
Gejalanya adalah aplikasi memberi output Internal Server Error, dan pada [[Real Time Log|log file]] terdapat pesan error "Request exceeded the limit of 20 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace."
  
 
Biasanya ini terjadi pada CakePHP versi lama yang sepertinya memiliki masalah kompatibilitas dengan [[Mod_rewrite]] pada web server Apache versi terbaru yang kami gunakan.
 
Biasanya ini terjadi pada CakePHP versi lama yang sepertinya memiliki masalah kompatibilitas dengan [[Mod_rewrite]] pada web server Apache versi terbaru yang kami gunakan.

Revisi terkini pada 18 April 2014 21.51

CakePHP adalah framework populer untuk PHP. Berikut adalah masalah-masalah dan solusinya yang berhubungan dengan penggunaan CakePHP di sistem kami.

[sunting] Internal Server Error (Too Many Redirects)

Gejalanya adalah aplikasi memberi output Internal Server Error, dan pada log file terdapat pesan error "Request exceeded the limit of 20 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace."

Biasanya ini terjadi pada CakePHP versi lama yang sepertinya memiliki masalah kompatibilitas dengan Mod_rewrite pada web server Apache versi terbaru yang kami gunakan.

Solusinya, gunakan .htaccess dengan isi seperti berikut ini:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]