L
ledj
Guest
Hello
I've made a python script which configures Plesk to use PHP as CGI through mod_fcgid. The script configures and creates a php.ini file, a php wrapper script (also setting immutable bit etc.), and vhost.conf (all created from templates) for every domain. It's all nice and works very nice.
I've tested it manually, and now I want to use the python script in an event handler (physical hosting created/updated), but I can't get the python script to work in the event handlers.
It simply won't execute the script, I've tried several things... Calling the python script from inside a normal bash shell script etc.
I can, however, easily do it with a normal shell script, but as the python script does some pretty neat stuff I aim to use the python script instead.
How do I use it? Or is it impossible? (seems to me that it is :S)
Thanks.
I've made a python script which configures Plesk to use PHP as CGI through mod_fcgid. The script configures and creates a php.ini file, a php wrapper script (also setting immutable bit etc.), and vhost.conf (all created from templates) for every domain. It's all nice and works very nice.
I've tested it manually, and now I want to use the python script in an event handler (physical hosting created/updated), but I can't get the python script to work in the event handlers.
It simply won't execute the script, I've tried several things... Calling the python script from inside a normal bash shell script etc.
I can, however, easily do it with a normal shell script, but as the python script does some pretty neat stuff I aim to use the python script instead.
How do I use it? Or is it impossible? (seems to me that it is :S)
Thanks.