Apache PHP
Apache PHP
The platform adapts the open-source Apache HTTP Server to provide a secure, efficient, and scalable PHP application server. The stack includes built-in PHP support and HTTP/2 support when SSL is enabled.
Apache PHP Overview
The Apache PHP stack provides PHP execution through the Apache PHP module and supports HTTP/2 through the Apache HTTP/2 module. SSL is required for HTTP/2.
- The template uses the modern
systemdinitialization daemon. - Use
apachectl -Mto display the loaded Apache modules. - The default
phpinfopage also shows loaded modules and PHP runtime settings.

Create an Apache PHP Environment
Open the environment wizard
Sign in to the dashboard and click New Environment.

Select Apache
Open the PHP tab, choose Apache, and configure Cloudlet limits, Public IP, region, and other required settings.

Create the environment
Enter the environment name and click Create.
Open and Verify the Server
After provisioning completes, click Open in Browser beside the Apache application server.

The default page displays the server’s phpinfo data. After confirming the server is available, deploy the PHP application.

Apache PHP Configuration
| Configuration File | Purpose |
|---|---|
/etc/php.ini | Contains PHP directives and runtime settings. |
/etc/httpd/conf.d/php.conf | Configures PHP script execution. |
/etc/httpd/conf/httpd.conf | Contains the main Apache HTTP Server directives. |
Change the File-Upload Limit
Open Configuration Manager
Click Config beside the Apache application server.

Edit php.ini
Open /etc/php.ini from Favorites and update upload_max_filesize and post_max_size. The documented default for both is 100 MB.


Save and restart the nodes
Save the updated file and click Restart Nodes for the Apache layer.

Expected Result
An Apache PHP environment is created and accessible in the browser. PHP applications can be deployed to it, and Apache or PHP settings can be adjusted through Configuration Manager.
Important Notes
- SSL is required for HTTP/2.
- Use
apachectl -Mor the phpinfo page to review loaded modules. - Keep
post_max_sizeequal to or greater thanupload_max_filesize. - Save configuration changes and restart the nodes when required.
- The hosting provider may define a different file-manager upload limit.
