Default ports
| Service | Default port | Notes |
|---|---|---|
| Apache (HTTP) | 80 | Standard HTTP port |
| Apache (HTTPS/SSL) | 443 | Standard HTTPS port |
| MySQL | 3306 | Standard MySQL port |
| MariaDB | 3307 | Uses a different port from MySQL to avoid conflicts when both are running |
| PostgreSQL | 5432 | Standard PostgreSQL port |
| Mailpit (SMTP) | 1025 | SMTP port for capturing outgoing mail |
| Mailpit (Web UI) | 8025 | Browser interface for viewing captured emails |
| Memcached | 11211 | Standard Memcached port |
| Xlight (FTP) | 21 | Standard FTP port |
How to change a port
Right-click the Bearsampp tray icon
Find the Bearsampp bear icon in the Windows system tray (bottom-right corner of your taskbar) and right-click it.
Open the service menu
Hover over the name of the service whose port you want to change — for example, Apache, MySQL, or MariaDB.
Click Change port
In the service submenu, click Change port. A dialog box opens showing the current port number.
Enter the new port number
Type the new port number in the input field. Port numbers must be between
1 and 65535. Ports below 1024 require Administrator privileges.Checking whether a port is available
Before assigning a new port, you can verify it is not already in use by another application.Port conflict detection
When Bearsampp starts a service, it automatically checks whether the configured port is already in use. If a conflict is detected, Bearsampp will:- Show an error message identifying which process is occupying the port.
- Leave the service stopped rather than forcibly taking the port.
Windows services such as IIS (Internet Information Services) often occupy port
80 or 443 by default. If Apache fails to start, check whether IIS is running on your system.