Alright, this might seem like a stupid question - but let me explain ...
We are using ISPCP automation to set up a hosting environment where users can easily set up an account and get some default web applications available in their web root - all set up ready to go.
I saw the other thread where a guy was asking about pretty much the same I am here - and there till showed some nice example code on how to extend server.php to run some code whenever it was done doing its work - which then could be used to copy files to the users web root.
I have not explored this approach myself yet - as I have a more fundamental problem/question on my mind:
When the heck does server.php run? The Cron entry makes little sense to me - and it seems pretty random when it is invoked on my server. Sometimes directories pop up within seconds - sometimes it takes as much as 5 to 10 minutes before web directories are created.
Furthermore - invoking server.sh manually has varied results. Sometimes I get the "finished." message. Sometimes nothing. Sometimes I get the updating message - but still no new directories. Then they magically appear minutes later.
Logging seems to be broken as well - I have edited the config file and set debug level to 0 and looked through the code closely - but still nothing makes it to my log file. This makes me suspect something bad is going on...
As you can expect, this is leaving me somewhat confused. The thing is, we are building our system as a wizard type of thing at the end of which we want to take the user to their new site immediatly - So time is an issue here.
If your answer is: Your system is effed up - reinstall and try again - Then I'd say: Alright, fine, I kind of expected that answer