Saturday, 13 October 2012

Error in Named

Error:  /var/named/dynamic/managed-keys.bind.jnl: create: file not found  localhost named[17629]: managed-keys-zone ./IN: sync_keyzone:dns_journal_open -> unexpected error


Fix:
# mkdir /var/named/chroot/var/named/dynamic

# chown named:named /var/named/chroot/var/named/dynamic



Friday, 21 September 2012

How to list all the Domains in Kloxo

From Kloxo Control Panel:

Go to Admin Home --> all domains


Command:

[root@server /]# /script/simplelist --resource=all_domain


Tuesday, 4 September 2012

You don't have permission to access /PhpMyadmin on this server in DirectAdmin

You may get the Below error while trying to Access PhpMyadmin

Forbidden

You don't have permission to access /PhpMyadmin on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.



[root@server ]# tail -f /var/log/httpd/error_log
Error: Permission denied: /var/www/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable


First need to check the Directory Permissions.


[root@server ]# ls -ld /var/www
dr-xr-x--- 9 webapps apache 4096 Sep  2 14:43 /var/www

[root@server ]# chmod 755 /var/www

[root@server ]# ls -ld /var/www
drwxr-xr-x 9 webapps apache 4096 Sep  2 14:43 /var/www


When i changed the directory permissions, its worked for me !!!



Thursday, 30 August 2012

vsftpd 530 permission denied root

In  vsftpd, You may get the below error while trying to connect FTP.

Response:    530 Permission denied.
Error:    Could not connect to server



First you need to check below files

1. /etc/vsftpd/ftpusers
2. /etc/vsftpd/vsftpd.conf
3.  /etc/vsftpd/user_list


If a user name is present in the "ftpusers" file, then the user is not allowed to login via ftp.
So, we need to remove the ftpusername from the "/etc/vsftpd/ftpusers" file.

Open the vsftpd configuration file "/etc/vsftpd/vsftpd.conf file"  and search for "userlist_deny="

If there is no such "userlist_deny=" , then add it to the "/etc/vsftpd/vsftpd.conf" file.
If  "userlist_deny=NO", only allow users in the file "/etc/vsftpd/user_list".
If "userlist_deny=YES" (default), never allow users in this file, and do not even prompt for a password.



[root@test ~]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.

Once you edited the configuration file, you need to restart the service.
[root@test ~]# /etc/init.d/vsftpd restart
Shutting down vsftpd:                                      [  OK  ]
Starting vsftpd for vsftpd:                                [  OK  ]


Monday, 30 July 2012

Spam Assassin Icon is Missing in cPanel

If the Spam Assassin Icon is Missing in your cPanel. 
 



You need to enable this option from your cPanel/WHM.

WHM > Tweak Settings > SpamAssassin > tick
WHM > Service Manager > spamd > tick both boxes





In WHM, Go to  Main >> Packages >> Feature Manager


Click the Edit Button under Edit Feature List



Select the Check Box to Spam Assassin  and Save it.



Now go to your cPanel Account , You can see the Spam Assassin Box under the "Mail"









ls: /proc/sys/net/ipv4/ip_conntrack_max: No such file or directory

[root@Node ~]# ll /proc/sys/net/ipv4/ip_conntrack_max
ls: /proc/sys/net/ipv4/ip_conntrack_max: No such file or directory



Maybe the module has not loaded.
Check whether the module loaded 


[root@Node ~]# lsmod | grep  ip_conntrack



If not loaded, then load the module as below.
[root@Node ~]# modprobe ip_conntrack

[root@Node ~]# ll /proc/sys/net/ipv4/ip_conntrack_max
-rw-r--r-- 1 root root 0 Apr 22 22:29 /proc/sys/net/ipv4/ip_conntrack_max

iptables: Unknown error 4294967295

OpenVPN connected but Internet is not working. 
While trying to do NAT, you may get the below error


[root@VPS ~]# iptables -t nat -A POSTROUTING -s 10.9.0.1/24 -o venet0 -j MASQUERADE
iptables: Unknown error 4294967295



Try like this:
iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source #main ip