Hostgator menyediakan PHP 5.3 di servernya. Namun demikian secara default PHP 5.2 lah yang digunakan oleh server Hostgator. Untuk Anda yang mengalami masalah dimana script anda mengharuskan bekerja di versi PHP 5.3, berikut cara mengaktifkan PHP 5.3 di Hostgator.
Buka file .htaccess di root directory web Anda, lalu masukkan baris berikut :
Action application/x-hg-php53 /cgi-sys/php53
AddHandler application/x-hg-php53 .php
Dalam halaman support.hostgator.com disebutkan tata caranya seperti ini :
We currently have 5.3.10 (or higher) installed on all servers. A handler for PHP 5.3 is added to our shared and reseller servers for those who wish to utilize it. In order to utilize this handler, you will need to add the following code to your .htaccess file:
# Use PHP 5.3
AddType application/x-httpd-php53 .php
About us and this blog
We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.
Request a free quote
We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.
Subscribe to our newsletter!
More from our blog
See all postsRecent Posts
- Mengapa UMKM Membutuhkan Website? July 5, 2024
- Bagaimana memilih bahasa pemrograman yang tepat untuk membuat sebuah aplikasi? June 13, 2024
- Pilih Google Ads atau FB Ads untuk Produk Sepatu Unik? June 13, 2024