Listener php confoptions

  • Hallo,


    vielleicht kann mir jemand helfen ich versuche aktuell folgenden Listener einzubinden Link
    Irgendwie klappt das nicht, weil ich vielleicht die falschen Settings anwende ich habe folgendes versucht:


    Code
    1. '<domain.de>' => { # Any PHP configuration added here will apply to the domain only
    2. '<php_admin_value[open_basedir]>' => '</var/www/virtual/domain.de/:/usr/share/php/:/dev/urandom:/home/owncloud/>';
    3. '<php_admin_value[always_populate_raw_post_data]>' => '<-1>'

    kann mir jemand sagen was ich falsch mache? Sorry für diese echt dumme Frage :/

  • In der aktuellen 1.2.x, nächster 1.2.16 ist /dev/urandom und /dev/random per default integriert. Ändere den Eintrag manuell, den Listener brauchst hierfür weniger :)


    Ansonsten ohne <> & ohne der PHP flag schreiben, nur die Property :)

  • @Ninos


    Oh my god... <-1> instead of -1 :D Seriously... Where we go...


    @batZen


    To resume, following lines:


    Code
    1. '<domain.de>' => { # Any PHP configuration added here will apply to the domain only'<php_admin_value[open_basedir]>' => '</var/www/virtual/domain.de/:/usr/share/php/:/dev/urandom:/home/owncloud/>';'<php_admin_value[always_populate_raw_post_data]>' => '<-1>'


    should be


    Code
    1. 'domain.de' => { # Any PHP configuration added here will apply to the domain only
    2. 'php_admin_value[open_basedir]' => '/var/www/virtual/domain.de/:/usr/share/php/:/dev/urandom:/home/owncloud/',
    3. 'php_admin_value[always_populate_raw_post_data]' => '-1'

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • danke fürs helfen, wie dämlich von mir. Ist mir ganz schön peinlich...


    Thank you for helping me with this dumb question. I'm really shamed


    @Nuxwin


    just for you to note... as Ninos mentioned you don't need that "php_admin_value". For me only this worked:

    Code
    1. 'domain.de' => { # Any PHP configuration added here will apply to the domain only
    2. 'open_basedir' => '/var/www/virtual/domain.de/:/usr/share/php/:/dev/urandom:/home/owncloud/',
    3. 'always_populate_raw_post_data' => '-1'

    Edited 5 times, last by batZen ().

  • Hallo


    Ich habe das gleiche Problem.
    Die oberen, globalen Einträge mit "*" werden richtig gesetzt, die unteren für die Domain 'domain.ch' jedoch nicht.
    Sieht jemand, was ich falsch mache:



    Gehe ich richtig in der Annahme, dass sich die Konfiguration in der Datei "/etc/php5/fpm/domain.ch.conf" zeigen sollte?

  • @oekowalti


    You're kidding I hope :D You should learn Perl a bit ;) The problem is simple here, you have defined the keys * and domain.ch many time in the hash.


    %configOptions hash definition should be in your case:

    Pastbin for better indentation: http://pastebin.com/AbtejpjP


    And please, don't use PHP5-FPM pool conffile syntax. The listener will apply correct syntax automatically according the server implementation you're using. Note also that it is useless to redefine global PHP options at domain.ch level. Here, open_basedir, disable_functions and always_populate_raw_post_data PHP options which are defined globally will also apply to domain.ch. You must redefine these PHP options explicitely for domain.ch only if you want other values for them.


    BTW: Next time please, open a new thread.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @oekowalti


    Edited my previous answer. Please read carefully ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • @Nuxwin


    I tried your code (without changes) and receive this configuration (only last lines):


    ; Default Value: nothing is defined by default except the values in php.ini and
    ; specified at startup with the -d argument
    php_admin_value[open_basedir] = /usr/bin/:/usr/local/sbin/:/usr/local/bin/:/usr/sbin/:/bin/:/var/www/apps/:/var/www/virtual/oeko-admin.ch/:/usr/share/php
    php_admin_value[upload_tmp_dir] = /var/www/virtual/oeko-admin.ch/phptmp
    php_admin_value[session.save_path] = /var/www/virtual/oeko-admin.ch/phptmp
    php_admin_value[soap.wsdl_cache_dir] = /var/www/virtual/oeko-admin.ch/phptmp
    php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]


    ; Custom values
    php_admin_value[max_execution_time] = 30
    php_admin_value[max_input_time] = 60
    php_admin_value[memory_limit] = 128M
    php_value[error_reporting] = 24575
    php_flag[display_errors] = off
    php_admin_value[post_max_size] = 10M
    php_admin_value[upload_max_filesize] = 9M
    php_admin_flag[allow_url_fopen] = off
    php_admin_value[disable_functions] =
    php_value[always_populate_raw_post_data] = -1


    You see, some parameters were set correctly and other were not:
    always_populate_raw_post_da: ok.
    open_basedir: ok.
    max_execution_time: not ok.
    max_input_vars: not set.


    Please show me the problem.

  • @oekowalti


    Please show me your listener file as it is now.


    Thanks.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206