phpswitcher - info displayed

  • Hi again,


    I've successfully installed phpswitcher and compiled different version of php, now for the 7.0 I addedd the APCu extension as described on the wiki: https://wiki.i-mscp.net/doku.p…hpswitcher#apcu_extension and eveything seems ok if I run:


    Code
    1. # /opt/phpswitcher/php7.0/bin/php -i


    it displays the extension loaded correctly and the file 02_apcu.ini parsed.


    But.... if I click on show phpinfo on imscp panel it displays nothing about apcu (both the ini and the modules are missing).
    I've tried restarting psw7.0-fpm, apache, etc...


    Once i stopped psw7.0-fpm and tried to load again "show phpinfo", strangely it displays always the same things... how it can do this if fpm is stopped?


    After a lot of trying I simply create an info.php page with this content:

    PHP
    1. <?phpinfo();echo ciao;var_dump(get_loaded_extensions());?>

    loaded it in the browser and it displays apc:

    Code
    1. ....
    2. "apcu" [43]=> string(4)
    3. ......

    why this happened? so the extension is loaded but php info displayed by the panel is probably wrong...


    Thank you very much

  • @itcm


    You should read all the documentation: https://wiki.i-mscp.net/doku.p…hpswitcher#php_info_files


    Quote from from_wiki


    Be aware that because the phpinfo files are static, you must re-generate them each time you made a configuration change for a specific PHP version (e.g. when you enable or disable a PHP/Pecl extension). This task can be done through the PhpSwitcher administration interface. Be also aware that because those files are static, some information such as memory could not matches with those that you have set for your customers (e.g. using the PHP editor provided by i-MSCP).

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

  • @itcm


    You're welcome ;)

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