Tag archive for ‘use’

FreeBSD How to restart inetd service / daemon

inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user. FreeBSD version 5.0/6.0 or later Newer version of [...]

What is .htaccess and how to disable .htaccess?

What is .htaccess and how to disable .htaccess? .htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc. However, it can be a potentially dangerous [...]

cPanel transfer restore error

Forcing the restore of a transfered cPanel account , even if the new system says the username is all ready in use /scripts/restorepkg –force –skipres account.tar.gz Incoming search terms:plesk 10 dnsmng: service /etc/init d/named failed to start (–start dns) (1)

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

Solaris > Safely remove / unmount the floppy disk or cdrom

First use sync command update the super block. Then use the eject utility. It is used for those removable media devices that do not have a manual eject button, or for those that do, but are managed by Volume Management. 1) Type command sync to write superblock or data to device (for floppy disk): # [...]

Shell script to Finding ALL Superuser ( root ) Accounts under UNIX / Linux OSes

In Unix-style computer operating systems, root is the conventional name of the user who has all rights or permissions in all modes (single- or multi-user). The root user can do many things an ordinary user cannot, such as changing the ownership of files and binding to ports numbered below 1024. It is never good practice [...]

When To Use Indexes In MySQL

This comes up in discussions almost every new project I work on, because it’s a very important thing to consider when designing a database. When deciding when and how to create an index in your MySQL database, it’s important to consider how the data is being used. Let’s say you have a database of employees. [...]

How to Enable IP Routing in Windows

Routing between subnets is disabled by default for the TCP/IP protocol in Windows NT. To enable routing, following these steps: WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can [...]

Shell Arithmetic

Use to perform arithmetic operations. Syntax: expr op1 math-operator op2 Examples: $ expr 1 + 3 $ expr 2 – 1 $ expr 10 / 2 $ expr 20 % 3 $ expr 10 \* 3 $ echo `expr 6 + 3` Note: expr 20 %3 – Remainder read as 20 mod 3 and remainder [...]

How to print or access value of UDV (User defined variables)

To print or access UDV use following syntax Syntax: $variablename Define variable vech and n as follows: $ vech=Bus $ n=10 To print contains of variable ‘vech’ type $ echo $vech It will print ‘Bus’,To print contains of variable ‘n’ type command as follows $ echo $n Caution: Do not try $ echo vech, as [...]