www/ folder. Every time you start Bearsampp, Apache starts automatically as a Windows service and stays running in the background.
How Apache works in Bearsampp
Apache runs as a Windows service namedbearsamppapache. It handles both plain HTTP traffic and HTTPS (SSL) traffic on separate ports. Bearsampp manages the service lifecycle for you — you start, stop, and restart it from the tray menu rather than from the command line.
Default ports
| Protocol | Default port |
|---|---|
| HTTP | 80 |
| HTTPS (SSL) | 443 |
If another application on your machine already uses port 80 or 443, Apache will fail to start. Use Change port from the tray menu to assign a free port.
Configuration file
The main Apache configuration file is located at:apacheX.X.X with the version you have installed (for example, apache2.4.62). Bearsampp rewrites parts of this file automatically when you change settings through the tray menu, so always use the tray menu for port and module changes rather than editing the file directly when possible.
Tray menu options
Right-click the Bearsampp icon in the system tray, then select Apache to access the following options:Start / Stop / Restart service
Control the Apache Windows service without restarting all of Bearsampp.
Change port
Switch Apache to a different HTTP port. Bearsampp updates
httpd.conf and restarts the service.Access logs
Open the Apache access log to see all incoming requests.
Error logs
Open the Apache error log to diagnose startup failures and runtime errors.
Edit conf
Open
httpd.conf in your default text editor.Check port
Verify whether the configured HTTP port is free or already in use.
Generate SSL certificate
Create a self-signed SSL certificate for local HTTPS development.
Add virtual host
Create a new Apache virtual host for a custom local domain.
Add alias
Map a URL path (for example,
/myapp) to a folder anywhere on your machine.Enabling and disabling Apache modules
Apache ships with many optional modules —mod_rewrite, mod_headers, mod_ssl, and more. You can toggle individual modules on or off without editing httpd.conf by hand:
Toggle a module
Click a module name to enable or disable it. A checkmark indicates the module is currently active.
Switching Apache versions
Bearsampp supports multiple Apache versions. To switch:SSL / HTTPS
To use HTTPS locally, generate a self-signed certificate from the tray menu (Apache → Generate SSL certificate). Your browser will show a security warning for self-signed certificates — you can safely accept it for local development. The SSL configuration lives in:Virtual hosts and aliases
- Virtual hosts let you access projects at a custom domain like
myproject.localinstead ofhttp://localhost/myproject. Add them via Apache → Add a virtual host. - Aliases map a URL path to any folder on your machine. Add them via Apache → Add an alias.
Service details
| Property | Value |
|---|---|
| Service name | bearsamppapache |
| Start mode | Automatic (on Bearsampp launch) |
| Config file | bin/apache/apacheX.X.X/conf/httpd.conf |
