Mengaktifkan PHP 5.3 di Hostgator

No Comments

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 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
Namun demikian setelah saya coba tidak memberikan perubahan pada versi PHP, baru ketika saya tambahkan dua baris cara pertama tadi (info dari sini : maka versi PHP berubah menjadi 5.3.

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 posts