• 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.

Issue Unable to repair web server configuration due to AH00526: Syntax error on line 1 of /etc/apache2/plesk.conf.d/server.conf

wesolveproblems

New Pleskian
Firstly, thank you in advance for your assistance!

I am unable to repair web server configuration due to AH00526: Syntax error on line 1 of /etc/apache2/plesk.conf.d/server.conf

This is really strange... First I got this error
Code:
New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/apache2/ports.conf:8 AH00526: Syntax error on line 1 of /etc/apache2/plesk.conf.d/server.conf: Invalid command '\xe2\x88\x91#ATTENTION!', perhaps misspelled or defined by a module not included in the server configuration . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter.

I went to the config troubleshooter and I tried to search in KB which took me to a 404 http://kb.plesk.com/en/products/?id=52&qprod=52

So, I removed those comments from being generated by editing
/usr/local/psa/admin/conf/templates/custom/server.php to comment out //echo AUTOGENERATED_CONFIGS;

Now it seems to think that there is a "-" at the beginning of my /etc/apache2/plesk.conf.d/server.conf - but there isn't one!!

The first chars in that file are `ServerName` here is the error I'm getting when I run plesk repair web:

Code:
  Repair web server configuration for all domains? [Y/n] y


    Repairing web server configuration for all domains. This aspect   


    can be used with individual domains ("plesk repair web            


    example.com"), and on the server level ("plesk repair web") ..... [2020-03-27 03:54:26.415] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/httpdmng' '--reconfigure-all'] with exit code [1] 


Error occured while sending feedback. HTTP code returned: 429


[FAILED]


    - httpdmng failed: Error occured while sending feedback. HTTP


      code returned: 429


      Execution failed.


      Command: httpdmng


      Arguments: Array


      (


          [0] => --reconfigure-server


          [1] => -no-restart


      )


      


      Details: [2020-03-27 03:54:16.435] ERR [util_exec] proc_close()


      failed ['/opt/psa/admin/bin/apache-config' '-t'] with exit code


      [1] 


      [2020-03-27 03:54:23.649] ERR [panel] Apache config


      (15853064500.55699600) generation failed: Template_Exception:


      AH00526: Syntax error on line 1 of


      /etc/apache2/plesk.conf.d/server.conf:


      Invalid command '\xe2\x88\x91', perhaps misspelled or defined


      by a module not included in the server configuration


      


      file:


      /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php


      line: 75


      code: 0


      AH00526: Syntax error on line 1 of


      /etc/apache2/plesk.conf.d/server.conf:


      Invalid command '\xe2\x88\x91', perhaps misspelled or defined


      by a module not included in the server configuration
 
I was following this guide to remove the plesk fingerprints from my http headers and I think that this has something to do with the custom configs mentioned here:

Resolved - Server header

When I remove those custom configs, I am able to rebuild.

How can I safely remove x-powered-by: PleskLin from my http headers?
 
Back
Top