If you are unable to connect to a cPanel server over SSH:
* because of a forgotten custom SSH port
* having restarted sshd service after making any wrong settings in sshd_config file
- you can still connect to that server via safe sshd service provided by cPanel over port 22 by following the steps below:
* Log in to WHM as root user and browse to the following URL.
http://x.x.x.x:2086/scripts2/autofixer (Replace x.x.x.x with the server IP address)
* You will be presented with an AutoFixer window. Enter
*"safesshrestart"* in the given text field (Enter script name) and click Submit.
It will kill any already running sshd processes and start a new one listening on the default 22 port using the configuration file at /var/cpanel/safe_sshd.
* Connect to the server over SSH via port 22.
* Note down the custom port set in /etc/ssh/sshd_config or fix any errors in it. Once you are ready, restart sshd.
* You should then be able to connect to the regular ssh service running on your custom port if set any.
You can find more information regarding autofixer feature at http://httpupdate.cpanel.net/autofixer/
Wednesday, June 15, 2011
cPanel: Fantastico is not installed at the default location
If you get the following error when accessing Fantastico (user login):
To resolve this issue, you can change the option to enable ioncube loaders in WHM > Tweak Settings and then run:
Quote:
Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it's current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings. |
Code:
/scripts/makecpphp
Enabling Virtuozzo with offline-management
Check the following url to access both 8443 plesk and 4643 VZ with offline management
http://forum.parallels.com/showthread.php?t=74654
http://forum.parallels.com/showthread.php?t=74654
# vzctl set ${VEID} --save --offline_management yes --offline_service vzpp
Wednesday, April 20, 2011
IPTABLES Rules
1. View / List All iptables Rules
When you want to check what rules are in iptables, use –list option as shown below.
# iptables --list
Example 1: Iptables list output showing no rules
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
The above output shows chain headers. As you see, there are no rules in it.
Example 2: Iptables list output showing some rules
When there is a rule to disable ping reply, you have the iptables list output as like the following. You can see the rule in the OUTPUT chain.
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DROP icmp -- anywhere anywhere icmp echo-request
2. Delete iptables Rules using flush option
When you want to delete all the rules, use the flush option as shown below.
# iptables --flush
After doing this, your iptables will become empty, and the “iptables –list” output will look like what is shown in the example 1.
You can also delete (flush) a particular iptable chain by giving the chain name as an argument as shown below.
# iptables --flush OUTPUT
Monday, March 15, 2010
Mysql Database showing 0MB disk usage
If your Mysql DB are showing 0MB disk usage in cPanel then do the following things.
vi /var/cpanel/cpanel.config
find "disk_usage_include_sqldbs"
change the value from 0 to 1
and run
#/scripts/update_db_cache
Issue should be fixed :)
Regards
Ninad
vi /var/cpanel/cpanel.config
find "disk_usage_include_sqldbs"
change the value from 0 to 1
and run
#/scripts/update_db_cache
Issue should be fixed :)
Regards
Ninad
Monday, March 1, 2010
IndianVPS | UK & US SERVERS | 24X7 SUPPORT | Free Transfer
Indian VPS is one of the world's top web hosting companies with large number of hosted domains. We have dedicated staff to provide you superior support around the clock.
cPanel and Plesk
Free Transfer
24X7 Support
99.9% Uptime Guarantee
Location available :: London and Washington DC
15% Discounts on all VPS Plans.
www.indianvps.com
cPanel and Plesk
Free Transfer
24X7 Support
99.9% Uptime Guarantee
Location available :: London and Washington DC
15% Discounts on all VPS Plans.
www.indianvps.com
Friday, January 8, 2010
Increase inodes from virtuozzo node
vzctl set VE_ID --diskinodes BARRIER:LIMIT --save
Where VE_ID is your VPS ID and
BARRIER:LIMIT will be the limit of your inodes.
Regards,
Ninad
Subscribe to:
Posts (Atom)
