Config single domain php.ini

  • I'm tryning to setup a single php.ini for single cutomer


    i need to update this parameters due to old joomla setup:
    error_reporting = E_ALL & ~(E_NOTICE | E_WARNING | E_STRICT | E_DEPRECATED)
    var $error_reporting = '22517';


    I checked and I find a domain.xx.conf in /etc/php5/fpm/pool.d
    I edit the file but I have 500 error. :( I reaload service php5-fpm reload)



    There is way to add a php.ini simple file ? If yes, where ? because I'm going crazy (many search but no results)
    Thx


    1.2.9 debian

  • @bubaweb


    With FPM, there is only one master php.ini configuration file. Any customer ini parameter must be added in the related configuration file.


    First, why do you not use the PHP editor to edit error reporting level?
    Second, what do you have put in the pool file exactly?

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

  • I edited it own config -> vi /etc/php5/fpm/pool.d/xxxx.it.conf


    at the end of file there are this values:


    php_value[error_reporting] = 24575
    php_flag[display_errors] = on


    I changed to:
    php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_DEPRECATED





    I add var $error_reporting = '22517'; to joomla configuration file...
    but now no 500 error...but still dosnt work and same error as before

  • Try with


    Code
    1. php_flag[display_errors] = on
    2. php_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_DEPRECATED


    Don't forget to remove other and then, restart FPM instance. If you set error_reporting with php_admin_value, this mean that you'll be unable to change it at runtime.

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

  • Thx for info and support.
    So to all user,who are searching where add php.ini, they can edit file in domain folder under /etc/php5/fpm/pool.d
    then remember to reload 'service php5-fpm reload'


    About me, no more error 500, thx
    but need a new solution for joomla 1.5
    still Strict Standards: Non-static method JLoader::import() should not be called statically in
    Thx