Opened 13 days ago

Closed 12 days ago

#14867 closed Bug/Something is broken (fixed)

Soft error when updating Web Configuration

Reported by: Joseph Owned by: JaimeV
Priority: Medium Component: Tech
Keywords: Cc: Jamie McClelland
Sensitive: no

Description

Hey y'all,

I was upgrading the PHP version from 7.0 to 7.1 for thenewpress.com and red returned a soft error about a missing SSL certificate key,

Error! 2019-07-07 10:14:29 Failed apache check syntax command! There is probably a typo or other mistake in your apache settings. Output: AH00526: Syntax error on line 26 of /etc/apache2/sites-enabled/site101876.ssl.conf: SSLCertificateKeyFile: file '/etc/letsencrypt/live/thenewpress.com/privkey.pem' does not exist or is empty.

https://members.mayfirst.org/cp/index.php?area=hosting_order&service_id=7&hosting_order_id=1000693&action=edit&item_id=101876

PHP did upgrade, and the site is loading correctly (probably because Apache didn't restart when it found this error).

Based on a listing of /etc/letsencrypt/live/ it looks like the directory structure changed. I could edit the VHost file directly and fix the old naming convention if that's the solution, but I wanted to check-in before doing that.

Joseph

Change History (2)

comment:1 Changed 13 days ago by JaimeV

Cc: Jamie McClelland added
Owner: set to JaimeV
Status: newassigned

There have been changes to the directory structure and this error seems to be triggered whenever updating a web config that is still making reference to the older cert names. I was able to fix it by deleting the apache condig file # rm /etc/apache2/sites-enabled/site101876.ssl.conf switching to http only and then back to https enable to allow red to regenerate the new config file correctly.

comment:2 Changed 12 days ago by Joseph

Resolution: fixed
Status: assignedclosed

Thanks, Jaime! Everything looks to be in order.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.