PDA

View Full Version : new virtualhost - creating options question


shrek
23rd June 2009, 13:01
hi, I need to add default mycompany ftp access account to every added site and i want to do it automatically. I have spent few hours searching where are adeed new users for a web,

simply i need to add users like mydomain_clientdomain, with root of /var/www/webxx beeing an user webxx user only and then adding passwords for them ( so echo or adduser + passwd ). Where do i have to search it? i looked threw config.lib.php but I didn';t managed to find where it is added.

till
23rd June 2009, 16:04
There is no local function for this. But you can use the remoting framework:

http://www.ispconfig.org/remoting_plugin.htm

shrek
23rd June 2009, 16:10
theres no functions for this but there are functions that create webs in config.lib.php and other files, something creates user webxx:webxx i need to duplicate that function. With other data

till
23rd June 2009, 16:40
Thats not correct. Look at the remoting framework. You can not use or execute functions from config.lib.php in other files or you mwill mess up your complete setup. config.lib.php contians functions that were executed by the ispconfig server script based on the database, it does not contain functions to add something!