How to install Git in CentOS in fastest way ?

Updated installation guidance © juzhax.com The original 2013 example uses yum and Git 1.7.1. CentOS 6 and 7 are end-of-life. On supported modern RPM distributions, use the trusted package manager, for example sudo dnf install git, then check git –version. Cloning the Git source repository does not install or upgrade the executable; building from source Continue reading “How to install Git in CentOS in fastest way ?”

Setting the PHP Timezone in php.ini

Current PHP configuration © juzhax.com The warning below comes from an older PHP release. Set date.timezone in the configuration loaded by the relevant runtime, or use date_default_timezone_set() for an intentional application-level override. Asia/Bangkok is a valid IANA timezone identifier. Verify using date_default_timezone_get(); CLI and PHP-FPM may read different configuration files. Reload the relevant long-running service Continue reading “Setting the PHP Timezone in php.ini”

DirectAdmin php.ini location path in Linux

Modern DirectAdmin installations © juzhax.com The paths below are historical examples. Current installations may use several PHP versions and different handlers. Run php –ini with the exact PHP binary used by the application. For PHP-FPM, inspect the active version and pool configuration, or use a temporary access-restricted diagnostic to check php_ini_loaded_file(). Remove the diagnostic afterward. Continue reading “DirectAdmin php.ini location path in Linux”

Common Error in CentOS: Failed to set locale, defaulting to C

Current troubleshooting approach © juzhax.com First run locale and locale -a to check whether the requested locale is installed. Use the distribution’s locale packages and configuration tools to enable a supported UTF-8 locale. Set LANG as the default; LC_ALL overrides all locale categories and generally should not be permanently exported globally. The historical commands below Continue reading “Common Error in CentOS: Failed to set locale, defaulting to C”