1.6 KiB
1.6 KiB
System Settings & CLI Integration
Multi-PHP provides a robust way to integrate your local development environment directly into your operating system's command line.
💻 CLI & System PATH Integration
Access your PHP and MariaDB binaries directly from any terminal window (CMD, PowerShell).
Setting Up CLI Access:
- Navigate to
Settings > CLI & Environment Variables. - Enable "System PATH Integration".
- Choose your "Default PHP Version" (this is what runs when you type
phpin a terminal). - Choose your "Default MariaDB Version" (for
mysqlandmariadbcommands). - Click "Sync Commands" to apply changes.
Generated Commands (Aliases):
Multi-PHP automatically creates and manages version-specific commands for you:
php83: Triggers PHP 8.3 binary.php74: Triggers PHP 7.4 binary.mysql: Triggers default MariaDB client.
🛰️ Port Management & Remote Access
Each web and database server has its own port settings in Settings > General.
- Nginx & Apache Ports: Defaults to 80, but can be changed to 8080 or 8888.
- MariaDB Port: Defaults to 3306.
- PHP-FPM Port: Defaults to 9000.
- Allow Remote Access: When enabled, the software listens on
0.0.0.0allowing other devices on your local network to access your development sites.
Warning
You must restart your terminal windows (CMD, PowerShell) for the PATH changes to take effect after clicking "Sync Commands".