# Service and Package Management

ServBay provides various ways to manage services and packages, including quick management, comprehensive service management, and package updates.

# Quick Service Management

# 1. macOS Menu Bar

In the macOS menu bar at the top right, the ServBay icon provides options for quick service management.

  • View Service Status: Click the ServBay icon to see the current status of services.
  • Start Services: Click the start button to quickly start all services.
  • Stop Services: Click the stop button to quickly stop all services.
  • Restart Services: Click the restart button to quickly restart all services.
ServBay Menubar Icon

# 2. ServBay Dashboard

In the ServBay dashboard's top right corner, there are buttons for quick service management.

  • Quick Actions: Provides quick options for starting, stopping, and restarting.
ServBay Dashboard Quick Actions

# Service and Package Management

On the "Services" page in ServBay, you can perform comprehensive service and package management, including viewing the status, PID, and version information of all services, as well as starting, stopping, restarting, upgrading, etc.

ServBay Services
  1. View Service List:

    • On the "Services" page, all available services (packages) are listed.
    • Each software's current version, latest version, current status, PID, activation status, etc., are displayed.
  2. Control Buttons:

    • Each service has independent control buttons on the right, including start, stop, restart, and other operations.
  3. Upgrade Services:

    • If there is a newer version available, an upgrade prompt and button will appear next to the latest version.
    • Clicking the upgrade button will automatically update the service to the latest version and restart it to use the latest version.
  4. Install Services:

    • If the software package for a service is not installed (current version displayed as "-"), and the latest version is shown online.
    • There is an "Install" button on the far right; clicking it will download the latest available version online and install it.
  5. Uninstall Services:

    • For installed software packages, there is an "Uninstall" button on the far right; clicking it will uninstall the locally installed software package.
  6. Activate/Deactivate Services:

    • There is a toggle button under "Activate" to enable or disable a service.
  7. View Service Logs:

    • Each running service has a log icon on the far right; clicking it allows you to view the log for that service. For more information, please refer to the Viewing Logs document.
  8. Run Multiple PHP Versions:

    • It is currently supported to run multiple PHP versions simultaneously.
    • You can set the default version on the "Settings" page. After setting the default version, there is a pin icon 📌 next to the service name, indicating that this version will be the default version when running commands in the command line. For specific steps, please refer to the Set Default Package Version document.
    • You can view the PHP modules included in each version on the PHP Versions and Modules (opens new window) page.
  9. Special Notes for MariaDB and PostgreSQL:

    • Only one MariaDB or PostgreSQL instance can run at a time.
    • Each minor version will share a database with the major version.

Tip

  • For example, MariaDB 11.0.1 and 11.0.2 share a database with major version 11.0.
  • But MariaDB 10.5.22 and MariaDB 11.1.2 do not share a database because the major versions are different; one is 10.5, and the other is 11.1.

# Service and Package List

Refer to Current Supported Services and Versions by ServBay (opens new window).

Last Updated: 4/24/2024