open_basedir Error. open_basedir has value. Please clear value for open_basedir from php.ini

  • Hallo an alle,



    kann mir Bitte jemand sagen was das hier bedeuten soll? open_basedir Error. open_basedir has value. Please clear value for open_basedir from php.ini


    Bei mir ist das hier eingetragen lauf php info
    /var/www/virtual/vxxxx.de/:/usr/share/php/:/dev/random:/dev/urandom



    Vielen dank an alle



    Gruß
    BigBen

  • Hello,


    You receive that error from which application exactly?

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

  • of my website I'm trying to install



    Server Requirements


    curl : Ok. Enabled.
    mbstring : Ok. Enabled.
    safe mode : OK
    open_basedirError. open_basedir has value. Please clear value for open_basedir from php.ini
    allow_url_fopen : Ok. Enabled

  • On your website... What is the PHP application that you try to install ?

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

  • @BigBen


    Ok... Well if you use Fcgid or PHP-FPM, you can disable the open_basedir value by using that listener:https://raw.githubusercontent.…p_confoptions_override.pl


    1. Put that listener into the /etc/imscp/listeners.d directory
    2. Edit it according your needs (configuration parameter are documented). You should end with something like (for the configuration):


    Perl
    1. ...
    2. my %configOptions = (
    3. 'yourdomain.tld' => {
    4. 'open_basedir' => ''
    5. }
    6. );
    7. ...


    Note: You must replace yourdomain.tld by your domain name.


    3. Run the imscp-reconfigure script to activate that listener: perl /var/www/imscp/engine/setup/imscp-setup -da


    Note: I assume here that you use i-MSCP 1.3.0


    If you don't figure out alone, I can help you through teamviewer.

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

  • I have done so



    # Apply global PHP configuration options overriding if any
    if(exists $configOptions{'*'}) {
    while(my($option, $value) = each(%{$configOptions{'*'}})) {
    next if $$tplContent =~ s/^(php_(?:admin_)?(?:value|flag)\[$option\]).*/$1 = $value/gim;


    if(grep($_ eq lc($value), ( 'on', 'off', '1', '0', 'true', 'false', 'yes', 'no' ))) {
    $$tplContent .= "php_admin_flag[$option] = $value\n";
    } else {
    $$tplContent .= "php_admin_value[$option] = $value\n";
    }
    }
    }


    return 0 unless exists $configOptions{$data->{'DOMAIN_NAME'}};


    # Apply per domain PHP configuration options overriding if any
    while(my($option, $value) = each(%{$configOptions{$data->{'DOMAIN_NAME'}}})) {
    next if $$tplContent =~ s/^(php_(?:admin_)?(?:value|flag)\[$option\]).*/$1 = $value/gim;


    if(grep($_ eq lc($value), ( 'on', 'off', '1', '0', 'true', 'false', 'yes', 'no' ))) {
    $$tplContent .= "php_admin_flag[$option] = $value\n";
    } else {
    $$tplContent .= "php_admin_value[$option] = $value\n";
    }
    }


    my %configOptions = (
    'spyseo.de' => {
    'open_basedir' => ''} );


    0;
    });


    1;
    __END__




    is that right?