Linux kernel includes magic system request keys. It was originally developed for kernel hackers. However, you can use this hack to reboot, shutdown or halt computer safely (remember safe reboot/shutdown == flush filesystem buffers and unmount file system and then reboot so that data loss can be avoided). This is […]
Tag: file
How to install and configure APC Cache on a CentOS server?
APC cache is a PHP caching solution which stands for Alternative PHP Cache. It serves PHP pages from a cache thus helping to reduce server load. APC is an open source software and is updated from time to time. The following are the steps to install APC cache on a […]
Script for cropping down the domlogs
generic viagra for sale< Script for cropping down the domlogs #!/bin/bash for domain in /usr/local/apache/domlogs/*; do # Find the domain having more than 100 Mb log file size if [ 3000 -lt `du $domain | awk {‘print $1’} 2> /dev/null` ] cialis and surgery< then { echo $domain; echo cialisdosage-5mg10mg20mg.com< […]
Howto: enable HTTP Compression
How to enable HTTP Compression? In order to enable compression, you will need compression modules compiled with Apache. Apache 1.x needs mod_gzip and Apache 2.x need mod_deflate compiled with it. If you have these module installed, you need to edit your Apache configuration file locate at “/etc/httpd/conf/httpd.conf” file and add […]
How To Create A Cluster Testbed Using CentOS 5 Virtualization And iSCSI
A. Overview This guide attempts to provide a Xen based test environment where you can practice setting up a two node cluster (cluster setup itself is not discussed here – I’m merely giving you what you need to set it up). XEN can host two type of guest systems para-virtualized […]
Linux: Forcing Apache to correct misspellings of URL
Apache has mod_speling for automatic URL spell-correction. For example when on this site you can request the page using following format: This module help visitor to get correct content instead of error 404 – document not found and you can also omit file extension such as .pl, .php, .html etc […]
services that are not necessary on a web server
These are some services I would normally turn off on web servers. NOTE: usage may vary. gpm — mouse mdmonitor — monitor raid devices netfs — nfs, samba etc… autofs — automount, nfs, cd etc… kudzu — detect new hardware restorecond — monitor selinux file context mcstrans — mandatory access […]
Solaris > Forcefully unmount the cdrom/floppy disk
fuser command displays the PIDs of processes using the specified files or file systems. You can use fuser command to specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed using -k option you can […]