- Server operating system version
- AlmaLinux 9.1
- Plesk version and microupdate number
- 18.0.51 Update #1
Moving vhosts to a new drive following the documentation. The result is that the Apache default DocumentRoot is not updated:
The variable is updated correctly in the psa.conf:
Some other tools (e.g. the 'plesk repair fs' tool) also fails to see the updated configuration.
If I move the vhosts directory back, everything goes back to normal.
Any ideas of why the $VAR->server->webserver->httpDir is not getting set to the new value?
Bash:
# plesk bin transvhosts.pl --dest-dir /mnt/data/vhosts/ --correct-scripts
Moving files to new directory...
Correct psa configuration file...
Correct passwd file...
Correct php-fpm pools configuration...
Restart plesk-php74-fpm service...
Correct Fail2Ban jails configuration...
ERROR:__main__:Iptables action with name="apache" already exists in jail apache-xmlrpc
File "/etc/fail2ban/jail.local" was stored successfully.
OK
Correct database...
Update hosting settings...
done
Update subdomains settings...
done
Update system users settings...
done
Update aps resources parameters...
done
Call to undefined method Service_Agent_Transport_Local::checkConnection()
Reconfigure aps applications...
done
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)
Details: [2023-04-12 06:30:47.721] 20555:6436b287af7b4 ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2023-04-12 06:30:48.462] 20555:6436b287af7b4 ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2023-04-12 06:30:48.950] 20555:6436b287af7b4 ERR [panel] Apache config (16813062470.34584500) generation failed: Template_Exception: AH00526: Syntax error on line 8 of /etc/httpd/conf/plesk.conf.d/server.conf:
DocumentRoot '/var/www/vhosts/default/htdocs' is not a directory, or is not readable
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00526: Syntax error on line 8 of /etc/httpd/conf/plesk.conf.d/server.conf:
DocumentRoot '/var/www/vhosts/default/htdocs' is not a directory, or is not readable
Can`t reconfigure web server
Correct user scripts...
The variable is updated correctly in the psa.conf:
Bash:
# grep -r HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /mnt/data/vhosts
Some other tools (e.g. the 'plesk repair fs' tool) also fails to see the updated configuration.
If I move the vhosts directory back, everything goes back to normal.
Any ideas of why the $VAR->server->webserver->httpDir is not getting set to the new value?