ABHIONLINUX
Site useful for linux administration and web hosting

2010/10/03

how to set time zone in VPS node (OpenVZ)

Below is the steps to set the time zone for a particular node in VPS.

1. Login to the main node.(SSH).
2. Stop the node(container) which you want to set time.
   # vzctl stop 777
            777 = Container ID
3.Set the container to have capability to change the time zone.
   # vzctl set 777 --capability sys_time:on --save

4. Start the container and login to it.
   # vzctl start 777
   # vzctl enter 777
5. Change your local timezone.
   # mv /etc/localtime /etc/localtime_bk
   # ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
6. Set the date
   # date 100318312010
  time has been set to 18.31 on 3rd Oct 2010
  (10-Month, 03-Day, 06-Hours,  31-Minutes,  2010 -Year

2010/09/25

Phpmotion : Uploading video asks .pl-File to download

When we try to upload videos in to phpmotion, it will be asking to download uu_upload.pl.

If you are getting the download an upload script fo video, it means that your site is not executing the script but it is treating as plain text type doc. what we have to do is to make your site to run .pl and .cgi files.

For this, you need to check the permission of cgi-bin folder and files inside it,. it should be 755.

To make your cgi and pl files to be run in your site, you need to add the following lines in your htaccess.
===============================
AddHandler cgi-script .cgi .pl
Options +ExecCGI Options +ExecCGI