Id “c1” respawning too fast: disabled for 5 minutes

December 21, 2009    |   Posted by admin   |    Category: Linux Administration

You may see the tty device error messages like ‘/dev/tty1: cannot open as standard input: Permission denied’ in the server logs and many more like

Jan 10 xx:xx:xx [agetty] /dev/tty1: cannot open as standard input: Permission denied
Jan 10 xx:xx:xx [agetty] /dev/tty2: cannot open as standard input: Permission denied
Jan 10 xx:xx:xx [agetty] /dev/tty3: cannot open as standard input: Permission denied
Jan 10 xx:xx:xx [init] Id “c1” respawning too fast: disabled for 5 minutes
Jan 10 xx:xx:xx [init] Id “c2” respawning too fast: disabled for 5 minutes
Jan 10 xx:xx:xx [init] Id “c3” respawning too fast: disabled for 5 minutes

The tty “Permission denied” error message is because of the misconfiguration in your /etc/inittab file in which case you have to edit the file and comment the agetty/getty lines. Login to your server as root and edit the file:

pico /etc/inittab

Search for the lines

c1:12345:respawn:/sbin/agetty 38400 tty1 linux

and comment the lines by placing a # in front of them.

Save the file and you won’t see the messages.

OR

you may try re-creating the terminals again from shell as root. Login to your server as root and execute the command:

/sbin/makedev /dev/tty1

and replace 1 with 2,3,4,5,6,7 for other terminals and reboot the server.

Not allowed to add any more than (0) addon domains!

December 21, 2009    |   Posted by admin   |    Category: cPanel Management

Error:

There was a problem creating the addondomain.
Sorry, you are not allowed to add any more than (0) addon domains! The domain below was not setup.

Reason:

The domain is not allowed to host any add-on domains on it and the addon domain resources are set to zero by the administrator of the server. You won’t be able to add add-on domain OR park domain from cPanel and receives the “Sorry, you are not allowed to add any more than (0) addon domains!” error message.

Solution:

You need to change add-on domain resources from zero (0) to 1 or more. There are 2 methods to increase the add-on domains for an account:

1) Login to WHM as root, goto Account Functions >> Modify an Account >> select the domain name from the domain’s list and click ‘Modify’ >> specify the number of add-on domains in “Max Addon Domains” text box >> click Save.

2) Login to your server as root. Edit the users file

pico /var/cpanel/users/username

set the MAXADDON from zero to 1 or more

MAXADDON=1

Save the file and update the cache using

/scripts/updateuserdomains

Comments Off on Not allowed to add any more than (0) addon domains!

Howto: Change the FTP port to a non-standard port?

December 18, 2009    |   Posted by admin   |    Category: cPanel Management

If you are looking to change the Ftp port on your server from 21 to a non-standard port say 2121, you need tweak the ‘bind’ option in the Ftp configuration file.  On a cPanel server with pure-ftp as a Ftp server, you need to edit the pure-ftpd.conf file

# pico /etc/pure-ftpd.conf

Search for the line:

# Bind 127.0.0.1,21

and add the following line below it

Bind *,2121

where, 2121 is the new port you want the Ftp server to listen to.

Save the Ftp configuration and restart the ftp service.

# service pure-ftpd restart

Using the netstat command you can check if the new port is in ‘LISTEN’ state

# netstat -al | grep 2121

If your server is behind a firewall, you will have to open the new Ftp port in the allowed list. For example, if you have CSF firewall installed on your server, edit the configuration at

# pico /etc/csf/csf.conf

and replace port 21 with 2121 in the TCP_IN. Save the file and restart the csf firewall

# csf -r

Comments Off on Howto: Change the FTP port to a non-standard port?

What is .htaccess and how to disable .htaccess?

December 14, 2009    |   Posted by admin   |    Category: Linux Administration

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 file. For example, a hacker can redirect your website to an external website say a malware website.

In order to disable .htaccess server wide, edit the Apache configuration file

pico /etc/httpd/conf/httpd.conf

Search for

AllowOverride All

replace it with

AllowOverride None

Save the file and restart the Apache service.

service httpd restart

Comments Off on What is .htaccess and how to disable .htaccess?

How to check the version of Debian or Ubuntu OS?

December 13, 2009    |   Posted by admin   |    Category: Linux Administration

How to check the version of Debian OR Ubuntu OS?

To find out the version of Debian OS you are running, execute

# cat /etc/debian_version

There are 2 ways to find out the version of Ubuntu OS you are running.

1. Check the file /etc/issue and the output will be something like:

# cat /etc/issue
Debian GNU/Linux 5.x

2. Execute the lsb_release command:

# lsb_release -a
Distributor ID: Debian
Description:    Debian GNU/Linux 5.x (lenny)
Release:        5.x
Codename:       lenny

Comments Off on How to check the version of Debian or Ubuntu OS?