I had this problem since last night (I run upcp every night by cron). The error_log shows something like this:
Code:
open2: exec of ./domainadmin.orig failed at /usr/local/cpanel/bin/domainadmin line 8
Cpanel::AdminBin::adminrun(domain) set error in context subdomain
Tue Apr 29 01:16:24 2008 warn [subdomain::addsubdomain]: Encountered error in subdomain::addsubdomain: Error from domain wrapper: at /usr/local/cpanel/Cpanel/EventHandler.pm lin
e 48
Cpanel::EventHandler::event(1, 'post', 'subdomain', 'addsubdomain', 'HASH(0xa430f24)', 'ARRAY(0x91c03e8)') called at /usr/local/cpanel/Cpanel/SubDomain.pm line 181
Cpanel::SubDomain::addsubdomain('test', 'amikyapri.ac.id', 0, 0, 'public_html_test') called at cpanel.pl line 3015
main::dosubdomain('addsubdomain($FORM{\'domain\'},$FORM{\'rootdomain\'},0,0,$FORM{\...') called at cpanel.pl line 1762
main::exectag('<cpanel SubDomain="addsubdomain($FORM{\'domain\'},$FORM{\'rootdo...') called at cpanel.pl line 4806
main::dotag('addsubdomain') called at cpanel.pl line 4673
main::cpanel_parseblock('SCALAR(0x919fa24)') called at cpanel.pl line 4625
main::cpanel_parse('GLOB(0x9fa5264)') called at cpanel.pl line 1295
I changed the file /usr/local/cpanel/bin/domainadmin (you can see the changes in diff output), and this problem solved. But I don't think this is the right way. Any enlightenment?
Code:
# diff -Naurp /usr/local/cpanel/bin/domainadmin{.20080429,}
--- /usr/local/cpanel/bin/domainadmin.20080429 2008-04-29 01:21:41.000000000 +0000
+++ /usr/local/cpanel/bin/domainadmin 2008-04-29 01:18:36.000000000 +0000
@@ -5,7 +5,7 @@ open F,">>/tmp/log1";print F "--- input
use FileHandle;
use IPC::Open2;
-$pid = open2(*Reader, *Writer, "./domainadmin.orig ".join(" ",@ARGV) );
+$pid = open2(*Reader, *Writer, "/usr/local/cpanel/bin/domainadmin.orig ".join(" ",@ARGV) );
print Writer @INPUT;
@OUTPUT = <Reader>;
print @OUTPUT;