GET 70% Discount on All Products Coupon code: "Board70"
Configure Apache to serve content from /webdata on port 8080, allow the port in SELinux, and open it in the firewall.
See the solution below in Explanation.
Solution:
dnf install -y httpd policycoreutils-python-utils
mkdir -p /webdata
echo "RHEL10 Web Server" > /webdata/index.html
sed -i 's/^Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf
semanage port -a -t http_port_t -p tcp 8080
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
systemctl enable --now httpd
systemctl restart httpd
ss -tulpn | grep 8080
Detailed Explanation:
Apache defaults to port 80, so Listen 8080 changes the service port.
SELinux must allow Apache to bind to 8080, which is done with semanage port.
firewall-cmd opens the port externally.
RHEL 10 documents firewalld as the standard firewall management interface and SELinux port labeling for confined services. ( Red Hat Documentation )
Create a new swap file of size 512 MiB at /swapfile, activate it, and make it persistent.
dd if=/dev/zero of=/swapfile bs=1M count=512
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile swap swap defaults 0 0" > > /etc/fstab
swapon --show
dd creates the file.
chmod 600 protects swap contents.
mkswap prepares the file as swap.
swapon activates it now.
/etc/fstab ensures it is enabled at boot.
TESTED 01 May 2026