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 ?”
Author Archives: juzhax
How to make symbolic link in Linux ?
Syntax and a practical example © juzhax.com Use ln -s TARGET LINK_NAME. For example, ln -s /var/www/example.com ~/example-link creates a link at a new path. If the destination already exists as a directory, ln may create a link inside it instead. Check the result with ls -l. A relative target is resolved relative to the Continue reading “How to make symbolic link in Linux ?”
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”
Search and Replace in VIM
How the substitution works © juzhax.com The command below replaces foo with bar throughout the current buffer, asking for confirmation at each match. Press y to accept, n to skip, a to accept remaining matches, or q to stop. Inspect the changes before saving; use u to undo an unwanted edit. The search pattern is Continue reading “Search and Replace in VIM”
Where is my.cnf in DirectAdmin ?
/usr/local/directadmin/conf/my.cnf
ERROR: `phpize’ failed in CentOS
You need php-devel to use phpize yum -y install php-devel
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”
Why you should bring you GF to swimming before getting married.
Why you should bring you GF to swimming before getting married ? Actually there are 3 main points that would have you feel better. 1. You could see all her body shape. 2. You can see clear her face without making up. 3. You can know that is she have swimming skill or not. If Continue reading “Why you should bring you GF to swimming before getting married.”
How to mass download FTP site using wget ?
How to mass download FTP site using wget ? I’m using the Cloud Sites from RackSpace, too bad that they do not provide SSH for me, and I’m going to move my site to the server, I’m using this way to download all the files using wget mass download. Note: The -r is recursive The Continue reading “How to mass download FTP site using wget ?”
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”
