Function server_forge::deployment::deploy_php

source ·
pub fn deploy_php(server_role: &str) -> Result<(), Box<dyn Error>>
Expand description

Deploys and configures PHP.

This function installs PHP and related packages using the appropriate package manager. It also installs additional modules based on the server role (e.g., libapache2-mod-php for web servers).

§Arguments

  • server_role - A string slice representing the role of the server (e.g., “web”)

§Returns

Returns Ok(()) if PHP is deployed successfully, or an error if deployment fails.