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

Unable to generate the web server configuration file after "upgrade" to V12

JesusGil

New Pleskian
I get this error after upgrade from Parallels Plesk 11.5 for Linux to 12.0.18 (Ubuntu 12.04.4 LTS):

Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certI3Fakms") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0

error_plesk.png

Reconfigure all does not work:

web:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2014-06-22 02:23:16] ERR [util_exec] proc_close() failed [2014-06-22 02:23:21] ERR [util_exec] proc_close() failed [2014-06-22 02:23:22] ERR [panel] Apache config (14033965910.83306400) generation failed: Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certI3Fakms") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certI3Fakms") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed

Regards,
Jesus
 
Last edited:
Try to use following workaround

# cp /opt/psa/var/certificates/certI3Fakms{,.savedbysupport}
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /opt/psa/var/certificates/certI3Fakms -out /opt/psa/var/certificates/certI3Fakms

and rebuild webserver configuration with:

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
 
same issue

my apache2 service is down

The fix not working for me






root@h2241656:/# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: [2014-06-23 11:10:08] ERR [util_exec] proc_close() failed
[2014-06-23 11:10:10] ERR [util_exec] proc_close() failed
[2014-06-23 11:10:11] ERR [panel] Apache config (14035146080.06718100) generation failed: Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed
 
same issue

my apache2 service is down

The fix not working for me






root@h2241656:/# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: [2014-06-23 11:10:08] ERR [util_exec] proc_close() failed
[2014-06-23 11:10:10] ERR [util_exec] proc_close() failed
[2014-06-23 11:10:11] ERR [panel] Apache config (14035146080.06718100) generation failed: Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

But did you

# cp /opt/psa/var/certificates/certLIH59Ov{,.savedbysupport}
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /opt/psa/var/certificates/certLIH59Ov -out /opt/psa/var/certificates/certLIH59Ov

before

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

?
 
yes, sorry, i copy only the last command,


This Error is on my startpage from Plesk

Aufgrund folgender Fehler in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed . Ausführliche Fehlerbeschreibungen wurden Ihnen per E-Mail zugesendet. Bitte lösen Sie das Problem und klicken Sie hier, um die beschädigten Konfigurationsdateien erneut zu erstellen, oder hier, um alle Konfigurationsdateien zu erstellen. Einzelheiten im Configuration Troubleshooter ansehen

The automaticly repair function dont work, error:

Konfigurieren des Webservers nicht möglich:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Error occured while sending feedback. HTTP code returned: 502 Error occured while sending feedback. HTTP code returned: 502 Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2014-06-23 11:55:24] ERR [util_exec] proc_close() failed Error occured while sending feedback. HTTP code returned: 502 [2014-06-23 11:55:26] ERR [util_exec] proc_close() failed Error occured while sending feedback. HTTP code returned: 502 [2014-06-23 11:55:27] ERR [panel] Apache config (14035173240.34185600) generation failed: Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 Error occured while sending feedback. HTTP code returned: 502 nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certLIH59Ov") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode) nginx: configuration file /etc/nginx/nginx.conf test failed
 
Last edited:
Problem after updrage to version 12, "page content not found" it works page

Hi,

I have an issue after using the hotfix for Problems form apache2 service after Upgrade to Version 12.

My Problem is, on every Page appers the Default it Works Page. Also if i use a her webhosting Account with the Default plesk Page.
I think it is a Setting Problem But i cant find it.
 
Try to use following workaround

# cp /opt/psa/var/certificates/certI3Fakms{,.savedbysupport}
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /opt/psa/var/certificates/certI3Fakms -out /opt/psa/var/certificates/certI3Fakms

and rebuild webserver configuration with:

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all

After using the fix, apache start but now I get the default "It Works" page.
 
I have to chime in with the same problem - from the error mail:

"Unable to generate the web server configuration file on the host <xxxxxxxxx> because of the following errors:

Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certrKAR5Gk") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again."

error.jpg
 
Some problem here, after updating from 11.5 to 12.0.18

The webservice cannot start (with the next error)

Error: Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start
('--start', 'web')
 
Bei mir funktioniert auch nicht:

root@hxxxxxxx:~# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-server
[1] => -no-restart
)

Details: [2014-06-25 14:34:29] ERR [util_exec] proc_close() failed
[2014-06-25 14:34:31] ERR [util_exec] proc_close() failed
[2014-06-25 14:34:32] ERR [panel] Apache config (14036996680.20290500) generation failed: Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/cert8vWIBKg") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/cert8vWIBKg") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed
root@hxxxxxxx:~#

Was weiter???
 
I had the same problem that the solution mentioned above did not work. But I got it running:
* Check what the name of your cert is in the /opt/psa/var/certificates/ directory (it's the only one without a hyphen)
* Replace your cert name for certI3Fakms in the commands mentioned above

That did it for me. Apache is running again and no errors on the main page anymore.
 
can anybody show me the content of the certificate on which configuration test failed?
It's in error message:
Code:
 [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/cert...
It can be done with following command:
Code:
 # cat /opt/psa/var/certificates/cert...

You can send the output into PM.
 
Hi Igor,
i have the same problem - please help - our firm pages all offline
thanks
Alois

Aufgrund folgender Fehler in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: Can not restart web server: Service /etc/init.d/apache2 failed to start Service /etc/init.d/apache2 failed to start . Ausführliche Fehlerbeschreibungen wurden Ihnen per E-Mail zugesendet. Bitte lösen Sie das Problem und klicken Sie hier, um die beschädigten Konfigurationsdateien erneut zu erstellen, oder hier, um alle Konfigurationsdateien zu erstellen.

Fehler: Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/apache2 failed to start
Service /etc/init.d/apache2 failed to start
('--start', 'web')


Unable to generate the web server configuration file on the host <h2123992.stratoserver.net> because of the following errors:

Template_Exception: nginx: [emerg] PEM_read_bio_X509_AUX("/opt/psa/var/certificates/certIGHJU52") failed (SSL: error:0906D064:pEM routines:pEM_read_bio:bad base64 decode)
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0

Please resolve the errors in web server configuration templates and generate the file again.
 
Last edited:
Back
Top