Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 14th February 2013, 15:42
NewRehtse NewRehtse is offline
Junior Member
Join Date: Feb 2013
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Default Problem creating a web domain using the remote api

Hello everybody!

I am doing a wizard to create sites and ftp users and I am having issues with the creation of the web domain.

I create using the ispconfig3 functions a client (client_add), a web_domain (sites_web_domain_add) and a ftp user (sites_ftp_user_add) and all of them are listed on the ISPConfig Panel administration.

The problem is that the web domain doesn't work until I go to the panel edit and save it again (without change anything), I think that is something I am not configuring ok on the params or maybe there is another function resync or refresh that I should call.

The params are:

PHP Code:
$default_website_params = array(
'ip_address' => '',
'domain' => $domain,
'type' => 'vhost',
'parent_domain_id' => 0,
'vhost_type' => 'name',
'hd_quota' => 100,
'traffic_quota' => 4000,
'cgi' => 'n',
'ssi' => 'n',
'suexec' => 'n',
'errordocs' => 1,
'is_subdomainwww' => 1,
'subdomain' => 'none',
'php' => 'mod',
'ruby' => 'n',
'redirect_type' => '',
'redirect_path' => '',
'ssl' => 'n',
'ssl_state' => '',
'ssl_locality' => '',
'ssl_organisation' => '',
'ssl_organisation_unit' => '',
'ssl_country' => 'ES',
'ssl_domain' => $domain,
'ssl_request' => '',
'ssl_cert' => '',
'ssl_bundle' => '',
'ssl_action' => '',
'stats_password' => '',
'stats_type' => 'webalizer',
'allow_override' => 'All',
'apache_directives' => '<Directory /var/www/comunes>'.chr(13).' Order allow,deny'.chr(13).' Allow from all'.chr(13).' </Directory> ',
//         'php_open_basedir' => '/var/www/comunes',
'custom_php_ini' => '',
'backup_interval' => 'none',
'backup_copies' => 1,
'active' => 'y',
'traffic_quota_lock' => 'n'
In this way, the web domain is on the ispconfig panel and if i open it and save it works... but it is not what i want.

Other thing I have tried is to set the ip_address to * because it is an * in other domain I have but then I get the error: Error 101 (net::ERR_CONNECTION_RESET).

The code I use to create the web domain is in a function of a class i did:

PHP Code:
public function addWebSite($clientid$params) {
$params['server_id'] = $this->server_id;
            try {
$this->soapClient->sites_web_domain_add($this->session_id$clientid$params$readonly false);
            }  catch (
SoapFault $e) {
                throw new 
IspcfgException($e->getMessage(), 500);
            } catch (
Exception $e) {
                throw new 
IspcfgException($e->getMessage(), 500);
Thank you very much in advance!
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with remote fonction versatile Developers' Forum 1 15th March 2012 09:52
Problem to create a new web domain gillesdevals Installation/Configuration 1 6th February 2012 10:35
[Info] Remote Desktop Solutions for Linux mar.and65 Desktop Operation 0 27th April 2011 08:05
Runaway script creating folders in web root skinner_au General 3 22nd February 2011 18:34
Need some Hints to "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" wahid HOWTO-Related Questions 10 25th August 2010 16:18

All times are GMT +2. The time now is 08:47.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.