Record full error
Get the first real error message with time information in the journal, service and kernel log instead of the general warning on the screen.
SELinux, applies a second access policy after classic user/group permissions. If the service cannot access despite file permissions being correct, the AVC log, file context, port label, and boolean values should be examined.
type=AVC msg=audit: avc: denied { connectto } for pid=1234 comm="nginx"
Permission denied while connecting to upstream
SELinux, applies a second access policy after classic user/group permissions. If the service cannot access despite file permissions being correct, the AVC log, file context, port label, and boolean values should be examined.
Get the first real error message with time information in the journal, service and kernel log instead of the general warning on the screen.
Test service, disk, network, permission, security policy and application configuration separately without changing them at the same time.
The service name, package manager and firewall tool may be different on Ubuntu/Debian and AlmaLinux/Rocky/CloudLinux.
Keep a second session, console, snapshot or current backup for SSH, network, firewall, boot and disk changes.
Do not permanently disable SELinux.
Meaning: SELinux policy operation was blocked.
Possible cause: Incorrect context, port, or boolean.
Meaning: Even with sufficient Unix permissions, MAC policy is blocking.
Possible cause: Incorrect SELinux label.
Meaning: Web service is not allowed to connect to the outside.
Possible cause: httpd_can_network_connect closed.
Meaning: Web service cannot be written to the directory.
Possible cause: Incorrect writable content context.
Meaning: Port is not tagged with service type.
Possible cause: Standard port.
Meaning: Data directory is outside the default location.
Possible cause: Wrong context in your new directory.
Meaning: Container label is inconsistent with volume
Possible cause: Missing container_file_t or relabel.
Meaning: Indicates that the issue is in the SELinux layer
Possible cause: Policy or context missing.
No error records were found matching this expression.
getenforce
sestatus
Shows active mode and policy information.
ausearch -m AVC,USER_AVC -ts recent 2>/dev/null | tail -n 120
Displays the last SELinux restrictions.
ls -Zd /var/www/html /special/webroot 2>/dev/null
matchpathcon /special/webroot 2>/dev/null || true
Displays current and expected context values.
restorecon -nRv /special/webroot
Shows which labels will be corrected without making changes.
getsebool -a | grep -E '^httpd_|^mysql_|^postgresql_'
Displays related boolean services.
semanage port -l | grep -E 'http_port_t|ssh_port_t|mysqld_port_t|postgresql_port_t'
Displays allowed ports for service types.
SELinux should be kept in enforcing mode by default; permanent label management should be handled by policycoreutils-python-utils tools.
rpm -q policycoreutils-python-utilsgetenforceausearch -m AVC -ts recent 2>/dev/null | tailUser isolation, CageFS, and panel-specific context may make the general audit2allow policy risky.
cldetect --detect-edition 2>/dev/null || truecagefsctl --status 2>/dev/null || truesestatusPlesk's producer contexts in vhost and service directories must be preserved; special web root changes should be made with the fcontext rule.
plesk version 2>/dev/null || truels -Zd /var/www/vhosts /var/www/vhosts/system 2>/dev/nullausearch -m AVC -ts recent 2>/dev/null | tailRecord the exact on-screen or logged error message with its timestamp, then test the service, network, disk, and security layers separately.
The package manager, firewall, network manager, and some service names differ by distribution family. The distribution section on the page explains these differences.
A restart may restore service temporarily, but restarting before collecting logs and resource data can hide the root cause.
Read-only diagnostic commands are generally safe. Configuration, firewall, disk, and recovery changes require console access, a backup, and a rollback plan.
The Linux layer is the same, but control-panel service wrappers, firewall plugins, and vendor packages must also be considered.
Keep a second session and the provider console open during SSH, firewall, network, or boot changes.
No. Technical accuracy and coverage provide a strong foundation, but rankings also depend on competition, site authority, internal links, speed, and user behavior.
We analyze Ubuntu, Debian, AlmaLinux, Rocky and CloudLinux service, disk, network, security, performance and boot problems with log data.