Hi all,
Mr Admin If i'm posting at the wrong place, feel free to move this post.
I have 2 serveurs, one recent, one older.
OLD :
/etc/redhat-release:CentOS release 6.4 (Final)
/usr/local/cpanel/version:11.54.0.8
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.2.24 (Unix)
Server built: Apr 22 2013 12:09:48
Cpanel::Easy::Apache v3.18.13 rev9999
PHP 5.3.24 (cli) (built: Apr 22 2013 12:15:13)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
mysql Ver 14.14 Distrib 5.6.28, for Linux (x86_64) using EditLine wrapper
RECENT :
/etc/redhat-release:CentOS Linux release 7.2.1511 (Core)
/usr/local/cpanel/version:11.52.2.5
/var/cpanel/envtype:standard
CPANEL=stable
Server version: Apache/2.4.18 (Unix)
Server built: Jan 21 2016 00:35:06
Cpanel::Easy::Apache v3.32.9 rev9999
PHP 5.5.31 (cli) (built: Jan 21 2016 00:37:57)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
mysql Ver 14.14 Distrib 5.5.47, for Linux (x86_64) using readline 5.1
---------
On the old one, I'm using xmlapi.php
* Version: 1.0.13
* Last updated: 19 November 2012
addaddondomain works perfectly on the old one.
$xmlapi->password_auth($cpanel['login'], $cpanel['password']);
$xmlapi->set_port(2083);
$xmlapi->api2_query($cpanel['login'], 'AddonDomain', 'addaddondomain', array('dir' => 'public_html/' . $ndd, 'newdomain' => $ndd, 'subdomain' => preg_replace('/(.+?)\..+/', '$1', $ndd)));
but on the NEW one
The folder : public_html/' . $ndd is never created
I'm not even sure about the rest of the process.
/var/log/messages says :
Feb 4 13:45:51 proftpd: 2016-02-04 13:45:51,514 ***** proftpd[7056] ****: FTP session opened.
Feb 4 13:45:54 proftpd: 2016-02-04 13:45:54,468 ***** proftpd[7056] ****: USER panel1: Login successful.
Nothing more.
Did i missed something ? Do i have a deprecated xmlapi.php ?
Thank you for your help.
Mr Admin If i'm posting at the wrong place, feel free to move this post.
I have 2 serveurs, one recent, one older.
OLD :
/etc/redhat-release:CentOS release 6.4 (Final)
/usr/local/cpanel/version:11.54.0.8
/var/cpanel/envtype:standard
CPANEL=release
Server version: Apache/2.2.24 (Unix)
Server built: Apr 22 2013 12:09:48
Cpanel::Easy::Apache v3.18.13 rev9999
PHP 5.3.24 (cli) (built: Apr 22 2013 12:15:13)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
mysql Ver 14.14 Distrib 5.6.28, for Linux (x86_64) using EditLine wrapper
RECENT :
/etc/redhat-release:CentOS Linux release 7.2.1511 (Core)
/usr/local/cpanel/version:11.52.2.5
/var/cpanel/envtype:standard
CPANEL=stable
Server version: Apache/2.4.18 (Unix)
Server built: Jan 21 2016 00:35:06
Cpanel::Easy::Apache v3.32.9 rev9999
PHP 5.5.31 (cli) (built: Jan 21 2016 00:37:57)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
mysql Ver 14.14 Distrib 5.5.47, for Linux (x86_64) using readline 5.1
---------
On the old one, I'm using xmlapi.php
* Version: 1.0.13
* Last updated: 19 November 2012
addaddondomain works perfectly on the old one.
$xmlapi->password_auth($cpanel['login'], $cpanel['password']);
$xmlapi->set_port(2083);
$xmlapi->api2_query($cpanel['login'], 'AddonDomain', 'addaddondomain', array('dir' => 'public_html/' . $ndd, 'newdomain' => $ndd, 'subdomain' => preg_replace('/(.+?)\..+/', '$1', $ndd)));
but on the NEW one
The folder : public_html/' . $ndd is never created
I'm not even sure about the rest of the process.
/var/log/messages says :
Feb 4 13:45:51 proftpd: 2016-02-04 13:45:51,514 ***** proftpd[7056] ****: FTP session opened.
Feb 4 13:45:54 proftpd: 2016-02-04 13:45:54,468 ***** proftpd[7056] ****: USER panel1: Login successful.
Nothing more.
Did i missed something ? Do i have a deprecated xmlapi.php ?
Thank you for your help.