php.ini settings so you can match the environment your project requires.
Multiple PHP versions
You can have several PHP versions installed at the same time. Only one version is active at a given moment, and it is shared by Apache. Switch versions without restarting your machine:Configuration file
Each PHP version has its ownphp.ini file located at:
phpX.X.X with the version you are using (for example, php8.3.0). You can open this file directly from the tray menu.
Tray menu reference
Right-click the tray icon → PHP to access:Edit php.ini
Open the active
php.ini in your default text editor.Versions
Switch to a different installed PHP version.
Extensions
Enable or disable individual PHP extensions.
Settings
Toggle common
php.ini directives without editing the file manually.Logs
Open the PHP error log to see runtime errors and warnings.
Managing extensions
PHP extensions add capabilities to the language — database drivers, image processing, cryptography, and more. Bearsampp lets you toggle them without editingphp.ini by hand.
Enabling an extension only works if the corresponding
.dll file exists in bin/php/phpX.X.X/ext/. If you do not see an extension listed, the DLL is not bundled with that PHP version.Adjusting PHP settings
Commonphp.ini directives — such as display_errors, short_open_tag, file_uploads, and session settings — can be toggled through the tray menu:
Right-click the tray icon → PHP → Settings → click a setting to flip it on or off.
For settings that are not exposed in the tray menu, open php.ini directly (PHP → Edit php.ini), make your changes, and save. Then restart Apache for the changes to take effect.
PEAR
PHP Extension and Application Repository (PEAR) is bundled with each PHP version in Bearsampp. Thepear executable is located alongside the PHP binary in bin/php/phpX.X.X/. You can run PEAR commands from the PHP or Git console.
Accessing PHP logs
PHP errors are written to a dedicated log file. To open it: Right-click the tray icon → PHP → Logs. You can also tail the log file directly. It is stored in the Bearsampplogs/ folder as php_error.log.
Service details
| Property | Value |
|---|---|
| Config file | bin/php/phpX.X.X/php.ini |
| Error log | logs/php_error.log |
| PEAR | Included with each PHP version |
| Version switching | Tray → PHP → Versions |
