Cara Mengganti Timezone di server linux

Zona waktu (timezone) di server sebaiknya disesuaikan dengan lokasi di mana kita berada. Hal ini dilakukan untuk mempermudah kita dalam membaca log server sesuai zona waktu di mana kita berada. Misal kita akan mengganti Zone waktu server menjadi Waktu Indonesia Barat (WIB), langkahnya adalah sebagai berikut:

  • Backup setting timezone eksisting
    mv /etc/localtime /etc/localtime.bak
  • Buat link ke timezone Asia/Jakarta
    ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

Setelah itu cek kembali dengan perintah date
Sun Apr 15 05:36:29 WIB 2018

Demikianlah cara mengganti timezone di server linux

How to set PHP Handler on EA4

There are four PHP handlers available on cPanel servers : DSO, suPHP, FastCGI, CGI

The below command will list all the available handlers on the server :

COMMAND : /usr/local/cpanel/bin/rebuild_phpconf –available

[root@server ~]# /usr/local/cpanel/bin/rebuild_phpconf –available
ea-php54: cgi none
ea-php55: cgi none
ea-php56: cgi none
ea-php70: cgi none

Run the below command to check the current PHP handler on the server

COMMAND : /usr/local/cpanel/bin/rebuild_phpconf –current

[root@server ~]# /usr/local/cpanel/bin/rebuild_phpconf –current
DEFAULT PHP: ea-php56
ea-php54 SAPI: cgi
ea-php55 SAPI: cgi
ea-php56 SAPI: cgi
ea-php70 SAPI: cgi

Read the rest of this entry »

How to install PHP module/Extension on EA4

Install PHP curl extension

Run the command yum install “ea-phpXX-php-curl” to install curl

Command to Install curl for PHP version 5.4 : yum install ea-php54-php-curl
Command to Install curl for PHP version 5.5 : yum install ea-php55-php-curl
Command to Install curl for PHP version 5.6 : yum install ea-php56-php-curl
Command to Install curl for PHP version 7.0 : yum install ea-php70-php-curl

Install zlib, core, ctype, date, ereg

Run the command “yum install ea-phpXX-php-common” to install zlib PHP module

Command :

yum install ea-php54-php-common
yum install ea-php55-php-common
yum install ea-php56-php-common
yum install ea-php70-php-common

Read the rest of this entry »