Post by admin

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 control selinux translation There may [...]

Solaris > Finding more information about packages

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): [...]

How do I solve vzquota error: “vzquota : (error) Quota on syscall for 101: Device or resource busy”?

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 [...]

Linux Find Out If PCI Hardware Supported or Not In The Current Running Kernel

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 [...]

Mapping subdomains to parametered web pages in Apache

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 [...]

Account Creation Status: failed (out of available ip addresses)

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” [...]

XEN Virtualization Set The MTU For xenbr0 Interface

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 [...]

Linux: Find All File Descriptors Used By a Process

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, [...]

additional RAM on Xen VPS

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 [...]

Connecting Linux or UNIX system to Network attached storage device

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 [...]