PHP Runtime Configurator

Categories

Component ID

2880743

Component name

PHP Runtime Configurator

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

514

Component created

Component changed

Component body

This module help admins or user with similar admin privileges to change PHP runtime variables without changing php.ini file.

Note: Since this module acts on .htaccess file on root, its good to backup your .htaccess file. In case you get 500 internal server error on shared hosting you can quickly rollback to original file.
For the reason of this error, please see below description.

Features:

- You can configure 4 PHP runtime options:

- File Upload Limit
- Memory Limit
- Maximum Execution Time Limit
- Maximum Input Variable Limit

Every option of this module solves common and unique PHP configuration problems:
a) Use "File Upload Limit" option to increase file upload limit globally.

b) Use "Memory Limit" option if you receive "Allowed memory size of xxxxx bytes exhausted".

c) Use "Maximum Execution Time Limit" option if you receive "maximum execution time of xx seconds exceeded".

d) Use "Maximum Input Variable Limit (POST Limit)" if you receive this error even nobody else is editing same node "The content on this page has either been modified by another user, or you have already submitted modifications using this form. As a result, your changes cannot be saved".

For more information please read: Remove edit lock on a node

- Provides a simple UI to turn on/off module without going to modules page.

- Provides seperate permissions for this module on permissions page(/admin/people/permissions).

- It will help you to put configuration in your .htaccess file, so that you dont need to change your php.ini file and restart apache server.

- Good for shared environments where users do not have access to php.ini file.

- Useful for users with similar admin privileges which do not have permissions
to go to module page.

- You can increase global file limit on website but still can configure some fields different from this global limit. So if you define
your file upload size of your field in field configuration( Administration » Structure » Content types » YOUR CONTENT TYPE NAME
» Manage fields) and edit that field, you can still define your custom limit in "Maximum upload size" section. But this limit should
be less than the global limit that you set in this module.For example if you define global limit on this module's configuration page
as 500 MB, you can still configure any other field seperately in "Maximum upload size" section but your limit should be less
than global file limit which is 500 MB in this case.

Use Cases:

- This module is idle for the situation when you are hosting multiple websites
on a single server and you want to increase the file limit inside one of your
website.

- It is also useful in case when you are on shared server where you dont have
access to php.ini file.

- Even on dedicated server it can help because you dont need to modify your
php.ini file and restart the server.
It reduces the overhead of locating, changing and restarting the server.

- Sometimes website owner do not have permission to go to modules page.
Developers can assign permissions for this module to website owners so that
they can turn on/off this module by clicking checkbox and increase the global limit.

- It can also be used on occasional purposes when you need to upload a huge
file only few times (once or twice a year). In that case changing php.ini file
is not a good approach.

If you get 500 Server Error:

It means that your sharing host is not letting you to set these global configuration. Contact your hosting company and ask them to set AllowOverride Options for your host in main apache config file.