• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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