Versi PHP Berdeda Untuk Subdomain Directadmin

Pada saat tulisan ini dibuat, Directadmin belum memiliki fitur Multiple PHP Version untuk subdomain. Sehingga untuk menggunakan fitur tersebut bisa menggunakan trik dibawah ini :

Buat file .htaccess pada folder subdomain atau update apabila telah ada dengan menambahkan :

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp71
</FilesMatch>

SetHandler application/x-lsphp71 itu artinya folder subdomain menggunakan versi php 7.1

Untuk acuan versi bisa menggunakan opsi dibawah ini:

SetHandler application/x-lsphp56
SetHandler application/x-lsphp70
SetHandler application/x-lsphp71
SetHandler application/x-lsphp72
SetHandler application/x-lsphp73
SetHandler application/x-lsphp74

  • 162 Users Found This Useful
Was this answer helpful?

Related Articles

Directadmin Konfigurasi Mail Client

Pastikan fitur Free SSL (atau berbayar) dalam kondisi aktif/enable di panel directadmin (menu SSL...

Redirect Subdomain DirectAdmin dengan htaccess

Sampai tulisan ini dibuat, belum tersedia redirect subdomain disisi panel directadmin. Sehingga...

Powered by WHMCompleteSolution