custom php.ini for php-fpm

Discussion in 'Installation/Configuration' started by hkjeffchan, Aug 24, 2017.

  1. hkjeffchan

    hkjeffchan New Member

    I just switch from suphp to php-fpm recently and it seems that php-fpm is loading the php.ini from
    /etc/php5/fpm/php.ini and shared among all sites.

    The custom php.ini setting is therefore cannot be loaded including the open_basedir setting (which is empty right now as shown on php_info)

    I also tried to compile the new php7.1 as on https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ and the same happens. Is this intended or something wrong with my config?

    Running ispconfig 3.1.5 on debian 8
     
  2. hkjeffchan

    hkjeffchan New Member

    More information. ISPConfig doesn't seem to add any open_basedir related config like php_admin_value[open_basedir]. Is this normal?

    The content of /opt/php-7.1/etc/php-fpm.d/web100.conf
    [web100]
    listen = /var/lib/php5-fpm/web100.sock
    listen.owner = web100
    listen.group = www-data
    listen.mode = 0660
    user = web100
    group = client16
    pm = ondemand
    pm.max_children = 50
    pm.process_idle_timeout = 10s;
    pm.max_requests = 0
    chdir = /
    env[HOSTNAME] = $HOSTNAME
    env[TMP] = /var/www/clients/client16/web100/tmp
    env[TMPDIR] = /var/www/clients/client16/web100/tmp
    env[TEMP] = /var/www/clients/client16/web100/tmp
    env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
     
  3. hkjeffchan

    hkjeffchan New Member

    Fixed.

    System -> Server Config -> Web -> Web Server -> Security Level = High
     
    till likes this.

Share This Page