• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 12 Move Vhosts error 403

Hog_Duske

New Pleskian
Hi Everyone,

We are using a server with Ubuntu 14.04 LTS and Plesk 12.
When installing plesk, the vhosts directory is automatically created in /var/www/vhosts .
Our problem is that /var is on a 120 GB SSD drive. We would like to move it to /data, which is a 2 TB drive.
Whenever we used:
all we get is ERROR 403 on our demo site. The site was created before the move and we also tried to create it after the move. The Plesk installation is fresh out of the box. There were absoultely no changes to the installation.
Even the domain default or server default pages will not load anymore.

Any help is greatly appreciated.

Thank you!
 
Correct method is transvhost.pl. What sort of error do you have there?
 
Hi,

thanks for the fast response.
I will post the error log as soon as the server is up again. I am currently setting up a fresh installation of Ubuntu and plesk to prevent any fiddling from the previous tries to create an error.
I will post the logs later today.
 
Okay,
here is the console output for executing "transvhost.pl --dest-dir /data/www/vhosts"

Code:
root@h2360773:/usr/local/psa/bin# sudo ./transvhosts.pl --dest-dir /data/www/vhosts
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
[2014-10-30 13:28:16] ERR [util_exec] proc_close() failed
Unable to read apache features from the service node: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
get_apache_path: '/usr/sbin/apache2ctl -V' failed


Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-30 13:28:18] ERR [util_exec] proc_close() failed
[2014-10-30 13:28:20] ERR [util_exec] proc_close() failed
[2014-10-30 13:28:21] ERR [panel] Apache config (14146756980.60393800) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


Can`t reconfigure web server



When executing "transvhost.pl --dest-dir /var/www/vhosts" this is the output:

Code:
root@h2360773:/usr/local/psa/bin# ./transvhosts.pl --dest-dir /var/www/vhosts/
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
The service node 'local' was successfully updated.

I hope you can help me.
Thanks in advance!
 
Last edited:
DocumentRoot must be a directory

Use:

sudo ./transvhosts.pl --dest-dir /data/www/vhosts/

instead of

sudo ./transvhosts.pl --dest-dir /data/www/vhosts
 
Sorry to say, but I still get the same error when running "sudo ./transvhosts.pl --dest-dir /data/www/vhosts/":

Code:
root@h2360773:/usr/local/psa/bin# sudo ./transvhosts.pl --dest-dir /data/www/vhosts/
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
[2014-10-31 08:01:24] ERR [util_exec] proc_close() failed
Unable to read apache features from the service node: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
get_apache_path: '/usr/sbin/apache2ctl -V' failed


Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-31 08:01:27] ERR [util_exec] proc_close() failed
[2014-10-31 08:01:29] ERR [util_exec] proc_close() failed
[2014-10-31 08:01:30] ERR [panel] Apache config (14147424870.50921200) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


Can`t reconfigure web server
 
1. Make sure that SELinux is not enabled with getenforce.
2. Run /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
3. Run /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
4. Run /usr/local/psa/bin# sudo ./transvhosts.pl --dest-dir /data/www/vhosts/
 
Hi,

SELinux was not installed:
Code:
root@h2360773:/usr/local/psa/bin# sudo apt-get remove selinux
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'selinux' is not installed, so not removed
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.

Running "/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair" gives me

Code:
root@h2360773:/usr/local/psa/bin# /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.
 Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
===> Cumulative upgrade and repair of APS controller database has been completed.
===> Cumulative APS controller upgrade and repair (final stage) has been started.
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).

**** Product repair started.

===> Checking for previous installation ... found.
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to find psa database... version is 012000018
Version is OK, no need to create psa database.
 Trying to backup MySQL database... Warning: Not dumping MySQL database 'atmail' as it doesn't exist
done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20141031-081315.dump.gz
 Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
 Trying to backup MySQL database... done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.12.0.18-12.0.18.20141031-081316.dump.gz
===> Cumulative upgrade and repair of APS controller database has been completed.
Connection to APSC DB is possible
===> Cumulative APS controller upgrade and repair (final stage) has been started.
Upgrade or repair for 'apsc' (stage 'post') is not required
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
 Trying to reset database user password for 'pma_6U54bNLI20co@'... done
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
 Trying to resolve hostname 'ip6-allrouters85.214.153.51' and validate its IP address...
