By
Gunjan · October 31, 2009
If you receive following error message after browsing the domain/website
[Sat Oct 31 04:28:39 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/xxx/403.shtml
[Sat Oct 31 04:29:47 2009] [error] [client x.x.x.x] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/xxx/public_html/xxx.co.uk/Bracelets/Stencil-Heart-Bracelet.html
To avoid above error you can add following codes in .htaccess file.
root@gunjan[#]vi .htaccess
RewriteEngine On
Options +FollowSymLinks
:wq!
By
Gunjan · October 28, 2009
The ifconfig is present under /sbin director and the PATH of the normal users don’t point to /sbin directory and if execute “ifconfig” under normal by using any normal cPanel user login details then it will not show you.
you can set PATH to add /sbin #PATH=$PATH:/sbin
Or you can enter command with full path like # /sbin/ifconfig
By
Gunjan · October 27, 2009
The all the time zone files are stored in /usr/share/zoneinfo directory and its need to simlink to the /etc/localtime file to show the timezone as per your requirment.
Refer following URL to set the timezone for example we are setting GMT timezone.
gunjan@root#ln -sf /usr/share/zoneinfo/GMT /etc/localtime
But make sure that you are logged into Server as root to execute above command.Now check timezone has been changed or not?
gunjan@root # date
Tue Oct 27 03:49:53 GMT 2009
By
Gunjan · October 26, 2009
To Open Passive FTP in iptable root login is require.
If you want to open port range from 30000:64000 then run the following command from shell.
iptables -A INPUT -p tcp -m tcp –dport 30000:64000 -j ACCEPT
Similarly you can open passive post range as per your requirement.
By
Gunjan · October 21, 2009
You can install SSL on default services(http, exim, imap, pop3, cpanel/WHM) from your WHM but you require root login details to
The all cert information save in following path
/var/cpanel/ssl/cpanel
You can install the certificate from your WHM >> Main >> Service Configuration >> Manage Service SSL Certificates
By
Gunjan · October 19, 2009
The “rmmod" is used to remove the module from kernel.The module name which you wan to remove from the Kernel (excluding the .ko) is specified to identify the module. The kernel will not remove a module that is currently being used in the kernel (a non-zero use count), but a -w option can be specified to "rmmod" to instruct the kernel to remove it once the use-count has decreased to zero.
root@gunjan#rmmod your_module
If you don’t know anything about “lsmod” then please read it first
You can insert the module in Kernel by using “insmod” but remember you require root login details.For the 2.6 kernel, this must be a kernel object (suffixed with .ko).If symbols exist within the module then they can be initiate at install time through the “insmod”. The following example will explain installing a module with an initial steps.
root@gunjan#insmod your_module.ko your_option=1
An error message will occur if there was an error while installing module with the above command.
You can also check “How to remove modules?“
The “lsmod" command is basically used to check installed module with the kernel.To run "lsmod" command yo require root login details.After login into server run following command.
root@gunjan#lsmod
It will give all modules required with kernel.For example.
root@gunjan#lsmod
Module Size Used by
lockd 61257 0
ipt_owner 6081 4
nls_utf8 6209 0
hfsplus 75589 0
dm_raid45 66509 0
dm_message 6977 1 dm_raid45
dm_region_hash 15681 1 dm_raid45
dm_log 14529 3 dm_mirror,dm_raid45,dm_region_hash
dm_mod 62201 4 dm_mirror,dm_multipath,dm_raid45,dm_log
dm_mem_cache 9537 1 dm_raid45
ipt_REJECT 9537 0
As well as you can also read more on lsmod here
By
Gunjan · October 17, 2009
You can check the file type by using following command from your shell.
root@gunjan#file index.php
It will show following output.
index.php: PHP script text
root@gunjan#file demo_scoredsep.pl
It will show following output.
demo_scoredsep.pl: perl script text
The above commands mostly used while we are not sure about files format.
By
Gunjan · October 15, 2009
This form of hosting is also commonly referred to as a “Virtual Server” or “Bulk Hosting” server because you purchase a set number of domains hosting accounts, or a set amount of disk space and bandwidth, and can manage it yourself without assistance of an Administrator. This gives you most of the control you would have if you had your own “Dedicated Server” without the high setup fees, and ongoing costs of maintaining your own equipment.In short you can also call is as mini server.