views:

126

answers:

0

I am using windows server 2008 + Plesk to setup website.

I have certain program want to install in subfolder. eg: trial.blablabla.com/username1 eg: trial.blablabla.com/username2 eg: trial.blablabla.com/username5

So everytime when there's a new installation, I will insert it into database and it as pending status.

Then every minute, .vbs win scheduler file will do api call to check the database whether got any pending installation, if yes, then carry out file moving inside the server itself, as well as doing other task like new db creation, new db user creation, sql insertion etc.

However, there's a win scheduler issue. The task need 55 secons to 1.5 minutes to complete. Before the whole task completed, the same scheduler do a call again, because 1 minute reach, so I don't have a chance to complete the task and mark the installation as completed.

I personally don't know whether there's some way to install without using .vbs.

I found that if I want to perform cross domain task from a domain itself, it just won't work, due to permission issue by windows and plesk.

Eg: at domain.com/install.asp, I not able to trigger file moving into blablabla.com/trial/username folder

Also, not to say, plesk create IUSR and IWAM randomly, so I can't guess it and programatically assign folder permission to perform cross domain task.

This issue forced me to use vbs....