• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Resolved Error in Apache configuration

Dirk

Basic Pleskian
Hi guys,

I am having a lot of errors in my domains:
New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration

I tried:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com

but got the response:
[2016-12-29 22:42:23] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2016-12-29 22:42:24] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2016-12-29 22:42:24] ERR [panel] Apache config (14830477430.05547800) generation failed: Template_Exception: AH00526: Syntax error on line 178 of /etc/apache2/plesk.conf.d/server.conf:
SSLCertificateFile takes one argument, SSL Server Certificate file ('/path/to/file' - PEM or DER encoded)

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00526: Syntax error on line 178 of /etc/apache2/plesk.conf.d/server.conf:
SSLCertificateFile takes one argument, SSL Server Certificate file ('/path/to/file' - PEM or DER encoded)

I checked /etc/apache2/plesk.conf.d/server.conf on line 178 and found following entry:
SSLEngine on
SSLVerifyClient none
SSLCertificateFile ""


So there is no entry in the SSLCertificateFile. What next step should I take? I am helfpful for any ideas.
Btw. - my server is fully functional. SSL works fine.

So I am a little scared to try this next step:
  1. Remove all entries from the psa.Configurations :
    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e"delete from Configurations"
  2. Reconfigure Apache using the httpdmng utility:
    ~# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Is it really safe to do that? And could it bring another result. Because after all the SSLCertificateFile-entry seems to be missing...
 
I checked /etc/apache2/plesk.conf.d/server.conf on line 178 and found following entry:
SSLEngine on
SSLVerifyClient none
SSLCertificateFile ""


So there is no entry in the SSLCertificateFile. What next step should I take? I am helfpful for any ideas.
Btw. - my server is fully functional. SSL works fine.

On my test Debian8 Plesk server I see:

# grep SSLCertificateFile /etc/apache2/plesk.conf.d/server.conf
SSLCertificateFile "/opt/psa/var/certificates/cert80q6EmO"
SSLCertificateFile "/opt/psa/var/certificates/cert80q6EmO"
 
Thnx Igor for pointing into the right direction.
# plesk repair web example.com
failed with the same error-message:
Repairing web server configuration
Repairing web server configuration for the domain
hxxxxxxxx.stratoserver.net ....................................... [2016-12-30 08:27:53] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-domain' 'hxxxxx.stratoserver.net'] with exit code [1]
[FAILED]
- httpdmng failed: [2016-12-30 08:27:53] ERR [util_exec]
proc_close() failed ['/opt/psa/admin/bin/apache-config' '-t']
with exit code [1]
[2016-12-30 08:27:53] ERR [util_exec] proc_close() failed
['/opt/psa/admin/bin/apache-config' '-t'] with exit code [1]
[2016-12-30 08:27:53] ERR [panel] Apache config
(14830828720.51206800) generation failed: Template_Exception:
AH00526: Syntax error on line 178 of
/etc/apache2/plesk.conf.d/server.conf:
SSLCertificateFile takes one argument, SSL Server Certificate
file ('/path/to/file' - PEM or DER encoded)

file:
/opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
AH00526: Syntax error on line 178 of
/etc/apache2/plesk.conf.d/server.conf:
SSLCertificateFile takes one argument, SSL Server Certificate
file ('/path/to/file' - PEM or DER encoded)

Error messages: 0; Warnings: 0; Errors resolved: 0


exit status 1

BUT - after that I tried:
plesk repair all
and that repaired billions of things.
After that: everything worked fine again. I only had to set the ssl-cert for Emails and that's it. Amazing product, this PLESK!!!
 
Back
Top