Unable to resolve host name.
Please specify the host name in the /etc/hosts file or specify DNS configuration in the /etc/resolv.conf on your system.

ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again

*****  problem report *****
ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again

cat on the log file gives:
Code:
root@h2360773:/usr/local/psa/bin# cat  /var/log/plesk/install/plesk_12.0.18_repair.log
START Bootstrapper 12.0.18 repair AT Fri Oct 31 08:11:43 GMT 2014

**** Product repair started.

===> Checking for previous installation ... found.
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to find psa database... version is 012000018
Version is OK, no need to create psa database.
 Trying to backup MySQL database... Warning: Not dumping MySQL database 'atmail' as it doesn't exist
done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20141031-081143.dump.gz
 Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
 Trying to backup MySQL database... done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.12.0.18-12.0.18.20141031-081144.dump.gz
===> Cumulative upgrade and repair of APS controller database has been completed.
Connection to APSC DB is possible
===> Cumulative APS controller upgrade and repair (final stage) has been started.
Upgrade or repair for 'apsc' (stage 'post') is not required
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
 Trying to reset database user password for 'pma_6U54bNLI20co@'... done
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
 Trying to resolve hostname 'ip6-allrouters85.214.153.51' and validate its IP address...
Unable to resolve host name.
Please specify the host name in the /etc/hosts file or specify DNS configuration in the /etc/resolv.conf on your system.

ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again


===> Restoring database from backup /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20141031-081143.dump.gz


**** Product repair failed.

*****  problem report *****
ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again
STOP Bootstrapper 12.0.18 repair AT Fri Oct 31 08:11:58 GMT 2014
START Bootstrapper 12.0.18 repair AT Fri Oct 31 08:13:14 GMT 2014

**** Product repair started.

===> Checking for previous installation ... found.
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to start service mysql... /usr/sbin/mysqld (pid 5336) is running...
done
 Trying to establish test connection... connected
done
 Trying to find psa database... version is 012000018
Version is OK, no need to create psa database.
 Trying to backup MySQL database... Warning: Not dumping MySQL database 'atmail' as it doesn't exist
done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20141031-081315.dump.gz
 Finishing up upgrade procedures and rerunning previously failed upgrade actions...
===> Cumulative APS controller database (apsc) upgrade and repair has been started.
Upgrade or repair for 'apsc' (stage 'prep') is not required
 Trying to backup MySQL database... done
 MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.12.0.18-12.0.18.20141031-081316.dump.gz
===> Cumulative upgrade and repair of APS controller database has been completed.
Connection to APSC DB is possible
===> Cumulative APS controller upgrade and repair (final stage) has been started.
Upgrade or repair for 'apsc' (stage 'post') is not required
===> Cumulative upgrade and repair of APS controller (final stage) has been completed.
 Trying to reset database user password for 'pma_6U54bNLI20co@'... done
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
Upgrade or repair for 'core' (stage 'prep') is not required
===> Preparing Plesk database upgrade (revertable stage).
 Trying to resolve hostname 'ip6-allrouters85.214.153.51' and validate its IP address...
Unable to resolve host name.
Please specify the host name in the /etc/hosts file or specify DNS configuration in the /etc/resolv.conf on your system.

ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again


===> Restoring database from backup /var/lib/psa/dumps/mysql.preupgrade.12.0.18-12.0.18.20141031-081315.dump.gz


**** Product repair failed.

*****  problem report *****
ERROR while trying to check the hostname
Check the error reason(see log file: /var/log/plesk/install/plesk_12.0.18_repair.log), fix and try again
STOP Bootstrapper 12.0.18 repair AT Fri Oct 31 08:13:28 GMT 2014

Running "/usr/local/psa/admin/sbin/httpdmng --reconfigure-all" gives no output at all. Which is correct, I think.
 
Part 2 of my reply:


Running "sudo ./transvhosts.pl --dest-dir /data/www/vhosts/" give the same error :
Code:
root@h2360773:/usr/local/psa/bin# sudo ./transvhosts.pl --dest-dir /data/www/vhosts/
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
[2014-10-31 08:17:42] ERR [util_exec] proc_close() failed
Unable to read apache features from the service node: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
get_apache_path: '/usr/sbin/apache2ctl -V' failed


Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-31 08:17:45] ERR [util_exec] proc_close() failed
[2014-10-31 08:17:47] ERR [util_exec] proc_close() failed
[2014-10-31 08:17:48] ERR [panel] Apache config (14147434650.59293700) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


