PHP Application Server Configuration
To perform the necessary configurations for your PHP application server, follow these steps:
Click the Config button located next to your application server. If you have multiple application servers, you can configure them individually or simultaneously.
Step 1. Open the drop-down menu at the top of the configuration tab. This menu contains a list of all the application servers in your environment. Select the server you want to configure.
Step 2. Select the desired server and make the necessary configurations.
Step 3. To apply the changes:
- For the selected server, click “Save only for the current instance” from the drop-down menu.
- To apply changes for all servers, click “Save for all instances.”
Note: Any file or folder creation or renaming performed in the Configuration manager will only apply to the selected node. Changes cannot be saved for all application servers available in the environment simultaneously. If you wish to apply the same changes to other servers, you must do so manually.
Below is the list of configuration files available for editing in the PHP application servers:
Apache
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 |
NGINX PHP
Click on the links to access more information regarding the settings that can be modified in the respective folders.
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 |
ETC
The main PHP server configurations are performed in the php.ini file located in the etc folder. Here, you can set various
parameters such as:
Need to link above articles once created
CONF
Apache
For the Apache application server, the main configuration file is the httpd.conf located in the conf folder. Here are some actions you can perform using this file:
- Set up Multiple Domains
- Enable custom Apache modules
- Use the WebDav module
- Implement necessary security configurations
- Configure name-based virtual hosts
- Enable the statistics module to view server statistics
The number of workers for processing PHP requests is automatically increased in an Apache server based on the cloudlet amount allocated for it.
To verify this, locate and note the MaxClients value in the httpd.conf file.
After noting the MaxClients value in the httpd.conf file, proceed to change the topology of your environment by adjusting the cloudlet limit for your server.
Upon returning to the httpd.conf file, you will observe that the number of MaxClients has either increased or decreased accordingly.
NGINX
To perform necessary configurations for an NGINX-PHP server, utilize the nginx.conf file located in the conf folder. Use this file to set up the following configurations:
CONF.D
The conf.d folder is used for storing and managing sub-configurations.
WEBROOT
The webroot folder is utilized for storing the unpacked application deployed to the environment.
CRON
App servers contain a cron folder with a configuration file where cronjobs can be configured.
For detailed information on Cronjob configuration, refer to the “Setting Up a Cronjob” document.
KEYS
The keys directory serves as a location for uploading any private key required for your application.
To utilize this, generate the key, save it as a simple file, and upload it to the key folder. Once uploaded, you can use it for various purposes by simply specifying the
path to your key:
/var/lib/jelastic/keys/{key_file_name}
MODULES
The modules folder contains the default PHP modules available on the platform. Additionally, you can upload your custom PHP modules to this folder to activate them.
For further details, refer to the PHP Modules document.