Posts by Nuxwin

    That change is already planned.

    Good morning,


    Unless domain1 and domain2 are owned by the same customer, you cannot access files from each to others. This is due to the open_basedir restrictions.


    The solution is to install the shared library somewhere else, such as in the /usr/local/lib/php directory (you need to create that directory), and through relevant i-MSCP listener file, change the open_basedir parameter for all domains to add that directory. For best use, you should also add that path to the include_path (always through the listener file).


    Assuming that you're using latest i-MSCP version, you can use the following i-MSCP listener file: https://github.com/i-MSCP/imsc…p_confoptions_override.pl


    Basically put, the %configOptions hash from the i-MSCP listener file should looks as follows:

    Perl
    1. my %configOptions = (
    2. '*' => {
    3. 'open_basedir' => '{HOME_DIR}/:/usr/local/lib/php/:{PEAR_DIR}/:/dev/random:/dev/urandom',
    4. 'include_path' => '.:{PEAR_DIR}:/usr/local/lib/php/'
    5. }
    6. );


    The listener file need to be copied in the /etc/imscp/listeners.d directory. Once you have edited the configuration part of the listener file, you need trigger a i-MSCP reconfiguration, else, the changes won't be taken into effect: perl /var/www/imscp/engine/setup/imscp-reconfigure -danv.


    BTW: Don't forget that the listener file requires either FPM (recommended) or Fcgid.

    Good morning,


    Not i-MSCP related but...


    Code
    1. root@jessie64:/# aptitude search bcmath
    2. p php-bcmath - Bcmath module for PHP [default]
    3. i php5.6-bcmath - Bcmath module for PHP
    4. i php7.0-bcmath - Bcmath module for PHP
    5. i php7.1-bcmath - Bcmath module for PHP
    6. p php7.2-bcmath - Bcmath module for PHP
    7. i php7.3-bcmath - Bcmath module for PHP
    8. i php7.4-bcmath - Bcmath module for PHP


    Basically put, you need install the package through APT... and restart the FPM instance if you make use of the i-MSCP httpd fpm server implementation..


    You don't give further details regarding your production system (distribution, codename, i-MSCP version, usage of the PhpSwitcher plugin or not, involved PHP version..) and so, we cannot give further instructions.

    Assumption...


    Unfortunately, I have to do it after every server reboot.

    phpswitcher wants to create a php fpm for the standard php version or does not find it

    Assumptions... Not your thread... No enough details...



    Too much assumptions in that thread... and no relevant information.

    Please, when you report an issue, don't mix the problems, don't make assumptions without knowing how thing are working, give us all relevant information and only those information. We don't care about your assumptions which don't help.


    When you report an issue for the PhpSwitcher plugin you need give us the following information:

    1. Your distribution and its codename
    2. The i-MSCP version you're running
    3. The i-MSCP httpd server implementation you're using (Fcgid, FPM)
    4. The PhpSwitcher plugin affected by the problem
    5. The PhpSwitcher plugin version from which you're updating (if your're updating)
    6. The exact error message
    7. The PHP version status for which you have a problem
    8. Whether or not the involved PHP version is a compiled or packaged PHP version
    9. The exact steps (without any assumption) to reproduce the problem

    For now, I'm closing this thread because there are mixed problems that are true or not... You're free to open a new thread (your own thread and only one thread per problem), providing us with all relevant information.