44 lines
1.6 KiB
Markdown
44 lines
1.6 KiB
Markdown
# 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:
|
|
1. Navigate to `Settings > CLI & Environment Variables`.
|
|
2. Enable **"System PATH Integration"**.
|
|
3. Choose your **"Default PHP Version"** (this is what runs when you type `php` in a terminal).
|
|
4. Choose your **"Default MariaDB Version"** (for `mysql` and `mariadb` commands).
|
|
5. 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.0` allowing 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".
|
|
|
|
### 📖 Next Steps
|
|
- [Learn about Database Management](./database.md)
|
|
- [System Advanced Tools](./tools.md)
|
|
- [Troubleshooting Common Issues](./troubleshooting.md)
|