• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue with Conf files file permissions

Philipp

New Pleskian
Hi,

after a restore and some updates we have issues with Conf file permissions.

Fehler: Aufgrund von Fehlern in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 65 of /etc/httpd/conf/plesk.conf.d/server.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/ip_default/DOMAIN.EXT.conf: Permission denied.

The setup did move the files to a seperate partition on /data/plesk

[root@SERVER ip_default]# ls -al
insgesamt 12
drwxr-xr-x. 2 root root 4096 13. Apr 14:29 .
drwxr-xr-x. 7 root root 4096 13. Apr 14:29 ..
lrwxrwxrwx. 1 root root 78 13. Apr 14:29 DOMAIN.EXT.conf -> /data/plesk/vhosts/system/DOMAIN.EXT/conf/httpd_ip_default.conf

if i look at the rights i see this...

ls -al /data/plesk/vhosts/system/DOMAIN.EXT/conf/httpd_ip_default.conf
-rw-r--r--. 1 root apache 7896 13. Apr 14:29 /data/plesk/vhosts/system/DOMAIN.EXT/conf/httpd_ip_default.conf

When i try to repair the rights..

[root@SERVER ip_default]# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => DOMAINS
)

Details: [2016-04-13 15:46:09] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2016-04-13 15:46:10] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:10] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/beta.DOMAIN-DOMAIN.eu/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN.DOMAIN-DOMAIN.eu.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:10] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.de.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:11] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN.DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN.DOMAIN-DOMAIN.de.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:11] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.de.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:11] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN.DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN.DOMAIN-DOMAIN.de.conf'] with exit code [100]
Error occured while sending feedback. HTTP code returned: 502
[2016-04-13 15:46:11] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN.de.conf'] with exit code [100]
[2016-04-13 15:46:12] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.eu/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.eu.conf'] with exit code [100]
[2016-04-13 15:46:12] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.de.conf'] with exit code [100]
[2016-04-13 15:46:12] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN.DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN.DOMAIN-DOMAIN.de.conf'] with exit code [100]
[2016-04-13 15:46:13] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.com/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.com.conf'] with exit code [100]
[2016-04-13 15:46:14] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN-DOMAIN.de.conf'] with exit code [100]
[2016-04-13 15:46:14] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.de/conf/httpd.conf:/etc/httpd/conf/plesk.conf.d/vhosts/DOMAIN-DOMAIN.de.conf'] with exit code [100]
[2016-04-13 15:46:15] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-l' '/data/vhosts/system/DOMAIN-DOMAIN.eu/conf/httpd_ip_default.conf:/etc/httpd/conf/plesk.conf.d/ip_default/DOMAIN-DOMAIN.eu.conf'] with exit code [100]
[2016-04-13 15:46:16] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2016-04-13 15:46:17] ERR [panel] Apache config (14605551670.62070600) generation failed: Template_Exception: httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 65 of /etc/httpd/conf/plesk.conf.d/server.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/ip_default/DOMAIN-DOMAIN.eu.conf: Permission denied

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 65 of /etc/httpd/conf/plesk.conf.d/server.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/ip_default/DOMAIN-DOMAIN.eu.conf: Permission denied


Ideas?
 
Last edited:
BTW, for relocation vhosts directory you should use special transvhosts.pl utility:

# plesk bin transvhosts.pl --help
You should specify destination directory.
Utility to transfer vhosts content from HTTPD_VHOSTS_D directory to new place.

Usage:
--dest-dir <path> Destination path. Path to new vhosts directory.
Example: /path/to/new/vhosts.
If directory does not exist it will be created.

--correct-scripts Changes user scripts.
Old vhost path is replaced to new path in content of all files.
 
Back
Top