Tag: Linux

How to config PHP to secure Web Server

There are certain PHP configuration tat affect security features.  The following recommended security configuration options is for production servers. register_globals set to off safe_mode set to off error_reporting set to off disable these functions: system(), exec(), passthru(), shell_exec(), proc_open(), and popen() open_basedir set for both the /tmp directory and [...]
Read More

PHP 5.5 is 20% faster than PHP5.3

It is a general test on a Centos 6.4 system. The benchmark script is made by http://www.php-benchmark-script.com/. The first time I run it on the updated default Centos6.4. The php version is 5.3.3. I think it has Xcache installed. The test result is Total time: 8.482 sec. Breakdown as [...]
Read More

Webmin update to 1.64

Yesterday, when I sign in one of my VPS webmin control panel, it displayed an upgrade button. Look at the folowwing screen shot and just click the button underneath, Upgrade Webmin Now. It is a update with new features and bug fixes. Worth to upgrade. Then, I click Upgrade [...]
Read More

Install htop on Linode VPS

htop is an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses. If you used top command before, I would like to tell you that htop is a replacement of top, but even better. Since I have rpmforge Repository on [...]
Read More

Make sure 4K Alignment on SSD

When using a SSD to hold the system with the fresh installation, 4K alignment is a key point to improve the performance. Ensure that your new partition layout is aligned with the 4KB sectors of such drives (older hard drives used 512B alignment). If your partition is not “4K [...]
Read More

Difference between GRUB and Lilo

LILO (Linux Loader) and GRUB (GRand Unified Bootloader) are both configured as a primary boot loader (installed on the MBR) or secondary boot loader (installed onto a bootable partition). First question, what is a boot loader. The simple answer: a boot loader loads the operating system. When your machine [...]
Read More

Delete files recursively

The task is to delete files from the folder and sub-folders, maybe sub-sub-folder. Say I want to delete .htaccess from every folder, but keep all others no-touch. It is hard to go into each folder and delete the file. It takes time and also very easy to miss some [...]
Read More