Can`t reconfigure web server

ls on "/data/www" gives :
Code:
root@h2360773:/data/www# ls
vhosts
 
Please show me output of getenforce command and fix this problem:

Trying to resolve hostname 'ip6-allrouters85.214.153.51' and validate its IP address...
Unable to resolve host name.
Please specify the host name in the /etc/hosts file or specify DNS configuration in the /etc/resolv.conf on your system.

ERROR while trying to check the hostname
 
The system I am running is Ubuntu 14.04 it does not use SELinux anymore it uses apparmor.

I have uninstalled apparmor right before installing plesk

This was the output when removing apparmor:

Code:
root@h2360773:/data/www# /etc/init.d/apparmor stop
 * Clearing AppArmor profiles cache                                                                                                                                                           [ OK ]
All profile caches have been cleared, but no profiles have been unloaded.
Unloading profiles will leave already running processes permanently
unconfined, which can lead to unexpected situations.

To set a process to complain mode, use the command line tool
'aa-complain'. To really tear down all profiles, run the init script
with the 'teardown' option."
root@h2360773:/data/www# /etc/init.d/apparmor teardown
 * Unloading AppArmor profiles                                                                                                                                                                [ OK ]
root@h2360773:/data/www# sudo apt-get remove apparmor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  apparmor
0 to upgrade, 0 to newly install, 1 to remove and 11 not to upgrade.
After this operation, 1,209 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 174241 files and directories currently installed.)
Removing apparmor (2.8.95~2430-0ubuntu5) ...
 * Clearing AppArmor profiles cache                                                                                                                                                           [ OK ]
All profile caches have been cleared, but no profiles have been unloaded.
Unloading profiles will leave already running processes permanently
unconfined, which can lead to unexpected situations.

To set a process to complain mode, use the command line tool
'aa-complain'. To really tear down all profiles, run the init script
with the 'teardown' option."
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
 
I fixed /etc/hosts

Running getenforce tell me that it is not installed:
Code:
root@h2360773:/usr/local/psa/bin# getenforce
The program 'getenforce' is currently not installed. You can install it by typing:
apt-get install selinux-utils


running /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair this is the output now:

Code:
root@h2360773:/usr/local/psa/bin# /usr/local/psa/bootstrapper/pp12.0.18-bootstra                                                                                                                     pper/bootstrapper.sh

Bootstrap setup actions for Plesk 12.0.18

Usage: bootstrapper.sh <prep-install|post-install|rerun|perform-deferred-actions                                                                                                                     > [component|BASE]
       bootstrapper.sh <repair|perform-deferred-actions>

Running 'bootstrapper.sh repair' with PLESK_INSTALLER_FAST_REPAIR=1 environment
variable set will skip some of the most time-consuming restore actions.

root@h2360773:/usr/local/psa/bin# /usr/local/psa/bootstrapper/pp12.0.18-bootstra                                                                                                                     pper/bootstrapper.sh repair
Started bootstrapper repair procedure. This may take a while.
Certain actions may be skipped if not applicable.

-- Warning: Skipping the data of table mysql.event. Specify the --events option                                                                                                                      explicitly.
 Finishing up upgrade procedures and rerunning previously failed upgrade actions                                                                                                                     ...
===> Cumulative APS controller database (apsc) upgrade and repair has been start                                                                                                                     ed.
===> Cumulative upgrade and repair of APS controller database has been completed                                                                                                                     .
===> Cumulative APS controller upgrade and repair (final stage) has been started                                                                                                                     .
===> Cumulative upgrade and repair of APS controller (final stage) has been comp                                                                                                                     leted.
===> Cumulative Plesk database upgrade and repair (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade and repair of Plesk database (revertable stage) has been completed.
===> Cumulative Plesk upgrade and repair (final stage) has been started.
===> Preparing Plesk upgrade (final stage).
===> Cumulative upgrade and repair of Plesk (final stage) has been completed.
 Reconfiguring mail subsystem...
 Reconfiguring Apache web server...
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
 Reconfiguring ProFTPD FTP server...
 Reconfiguring AWStats web statistics...
 Reconfiguring WatchDog...
 Restoring SELinux contexts...
 Regenerating web servers' configuration files...
 Cleaning active Panel sessions...

Bootstrapper repair finished.
If problems persist, please check installer logs ('/var/log/plesk/install/plesk_12.0.18_repair.log' and '/var/log/plesk/install/plesk_12.0.18_repair_problems.log') for errors.
If you can't resolve the issue on your own, please address Parallels support.

When runninn transvhosts.pl after httpdmng this is the output:
Code:
root@h2360773:/usr/local/psa/bin# ./transvhosts.pl --dest-dir /data/www/vhosts/
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
[2014-10-31 08:33:57] ERR [util_exec] proc_close() failed
Unable to read apache features from the service node: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
get_apache_path: '/usr/sbin/apache2ctl -V' failed


Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-31 08:33:59] ERR [util_exec] proc_close() failed
[2014-10-31 08:34:01] ERR [util_exec] proc_close() failed
[2014-10-31 08:34:02] ERR [panel] Apache config (14147444390.44093800) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


Can`t reconfigure web server
 
