April 30th, 2012 |
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 control selinux translation There may [...]
April 28th, 2012 |
How to find what packages (software’s) installed? 1)Run the command pkginfo to find the information: # pkginfo | more 2) Note that packages provided by SUN always have prefix SUNWpkgname 3 To find more about SSH Software’s: # pkginfo | grep “SSH” 4) To print all available information about package (long format aka package description): [...]
April 26th, 2012 |
Resolution Please make sure there are no open files inside a container root and/or private area (and your current working directory is not inside a container root/private area) by running the following command on the hardware node (assuming there is a problem with the container #101): # lsof 2> /dev/null | egrep ‘/vz/root/101|/vz/private/101′ If there [...]
April 26th, 2012 |
A typical question from my mailbag: How do I find out if a given PCI hardware is supported of by the current CentOS / Debian / RHEL / Fedora Linux kernel? You can easily find out find out if a given piece of PCI hardware such as RAID, network, sound, graphics card is supported or [...]
April 24th, 2012 |
Mapping john.webserver.com to http://www.webserver.com/user.php?name=john is just by changing a few parameters in http.conf file In httpd.conf file, <VirtualHost se.rv.er.ip.ad.re.ss> ServerAdmin info@servername.com DocumentRoot /var/www ErrorLog /var/log/apache/apache-error.log TransferLog /var/log/apache/apache.log ServerName www.servername.com ServerAlias *.servername.com RewriteEngine on RewriteCond %{HTTP_HOST} !^www.* [NC] RewriteCond %{HTTP_HOST} ^([^\.]+)\.servername\.com RewriteRule ^/$ http://www.servername.com/user.php?user=%1 </VirtualHost> The lines for this feature, RewriteEngine on activating rewrite option RewriteCond [...]
April 22nd, 2012 |
Account Creation Status: failed (Your system has run out of available ip addresses, or you do not have permission to use any more ip addresses. (Unable to find an ip address.) ) You receive the “Account Creation Status: failed” error message while adding a domain from WHM >> Account Functions >> “Create a New Account” [...]
April 21st, 2012 |
I’ve already written about setting the MTU (Maximum Transmission Unit) under Linux including Jumbo frames (FreeBSD specific MTU information is here). With this quick tip you can increase MTU size to get a better networking performance. How do I setup MTU under XEN xenbr0 interface? You can easily set MTU under XEN (xenbr0) using ifconfig [...]
April 19th, 2012 |
How can I find all the file descriptors used by a process such as httpd (Apache web server) or mysqld (MySQL Database server)? You can use /proc file system or the lsof command to find all the file descriptors used by a process. /proc File System Example Find out process ID using the ps command, [...]
April 17th, 2012 |
If you wish to add additional RAM on a Xen based VPS, you need to follow the below steps: #Search the VM name: xm list #Edit the VM’s configuration file. Update the required value and save the file: vi /home/xen/vmname/vmname.cfg #To stop and start the VPS, follow the below steps: xm destroy vmname xm create [...]
April 13th, 2012 |
Network attached storage (NAS) allows using TCP/IP network to backup files. This enables multiple servers in IDC to share the same storage for backup at once, which minimizes overhead by centrally managing hard disks. NAS is scalable, high performance network solution. The main advantage is more hard disk storage space added to a network that [...]