February 22nd, 2012 |
admin |
While accessing the Plesk control panel, you may encounter an error message as follows: ERROR: PleskFatalException StatInfo-> getProductVersion failed OR ERROR: PleskFatalException StatInfo-> getProductVersion failed: file_get_contents () failed: mktime() [<a href='function.mktime'>function.mktime</a>] The “Plesk getProductVersion failed ” message states that either the Plesk version file /usr/local/psa/version is empty AND/OR the plesk version in the ‘psa.misc’ table [...]
February 22nd, 2012 |
admin |
The Volume Management daemon, vold, creates and maintains a file system image rooted at root-dir that contains symbolic names for CD-ROM and floppy, ZIP/JAZ, and DVD-ROM devices and other removable devices. Use volcheck command to checks for media in a drive and by default checks all floppy media. 1) First put CDROM/DVD into drive 2) [...]
February 21st, 2012 |
admin |
The kldconfig utility displays or modifies the search path used by the kernel when loading modules using the kldload utility or the kldload syscall. You can also use sysctl command (the sysctl utility retrieves kernel state). Try any one of the following command as a root user: 1) To get PATH (or directories name) type [...]
February 21st, 2012 |
admin |
Below commands can be used to check file and diretcory permissions under the present working diretcory (pwd) * Check files with permission 755 root@master [~]# find $x -type f -perm 755 * Check files with permission 777 root@master [~]# find $x -type f -perm 777 * Check diretcory with permissions 777 root@master [~]# find $x [...]
February 20th, 2012 |
admin |
To add a swap file: Determine the size of the new swap file in megabytes and multiply by 1024 to determine the number of blocks. For example, the block size of a 64 MB swap file is 65536. At a shell prompt as root, type the following command with count being equal to the desired [...]
February 18th, 2012 |
admin |
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 [...]
February 15th, 2012 |
admin |
There are several ways to do this and the best way is to install a utility called “lsof” which you can find in /usr/ports/sysutils/lsof. Once you install this you will type: # lsof -i This will list out all the ports / ips / hostnames that are listening on your server. Another way would be [...]
February 14th, 2012 |
admin |
How to make a .vcf file down loadable? Problem: If you link a .vcf file on a page, it shows as a text file instead of asking for a download. Solution: In order to make the .vcf file download-able, you need to add the AddTye directive in the .htaccess file as follows: AddType text/x-vcard .vcf [...]
February 12th, 2012 |
admin |
1, Copy the servers default php.ini to your home directory 2, Make the following directory in user home directoy and chown to user:user cgi-bin 3, Create a file php.cgi in cgi-bin with the following content #!/bin/sh exec /usr/local/cpanel/cgi-sys/php5 -c /home/user/public_html/ 4, Chmod +x php.cgi and chown the file to user:user. 5, Add the following in [...]
February 12th, 2012 |
admin |
Go to /etc/sysconfig/network-scripts Make multiple copies of ifcfg-eth0 and name them as ifcfg-eth0:0, ifcfg-eth0:1 etc. Open each of them and at least change the IPADDR to your chosen IP address and the NETMASK to the subnet mask for that IP address. A sample entry would look like this: DEVICE=eth0:0 BOOTPROTO=static IPADDR=34.123.111.21 NETMASK=255.255.255.0 ONBOOT=yes Restart the [...]