Skip to main content
SidsProjectImpact

Back to all posts

How to Configure XAMPP to Use A Different Port?

Published on
3 min read
How to Configure XAMPP to Use A Different Port? image

Best Server Configuration Tools to Buy in August 2026

1 Ansible for DevOps: Server and configuration management for humans

Ansible for DevOps: Server and configuration management for humans

BUY & SAVE
$9.99 $19.99
Save 50%
Ansible for DevOps: Server and configuration management for humans
2 IT-Guy.IO ServerConnect Pro Portable Server Management Tool: USB Crash Cart Adapter – 1920 x 1200 – Portable Laptop USB 2.0 to KVM Console - Datacenter Server Monitor Mouse and Keyboard to USB

IT-Guy.IO ServerConnect Pro Portable Server Management Tool: USB Crash Cart Adapter – 1920 x 1200 – Portable Laptop USB 2.0 to KVM Console - Datacenter Server Monitor Mouse and Keyboard to USB

  • TRANSFORM YOUR LAPTOP INTO A PORTABLE SERVER MANAGEMENT TOOL.
  • CONNECT EASILY WITHOUT SOFTWARE-WORKS WITH MAC AND WINDOWS!
  • GAIN FULL BIOS ACCESS WITH COMPACT, POWER-EFFICIENT DESIGN.
BUY & SAVE
$199.00
IT-Guy.IO ServerConnect Pro Portable Server Management Tool: USB Crash Cart Adapter – 1920 x 1200 – Portable Laptop USB 2.0 to KVM Console - Datacenter Server Monitor Mouse and Keyboard to USB
3 Ubuntu Server 24.04 LTS for Beginners: A Complete Guide to Installing, Configuring, and Managing Ubuntu Servers with Real-World Examples

Ubuntu Server 24.04 LTS for Beginners: A Complete Guide to Installing, Configuring, and Managing Ubuntu Servers with Real-World Examples

BUY & SAVE
$20.00
Ubuntu Server 24.04 LTS for Beginners: A Complete Guide to Installing, Configuring, and Managing Ubuntu Servers with Real-World Examples
4 Ship an MCP Server in Python - Fast: Build, test, and deploy a production-ready MCP server with MCP Inspector, mcp.json, and Streamable HTTP

Ship an MCP Server in Python - Fast: Build, test, and deploy a production-ready MCP server with MCP Inspector, mcp.json, and Streamable HTTP

BUY & SAVE
$6.99
Ship an MCP Server in Python - Fast: Build, test, and deploy a production-ready MCP server with MCP Inspector, mcp.json, and Streamable HTTP
5 Learning Puppet 4: A Guide to Configuration Management and Automation

Learning Puppet 4: A Guide to Configuration Management and Automation

BUY & SAVE
$10.63 $49.99
Save 79%
Learning Puppet 4: A Guide to Configuration Management and Automation
6 Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting

Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting

BUY & SAVE
$24.00 $39.99
Save 40%
Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
7 Mastering System Center Configuration Manager

Mastering System Center Configuration Manager

BUY & SAVE
$40.83 $60.00
Save 32%
Mastering System Center Configuration Manager
8 Mastering Ubuntu Server: Explore the versatile, powerful Linux Server distribution Ubuntu 22.04 with this comprehensive guide

Mastering Ubuntu Server: Explore the versatile, powerful Linux Server distribution Ubuntu 22.04 with this comprehensive guide

BUY & SAVE
$31.72 $43.99
Save 28%
Mastering Ubuntu Server: Explore the versatile, powerful Linux Server distribution Ubuntu 22.04 with this comprehensive guide
+
ONE MORE?

To configure XAMPP to use a different port, follow these steps:

  1. Open the XAMPP installation directory on your computer. This is typically located in the "C:\xampp" folder on Windows or "/Applications/XAMPP" on macOS.
  2. Locate the "httpd.conf" file. In the XAMPP installation directory, navigate to the "apache" folder and then open the "conf" folder.
  3. Open the "httpd.conf" file using a text editor.
  4. In the "httpd.conf" file, search for the line that says "Listen 80". This line specifies the default port 80 for Apache.
  5. Change the "Listen" port number to your desired port. For example, you can change it to "Listen 8080" to use port 8080.
  6. Save the changes and close the "httpd.conf" file.
  7. Now, locate the "httpd-ssl.conf" file within the same "conf" folder.
  8. Open the "httpd-ssl.conf" file using a text editor.
  9. Search for the line that says "Listen 443". This line specifies the default port 443 for SSL connections.
  10. Change the "Listen" port number to the same port you specified earlier for the "httpd.conf" file. So, if you used port 8080, change it to "Listen 8080".
  11. Save the changes and close the "httpd-ssl.conf" file.
  12. Restart the XAMPP control panel or the Apache server for the changes to take effect.

Now, XAMPP will use the new port that you specified for both regular and secured connections. For example, if you changed the port to 8080, you can access your local websites using "http://localhost:8080".

What is the default port for Apache in XAMPP?

The default port for Apache in XAMPP is usually port number 80.

What is the purpose of the SMTP port in XAMPP?

The purpose of the Simple Mail Transfer Protocol (SMTP) port in XAMPP is to establish a communication channel for sending email messages. SMTP is a standard protocol used for sending email across networks, and the SMTP port (usually port 25) is the entry point for email servers to receive outgoing emails from clients, such as web applications running on XAMPP.

In XAMPP, configuring the SMTP port allows the web applications or scripts to utilize the SMTP protocol to send emails from the local development environment. This can be useful during the development phase to test email functionalities without actually sending emails to real recipients.

What is the significance of the SSL port in XAMPP?

The SSL port in XAMPP is significant because it allows for secure communication between the web server and the client's browser. SSL (Secure Socket Layer) is a protocol that encrypts the data transmission between the server and the client, ensuring that sensitive information such as passwords, credit card details, etc., cannot be intercepted or tampered with by unauthorized individuals.

Enabling SSL port in XAMPP provides an added layer of security for websites and web applications that handle sensitive data. It allows for secure HTTPS connections, ensuring that the data sent between the server and the client is encrypted and protected from potential threats or attacks.

By default, XAMPP uses port 443 for SSL connections. This port is globally recognized for secure HTTPS communication and is trusted by most web browsers and operating systems.

In summary, the SSL port in XAMPP is significant as it enables secure communication, protects sensitive information, and enhances the overall security of websites and web applications.