Hi all, I hope this is the right place for posting my question.
I need to set short_open_tag to off.
Your help is much appreciated.
Thank you in advance
Set function short_open_tag to off
-
- question (answered)
- VeNoM
- Closed
- Thread is marked as Resolved.
-
-
Hello,
You can edit the pool configuration file that belongs to your site manually (e.g /etc/php5/fpm/pool.d/<site>.conf), and add something like this at bottom:
and then, once done, reload your FPM instance: service php5-fpm reloadHowever, the problem with that method is that this parameter will be gone if you edit the domain or if you update/reconfigure i-MSCP.
A better approach is to use the following listener file: https://github.com/i-MSCP/imsc…p_confoptions_override.pl
In order you must:
- Upload that listener file into the /etc/imscp/listeners.d directory
- Edit the listener file according your needs (if you need help on that part, feel free to ask)
- Run the following command to enable it: perl /var/www/imscp/engine/setup/imscp-reconfigure -danv
By doing this, your changes will be persistent
-
-
Thank you for your help Nuxwin,
and excuse me if I take advantage of your kindness.Domain name apart, the only two questions are:
1) what I have to set in code below
2) what I've have to do for set two or more domainsCode- my %configOptions = (
- # Any PHP configuration option added here will apply globally (to all domains).
- '*' => {
- '<option_name1>' => '<option_value1>',
- '<option_name2>' => '<option_value2>'
- },
- # Any PHP configuration added here will apply to domain1.tld only
- 'test.domain.tld' => {
- 'option_name1' => 'option_value1',
- 'option_name2' => 'option_value2'
- }
- );
-
Domain name apart, the only two questions are:
1) what I have to set in code below
2) what I've have to do for set two or more domains
Well, If you want add your configuration parameter for all domains, you can do:and comment the per domain configuration section.
Now if you want add that parameter to specific domains only, you can do:
and comment the global section.
Got it ?
-
-
-
-
-