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!
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?
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?
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?
December 12, 2009 | Posted by
admin | Category: cPanel Management
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” option which states that there is no free IP address to assign to your new domain.
The package you are using while adding a domain has the “Dedicated IP” option enabled which searches for a free IP on the server and tries to assign to the every new domain you create. To overcome the issue, you will have to deselect the “Dedicated IP” option from the package which can be achieved via ssh.
Edit the package file located under /var/cpanel/packages
# vi /var/cpanel/packages/packagename
Search for
IP=y
and replace it with
IP=n
Save the file. You should now be able to create an account from WHM successfully.
Comments Off on Account Creation Status: failed (out of available ip addresses)