Hey, I need to have for each Subdomain a separate PHP-Config with for example allow_url_fopen activated or similar options.
I tried to create an config file at: /opt/phpswitcher/xxxx/php7.4/etc/php-fpm.d with the following content:
Code
- [prj5.xxx.com]
- user = vu2007
- group = vu2007
- listen = /run/phpswitcher/psw7.4-fpm-prj5.xxxx.com.sock
- listen.owner = vu2007
- listen.group = vu2007
- listen.mode = 0660
- pm = ondemand
- pm.max_children = 6
- pm.start_servers = 1
- pm.min_spare_servers = 1
- pm.max_spare_servers = 2
- pm.process_idle_timeout = 60s
- pm.max_requests = 1000
- chdir = /
- security.limit_extensions = .php .php3 .php4 .php5 .php7 .pht .phtml
- env[TMPDIR] = /var/www/virtual/xxxx/phptmp
- php_admin_value[open_basedir] = /var/www/virtual/xxxx.com/:/opt/phpswitcher/static/php7.4/share/pear/
- php_admin_value[upload_tmp_dir] = /var/www/virtual/xxxx.com/phptmp
- php_admin_value[session.save_path] = /var/www/virtual/xxxx.com/phptmp
- php_admin_value[soap.wsdl_cache_dir] = /var/www/virtual/xxxx.com/phptmp
- php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f webmaster@prj9.sbgit.com
- php_admin_value[max_execution_time] = 30
- php_admin_value[max_input_time] = 60
- php_admin_value[memory_limit] = 127M
- php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~E_STRICT
- php_flag[display_errors] = off
- php_flag[output_buffering] = off
- php_admin_value[post_max_size] = 32M
- php_admin_value[upload_max_filesize] = 32M
- php_admin_flag[allow_url_fopen] = on
- php_admin_value[disable_functions] = exec,passthru,popen,proc_open,show_source,shell,shell_exec,symlink,system,mail
But it does not work. I rebooted the Server each Time I changed the config.
What can I do?