Add / symbol at the end of line 16 in file /etc/apache2/plesk.conf.d/server.conf
 
I did as you said.
The line in server.conf was
Code:
DocumentRoot "/var/www/vhosts/default/htdocs"

So I changed it to
Code:
DocumentRoot "/var/www/vhosts/default/htdocs/"


This is the output of transvhosts.pl
Code:
root@h2360773:/usr/local/psa/bin# /etc/apache2/plesk.conf.d/server.conf
-bash: /etc/apache2/plesk.conf.d/server.conf: Permission denied
root@h2360773:/usr/local/psa/bin# sudo nano /etc/apache2/plesk.conf.d/server.conf
root@h2360773:/usr/local/psa/bin# ./transvhosts.pl --dest-dir /data/www/vhosts/
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
[2014-10-31 08:51:17] ERR [util_exec] proc_close() failed
Unable to read apache features from the service node: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
get_apache_path: '/usr/sbin/apache2ctl -V' failed


Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-31 08:51:20] ERR [util_exec] proc_close() failed
[2014-10-31 08:51:22] ERR [util_exec] proc_close() failed
[2014-10-31 08:51:23] ERR [panel] Apache config (14147454800.65751700) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory


Can`t reconfigure web server
 
Please show me output of

/usr/sbin/apache2ctl -V

after

sudo ./transvhosts.pl --dest-dir /data/www/vhosts/
 
This is apache2ctl -V after transvhosts.pl:
Code:
root@h2360773:/var/www/vhosts# /usr/sbin/apache2ctl -V
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory
Action '-V' failed.
The Apache error log may have more information.
 
This is line #16 in server.conf:
Code:
DocumentRoot "/var/www/vhosts/default/htdocs"
Why hasn't it changed to "/data/www/..."
 
This is the e-mail I get from the server whenever the configuration fails:
Code:
Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6

AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:

DocumentRoot must be a directory


file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php

line: 75

code: 0
 
Well. Try to remove file /etc/apache2/plesk.conf.d/server.conf after failing transvhost.pl. Then run /opt/psa/admin/sbin/packagemng -sdf and then /usr/local/psa/admin/sbin/httpdmng --reconfigure-all and check that file /etc/apache2/plesk.conf.d/server.conf recreated with new DocumentRoot
 
I ran transvhosts.pl then I removed the server.conf file, I also ran "packagemng -sdf" (Gives no output).

When running "httpdmng --reconfigure-all" I get the following output:
Code:
root@h2360773:/etc/apache2/plesk.conf.d# sudp /opt/psa/admin/sbin/packagemng -sdf
No command 'sudp' found, did you mean:
Command 'sup' from package 'sup' (universe)
Command 'sfdp' from package 'graphviz' (main)
Command 'sudo' from package 'sudo' (main)
Command 'sudo' from package 'sudo-ldap' (universe)
sudp: command not found
root@h2360773:/etc/apache2/plesk.conf.d# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-server
)

Details: [2014-10-31 09:37:38] ERR [util_exec] proc_close() failed
[2014-10-31 09:37:40] ERR [util_exec] proc_close() failed
[2014-10-31 09:37:41] ERR [panel] Apache config (14147482580.69393600) generation failed: Template_Exception: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/plesk.conf.d/server.conf:6
AH00526: Syntax error on line 16 of /etc/apache2/plesk.conf.d/server.conf:
DocumentRoot must be a directory

This is line #16 of the server.conf
Code:
DocumentRoot "/var/www/vhosts/default/htdocs"

Again, it has not changed to "/data/www/..."
 
Back
Top