PHP App Server Configuration
PHP Application Server Configuration
PHP application servers can be configured through the platform Configuration Manager. In a multi-node layer, file-content changes can be saved either to one selected instance or to all application-server instances.
Configure One or All Instances
Open Configuration Manager
Click Config beside the PHP application-server layer.
Select the required server
Open the drop-down menu at the top of the configuration tab and choose the application-server instance that should be edited.

Save the changes
Use Save only for the current instance to update one selected server, or Save for all instances to apply the edited file content across the layer.

Available Configuration Files
Apache PHP
| Folder | File | Path |
|---|---|---|
| etc | php.ini | /etc |
| conf.d | modules.conf, aliases.conf, geoip.conf, mod_security.conf, php.conf, ssl.conf, welcome.conf | /etc/httpd/conf.d/ |
| conf | httpd.conf | /etc/httpd/conf/ |
| webroot | Application files | /var/www/webroot |
| cron | apache | /var/spool/cron |
| keys | Private keys | /var/lib/jelastic/keys |
| modules | PHP modules | /usr/lib64/php/modules |
NGINX PHP
| Folder | File | Path |
|---|---|---|
| etc | php-fpm.conf, php.ini | /etc |
| conf.d | virtual.conf, ssl.conf | /etc/nginx/conf.d |
| conf | nginx.conf | /etc/nginx |
| webroot | Application files | /var/www/webroot |
| cron | nginx | /var/spool/cron |
| keys | Private keys | /var/lib/jelastic/keys |
| modules | PHP modules | /usr/lib64/php/modules |
ETC Folder
The main PHP runtime configuration is stored in php.ini. It can be used to manage PHP extensions, accelerators, Memcached session storage, and PHP security settings.

CONF Folder
Apache
The main Apache configuration file is httpd.conf. It can be used to configure multiple domains, custom modules, WebDAV, security, name-based virtual hosts, and server statistics.

httpd.conf, remove the #Jelastic autoconfiguration marker at the beginning of the file. Doing this disables the platform’s automatic worker adjustment for that file.
Apache automatically adjusts the number of PHP request workers according to the configured Cloudlet limit. The MaxClients value increases or decreases after the environment topology is changed.


NGINX
The main NGINX PHP configuration file is nginx.conf. It can be used to configure multiple domains, WebDAV, and NGINX security settings.

CONF.D Folder
The conf.d folder stores and manages server subconfiguration files.

WEBROOT Folder
The webroot folder stores the unpacked application deployed to the environment.

CRON Folder
The application-server cron folder contains the configuration file used to define cron jobs.

KEYS Folder
Upload private keys required by the application to the keys directory and reference them through:
/var/lib/jelastic/keys/{key_file_name}

MODULES Folder
The modules folder contains PHP modules available by default. Custom PHP modules can also be uploaded to this directory for activation.

Important Notes
- Back up configuration files before editing them.
- File-content changes can be saved to one or all nodes, but creating or renaming files and folders must be repeated manually.
- Removing the Apache autoconfiguration marker disables automatic
MaxClientsadjustment. - Restart or reload the PHP application server when required by the modified setting.
- Protect private-key files with appropriate access controls.
