Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| selinux_fuer_apache_unter_opensuse_16.0 [2026/06/06 10:42] – wikiwriter | selinux_fuer_apache_unter_opensuse_16.0 [2026/06/06 11:58] (aktuell) – wikiwriter | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Einstellungen für Apache mit SELinux ====== | ====== Einstellungen für Apache mit SELinux ====== | ||
| - | Nach Upgrade auf 16.0 und zur Ersteinrichtung von Apache mit SELinux ist Folgendes zu tun: | + | Nach Upgrade auf 16.0 und zur Ersteinrichtung von Apache mit SELinux ist Folgendes zu tun (als root): |
| Erst einmal alles aufgeführt, | Erst einmal alles aufgeführt, | ||
| - | | + | semanage port -a -t http_port_t -p tcp 3131 |
| - | | + | |
| - | | + | semanage port -a -t ssh_port_t -p tcp 22 # für ssh |
| - | | + | |
| - | | + | |
| - | | + | semodule -i my-httpdprefork.pp |
| - | | + | |
| - | | + | semanage fcontext -a -t httpd_sys_content_t "/ |
| - | | + | restorecon -R / |
| - | * sudo semanage fcontext -a -t httpd_sys_content_t "/ | + | |
| - | | + | |
| - | | + | restorecon -v '/ |
| - | | + | |
| - | | + | semanage fcontext -a -t httpd_sys_content_t "/ |
| + | restorecon -R / | ||
| + | | ||
| + | | ||
| + | restorecon -v '/ | ||
| + | | ||
| + | | ||