Understanding PHP Configuration
PHP Configuration
Overview
The PHP Configuration section allows you to view and manage PHP settings for your hosting package. These settings control how PHP scripts run and can help optimize performance, security, and compatibility with your website or application.

Access PHP Configuration
To view your PHP settings:
- Log in to your hosting control panel.
- Select the hosting package you want to manage.
- Open PHP Configuration.
You will see a list of available PHP directives and their current values.
Common PHP Settings
display_errors
Controls whether PHP errors are shown to visitors.
- Activated: Errors are displayed.
- Not Activated: Errors are hidden from visitors.
For live websites, it is generally recommended to keep this disabled.
file_uploads
Allows files to be uploaded through your website.
- Activated: File uploads are allowed.
- Not Activated: File uploads are blocked.
upload_max_filesize
Defines the maximum size of a file that can be uploaded.
Example: 128M
post_max_size
Controls the maximum amount of data that can be sent in a form submission.
Example: 128M
memory_limit
Sets the maximum amount of memory a PHP script can use.
Example: 128M
max_execution_time
Defines how long a PHP script can run before it is stopped.
Example: 300 seconds
max_input_vars
Controls the maximum number of input variables that can be processed in a request.
Example: 2500
This is commonly adjusted for larger forms and content management systems.
max_file_uploads
Defines the maximum number of files that can be uploaded in a single request.
Example: 16
short_open_tag
Allows the use of PHP short tags.
- Activated: Short tags can be used.
- Not Activated: Only standard PHP tags are allowed.
output_buffering
Controls whether PHP stores output before sending it to the browser.
error_reporting
Determines which PHP errors and warnings are reported.
This setting is commonly used when troubleshooting website issues.
autoscale webhosting and automation knowledgebase