> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loupp.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PHP

> Manage PHP versions and configuration settings on your servers in Loupp

## Overview

PHP configuration management allows you to control PHP versions, execution limits, and performance settings for your web applications. Loupp provides an intuitive interface for managing PHP settings without requiring manual server configuration.

## PHP Version Management

### Current PHP Version

The PHP management interface displays your server's current PHP configuration:

* **Active Version**: Currently running PHP version
* **Available Versions**: List of PHP versions you can switch to
* **Version Status**: Information about the current version's capabilities

<Info>
  PHP version changes are applied immediately and affect all web applications running on the server.
</Info>

### Switching PHP Versions

<Steps>
  <Step title="Select new version">
    Choose the desired PHP version from the dropdown menu of available versions.
  </Step>

  <Step title="Apply changes">
    Click "Switch Version" to begin the PHP version change process.
  </Step>
</Steps>

<Warning>
  Changing PHP versions may affect application compatibility. Test your applications after version changes.
</Warning>

## Available PHP Versions

Loupp supports multiple PHP versions to meet different application requirements:

* PHP 8.4
* PHP 8.3
* PHP 8.2
* PHP 8.1
* PHP 8.0
* PHP 7.4

<Tip>
  Choose the PHP version that best matches your application requirements and compatibility needs.
</Tip>

## PHP Configuration Settings

### Max Execution Time

Control how long PHP scripts can run:

<Steps>
  <Step title="Access execution time setting">
    Locate the "Max Execution Time" section in the PHP configuration interface.
  </Step>

  <Step title="Set time limit">
    Enter the desired execution time in seconds (e.g., 300 for 5 minutes).
  </Step>

  <Step title="Apply changes">
    Click "Save Max Time" to update the configuration.
  </Step>
</Steps>

**Common Settings:**

* **30 seconds**: Default for web requests
* **300 seconds (5 minutes)**: For longer-running scripts
* **600 seconds (10 minutes)**: For intensive operations
* **0**: No time limit (use with caution)

<Warning>
  Setting execution time to 0 (unlimited) can lead to resource exhaustion and server instability.
</Warning>

### Max File Upload Size

Configure the maximum allowed file upload size:

<Steps>
  <Step title="Access upload size setting">
    Locate the "Max File Upload Size" section in the PHP configuration interface.
  </Step>

  <Step title="Set size limit">
    Enter the desired upload size in megabytes (e.g., 64 for 64MB).
  </Step>

  <Step title="Apply changes">
    Click "Save Max Upload" to update the configuration.
  </Step>
</Steps>

**Common Settings:**

* **2MB**: Default limit
* **8MB**: Standard web application limit
* **16MB**: For file-heavy applications
* **64MB**: For large file uploads
* **128MB+**: For specialized applications

<Info>
  Upload size limits affect both individual file uploads and total POST data size.
</Info>
