Posted by: Master Will | November 6, 2020

CloudLinux Custom PHP.ini options

###Custom PHP.ini options

vi /etc/cl.selector/php.conf

###Add following lines
Directive = date.timezone
Default = Asia/Bangkok
Type = list
Range = Europe/London,Asia/Bangkok
Comment = To select timezone

Source: https://docs.cloudlinux.com/cloudlinux_os_components/#custom-php-ini-options

###Custom Global PHP.ini options

vi /etc/cl.selector/global_php.ini

###Add following lines
[Global PHP Settings]
date.timezone = Asia/Bangkok

###Execute command below to take the effect
selectorctl –apply-global-php-ini date.timezone

Source: https://docs.cloudlinux.com/cloudlinux_os_components/#configuring-global-php-ini-options-for-all-alt-php-versions


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Categories

%d bloggers like this: