Thursday, January 14, 2010

Howto: enable TUN module on a VPS

TUN module is required to configure VPN tunneling and to configure VPN on a VPS, you need to enable the module from the Hardware node. Login to your Host server and execute the following command:

First check if the TUN module is enabled on the hardware node:

lsmod | grep tun

If not, load the module using modprobe:

modprobe tun

Now, enable the TUN module on a VPS:

vzctl set VEID  devices c:10:200:rw  save
vzctl exec VEID mkdir -p /dev/net
vzctl exec VEID mknod /dev/net/tun c 10 200
vzctl exec VEID chmod 600 /dev/net/tun

where, VEID is the VPS ID you want to enable the TUN module on.

Wednesday, January 13, 2010

Fantastico shows error 'You cannot install more than one script in the root directory of a domain'

1. Login to your  cpanel
2. Go to "file manager"
3. click on the ".fantasticodata" folder
4. open up "installed_in_root.php" and edit it.

This is an example of what I mean:

If you open up "installed_in_root.php" you will see something like this:

$installed_in_root["domain.com"] = 1;

This is what you need to delete.

(this is just an example from my "installed_in_root,php" file).

Keep in mind that every install of wordpress you have made will be stored in this file, be very carefull not to delete any of your other wordpress sites out of it.

I hope this makes sense lol, I'm not very good at explaining things.

Change Time Zone for a particular account on cpanel server

To change the timezone for only a particular account using .htaccess:

SetEnv TZ