Opened 19 months ago
Closed 19 months 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.
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 19 months ago by
Cc: | Jamie McClelland added |
---|---|
Owner: | set to JaimeV |
Status: | new → assigned |
comment:2 Changed 19 months ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks, Jaime! Everything looks to be in order.
Please login to add comments to this ticket.
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.