KiamOe
Basic Pleskian
Hi I'm struggling to solve this problem related to configuration files. My system appear to run ok, websites are ok.. but this needs fixing so I can upgrade and modify the server. Tips are greatly appreciated:
(CentOS Linux 7.3 / Plesk Onyx 17.0.17)
My server generate error messages like this:
New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 49 of /etc/httpd/conf/plesk.conf.d/vhosts/MY-DOMAIN.conf: SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-m4kTYW' does not exist or is empty .
And this by mail:
Unable to generate the web server configuration file on the host <spaniaonline.com> because of the following errors:
Template_Exception: AH00526: Syntax error on line 49 of /etc/httpd/conf/plesk.conf.d/ip_default/WEBSPACE-DOMAIN.conf:
SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-jjHvIR' does not exist or is empty
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
I'm unable to generate broken config files.. that only generate more similar error messages.
When I go into the Webserver Configurations Troubleshooter I see errors on many config files. Looking at the files there are messages like "This config file can not used, because error appears after including it in configuration."
The file /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php contained lot's of "garbage" like these characters "½ï¿½ï¿½ï¿½ã^U^ÃAc^\ÊÏ^M$-��anÆ^GËZ^SÏ" before and after php code. I removed it.. tried to regenerate files but no change.
That file only have this content, is that correct???
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_12_5');
?>
I have found this resource:
Apache configuration is corrupted: New files of configuration for Apache web server were not built due to errors in configuration templates
it looks similar but the solution provided here don't do much for me. I try to repair files with the following command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain MY-WEBSPACE-DOMAIN.com
The error I get is this one:
The file /usr/local/psa/admin/sbin/httpdmng is part of Plesk distribution. It cannot be run outside of Plesk environment.
The SSL certificate file does not exist on the server for some reason. Certificates on this server generated and renewed using plesk and Let's encrypt.
Any tips are greatly appreciated.
(CentOS Linux 7.3 / Plesk Onyx 17.0.17)
My server generate error messages like this:
New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 49 of /etc/httpd/conf/plesk.conf.d/vhosts/MY-DOMAIN.conf: SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-m4kTYW' does not exist or is empty .
And this by mail:
Unable to generate the web server configuration file on the host <spaniaonline.com> because of the following errors:
Template_Exception: AH00526: Syntax error on line 49 of /etc/httpd/conf/plesk.conf.d/ip_default/WEBSPACE-DOMAIN.conf:
SSLCertificateFile: file '/usr/local/psa/var/certificates/cert-jjHvIR' does not exist or is empty
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
I'm unable to generate broken config files.. that only generate more similar error messages.
When I go into the Webserver Configurations Troubleshooter I see errors on many config files. Looking at the files there are messages like "This config file can not used, because error appears after including it in configuration."
The file /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php contained lot's of "garbage" like these characters "½ï¿½ï¿½ï¿½ã^U^ÃAc^\ÊÏ^M$-��anÆ^GËZ^SÏ" before and after php code. I removed it.. tried to regenerate files but no change.
That file only have this content, is that correct???
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_12_5');
?>
I have found this resource:
Apache configuration is corrupted: New files of configuration for Apache web server were not built due to errors in configuration templates
it looks similar but the solution provided here don't do much for me. I try to repair files with the following command:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain MY-WEBSPACE-DOMAIN.com
The error I get is this one:
The file /usr/local/psa/admin/sbin/httpdmng is part of Plesk distribution. It cannot be run outside of Plesk environment.
The SSL certificate file does not exist on the server for some reason. Certificates on this server generated and renewed using plesk and Let's encrypt.
Any tips are greatly appreciated.