How To Change Apache Server Port in AMPPS

Go to Apache httpd.conf


  • Go to AMPPS control panel.
  • Click on the Settings button which is present on the right side of Apache.
  • Go to Configuration button and select httpd.conf and click to open .


Edit httpd.conf file

  • Look for following lines in httpd.conf file. 

Listen 80                                                                                                                                                                            <

ServerName  127.0.0.1:80

<VirtualHost 127.0.0.1:80>

  • Replace above lines port number with your free port number eg(port no:8080) as shown below.

Listen 8080    

ServerName 127.0.0.1:8080

<VirtualHost 127.0.0.1:8080>

  • Save httpd.conf file.


Edit httpd-ssl.conf file

  • Similarly, edit httpd-ssl.conf file for that you will get httpd-ssl.conf option below httpd.conf in AMPPS panel.
  • Look for following lines in httpd-ssl.conf file 

Listen 443 

<VirtualHost _default_:443>

ServerName localhost:443


  • Replace above lines port number with your free port number eg(port no:8081) as shown below.

Listen 8081

<VirtualHost _default_:8081>

 ServerName localhost:8081

  • Save httpd-ssl.conf file.


Restart Apache server

  • Now Restart Apache server.


If you face any issues, please open a support ticket with us.

    Was this page helpful?

    Download AMPPS

    Subscribe to our Newsletter for any and all AMPPS related news and tutorials
    By entering your email, you agree to our Terms of Service and Privacy Policy.

    Tell your Friends about AMPPS


    Newsletter Subscription
    Subscribing you to the mailing list