Cannot change Virtual hosts root directory

Refers to:

  • Plesk 10.4 for Linux

Created:

2016-11-16 12:59:27 UTC

Modified:

2016-12-21 19:42:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot change Virtual hosts root directory

Symptoms

When you try to move the "vhosts" directory to another place with the /usr/local/psa/bin/transvhosts.pl utility, you get an error message like the following:   # /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.

Also, you can see the following errors:

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 )

Resolution

Use the attached file or execute this command: # /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/api-cli/service_node.php --update local

Have more questions? Submit a request
Please sign in to leave a comment.