Troubleshooting Installation Problems
Troubleshooting Installation Problems
Systematic troubleshooting reveals installation issues quickly. Check web server error logs for specific error messages. Verify certificate-key correspondence using modulus comparison. Test configurations before reloading services.
Diagnostic commands:
# Verify certificate and key match
openssl x509 -noout -modulus -in server.crt | md5sum
openssl rsa -noout -modulus -in private.key | md5sum
# Test Nginx configuration
nginx -t
# Test Apache configuration
apachectl configtest
# Check certificate expiration
echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates
# Monitor real-time errors
tail -f /var/log/nginx/error.log
tail -f /var/log/apache2/error.log