PHP Application Server Configuration

To perform the necessary configurations, press the Config button next to your application server. If you have several application servers, you can configure them either together or separately. To do this follow the steps:

1. Open the drop-down menu at the top of the configuration tab. It includes the list of all of the app servers in your environment.

2. Choose the one you need and make the configurations.

3. To apply the changes:

  • only for the chosen server click Save only for the current instance button from drop-down menu;
  • for all the servers click Save for all instances.
save for current all instances
Note: if you create/rename a file or folder in the Configuration manager, this will only be applied to the list of the chosen node. You can’t save this change across all app servers in the environment. If you also want to create/rename the file or folder on the other servers, you need to do this manually.

Below you can see the list of the configuration files available for editing in the PHP application servers:

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 /var/www/webroot
cron apache /var/spool/cron
keys /var/lib/jelastic/keys
modules /usr/lib64/php/modules
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 /var/www/webroot
cron nginx /var/spool/cron
keys /var/lib/jelastic/keys
modules /usr/lib64/php/modules

The main PHP server configurations are performed in the php.ini file which is located in the etc folder.

For example, here you can set the required:

php.ini configuration file

Back to the list

  • Apache

For the Apache application server the main configuration file is the httpd.conf located in the conf folder. For example, by using it, you can perform the following actions:

httpd.conf configuration file

Note: In order to perform any custom configurations in the httpd.conf file, you need to remove the #Jelastic autoconfiguration mark string at the beginning of the file:

autoconfiguration mark

The number of workers for processing PHP requests is increased automatically in an Apache server, depending on the cloudlet amount you stated for it.

To check this, find and remember the MaxClients value in httpd.conf file.

MaxClients value before

After that, change your environment's topology by increasing or decreasing the cloudlet limit on your server.

Return to the httpd.conf file – the number of MaxClients has increased/decreased.

MaxClients value after
Note: This functionality will be disabled if you remove the # Jelastic autoconfiguration mark string at the start of the httpd.conf file
  • NGINX

For performing necessary configurations for an NGINX-PHP server the nginx.The conf file, located in the conf folder, is used. Use it to set up the following configurations:

nginx.conf configuration file

The conf.d folder is used for storing and managing sub configs.

confd folder for configs

Back to the list

The webroot folder is used for storing the unpacked application deployed to the environment.

webroot folder for applications

Back to the list

App servers include a cron folder with the config file where cronjobs can be configured.

Detailed information on Cronjob configuration can be found in the Setting Up a Cronjob document.

cron folder for cronjobs

Back to the list

The keys directory is used as a location for uploading any private key which is needed for your application.

Generate the key, save it as a simple file and upload to the key folder. Now, you can use it for different cases by simply stating the path to your key:

/var/lib/jelastic/keys/{key_file_name}

keys folder for SSH keys

Back to the list

The modules folder contains the php modules available in the platform by default. You can also upload your custom php modules to this folder, in order to activate them.

For more information navigate to PHP Modules document.

modules folder for PHP modules
Share this:
FacebookXWhatsAppTelegramLinkedInGmailCopy Link
Updated on March 10, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support