Article ID: 112918, created on Jan 9, 2014, last review on May 6, 2014

  • Applies to:
  • Plesk 10.4 for Linux/Unix

Sintomi

Nel tentativo di spostare la directory "vhosts" verso un'altra posizione mediante l'utility /usr/local/psa/bin/transvhosts.pl, compare un messaggio di errore come quello seguente:
 
# /usr/local/psa/bin/transvhosts.pl --dest-dir /var/www/vhosts2/ --correct-scripts
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
PleskUtilException: '/usr/local/psa/admin/bin/apache-config' '-t' failed with code 1.
Potrebbero anche comparire i seguenti errori:

Syntax error on line 7 of /usr/local/psa/admin/conf/generated/13224733550.42682300_server.include: 
DocumentRoot must be a directory 
 
file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php 
line: 98 
code: 0 
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(3, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction)) 
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(3, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log)) 
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('496c168816308e4...', Array, Object(Service_Agent_Log)) 
#3 /usr/local/psa/admin/plib/Template/Writer/Apache.php(58): Service_Agent->commit() 
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(196): Template_Writer_Apache->test() 
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array) 
#6 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(125): Template_Configuration_Applier->applyConfiguration(true) 
#7 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(313): WebServerManager_Adapter_Apache->sync() 
#8 /usr/local/psa/admin/plib/WebServerManager.php(199): WebServerManager_Adapter_Apache->reconfigureServer(Object(Db_Table_Row_ServiceNode)) 
#9 /usr/local/psa/admin/plib/api-common/Httpdmng.php(123): WebServerManager->reconfServer() 
#10 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct() 
#11 {main} 
 
2011-11-28T16:42:36+07:00 ERR (3): Apache config (13224733550.42682300) generation failed: Syntax error on line 7 of /usr/local/psa/admin/conf/generated/13224733550.42682300_server.include: 
DocumentRoot must be a directory 
 
Syntax error on line 7 of /usr/local/psa/admin/conf/generated/13224733550.42682300_server.include: 
DocumentRoot must be a directory 
 
PleskUtilException: /usr/local/psa/admin/bin/httpdmng '--reconfigure-server' '-no-restart' failed with message: Empty error message from utility. 
file: /usr/local/psa/admin/plib/common_func.php3 
line: 1047 
code: 0 
trace: #0 /usr/local/psa/admin/plib/common_func.php3(965): util_exec('httpdmng', Array, Array, 'msg', NULL) 
#1 /usr/local/psa/admin/plib/Os.php(17): smart_exec('httpdmng', Array, Array, 'msg') 
#2 /usr/local/psa/admin/plib/Os.php(28): Os::exec('httpdmng', Array, 'msg') 
#3 /usr/local/psa/admin/plib/api-common/Httpdmng.php(93): Os::execEx('httpdmng', Array) 
#4 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct() 
#5 {main} 
 
Execution failed. 
Command: httpdmng 
Arguments: Array 
[0] => --reconfigure-server 
[1] => -no-restart 
)

Soluzione

Usare il file in allegato per eseguire questo comando:
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/api-cli/service_node.php --update local

Attachments

e8756e9388aeca36710ac39e739b2b37 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF