LAMPP: Change Apache Listening Port

Change Apache listening port:
vim /opt/lampp/etc/httpd.conf

Edit line:
Listen 80 (change to 8888)


OPEN port 8888:
vim /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8888 -j ACCEPT

Restart IPTABLES:
/sbin/service iptables
Posted on Categories Linux

Leave a Reply

Your email address will not be published. Required fields are marked *