You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
The point is that in this way, we can add configurations to php.ini that only apply to a specific domain / subdomain.
If a way can be added to add these configurations and specify the host / path in this way (as php supports it, and thus it allows us a way to limit dangerous functions for production environments).
In this way we can customise php.ini configuration for specific domains, and it does NOT involve the vhost. The key 'codeconsortium.com' would serve as the value for [HOST=codeconsortium.com] under which the specific config would follow.
Use PHP5 built in custom sections for overriding configurations for given host or path.
This is built into PHP. I referenced the documentation for this feature here.
I had another ticket for this in another repo but it was suggested that this was more the domain of this repo instead.
Basically, it allows you to define something like:
As suggested, the config is in /etc/php.ini.
The point is that in this way, we can add configurations to php.ini that only apply to a specific domain / subdomain.
If a way can be added to add these configurations and specify the host / path in this way (as php supports it, and thus it allows us a way to limit dangerous functions for production environments).
We could use the key for this, like so:
In this way we can customise php.ini configuration for specific domains, and it does NOT involve the vhost. The key 'codeconsortium.com' would serve as the value for [HOST=codeconsortium.com] under which the specific config would follow.
Output in /etc/php.ini would be:
The text was updated successfully, but these errors were encountered: