Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th June 2013, 23:03
tio289 tio289 is offline
Member
 
Join Date: Mar 2009
Posts: 70
Thanks: 2
Thanked 14 Times in 9 Posts
 
Default Cannot set/change open_basedir via remote api

Hi all,

I cannot set php open_basedir via remote api. I need create subdomain and change basedir one directory up, but it not work.

PHP Code:
$params = array(
'server_id' => 1,
'ip_address' => '*',
'type' => 'vhostsubdomain',
'parent_domain_id' => $this->repo->site_id,
'domain' => $this->branch.'.'.$this->repo->site_domain,
'web_folder' => $document_root// sub_somebranch/public
'errordocs' => 0,
'subdomain' => 'none',
'suexec' => 'y',
'php' => 'fast-cgi',
'active' => 'y',
'hd_quota' => 1000,
'traffic_quota' => '-1',
'allow_override' => 'All',
'php_open_basedir' => $parent_document_root.DIRECTORY_SEPARATOR.'sub_'.$this->branch// /var/www/clients/client1/web36/sub_somebranch
'pm_max_children' => 10,
'pm_start_servers' => 2,
'pm_min_spare_servers' => 1,
'pm_max_spare_servers' => 5,
'pm_process_idle_timeout' => 10,
'pm_max_requests' => 0,
);
                
$subdomain_id IspconfigRemote::sites_web_vhost_subdomain_add($this->client_id$params); 
It always generate open_basedir with full path to document root. (/var/www/clients/client1/web36/sub_somebranch/public)

I also try update subdomain via remote api and it was too unsucces.

When I update open_basedir via control panel, it shows me full path, but in db changes to only parrent domain (/var/www/clients/client1/web36), which solves problem with current subdomain, but I need it fully automatic, users cant go to CP edit basedir whe they publish branch.

Would somebody help me? Also vhost_subdomain api is undocumented
__________________
Independent Senior Webdeveloper
Reply With Quote
Sponsored Links
Reply

Bookmarks

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
List all websites via ISPConfig remote API todx Developers' Forum 4 9th April 2014 01:54
Remote API Problem djmostek Installation/Configuration 4 23rd July 2012 23:22
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
added client through remote api can't add database paddox Developers' Forum 2 27th February 2012 12:59
[Info] Remote Desktop Solutions for Linux mar.and65 Desktop Operation 0 27th April 2011 07:05


All times are GMT +2. The time now is 14:01.


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