Hi!
Sorry for my english.
Currently I migrated my sites to i-mscp and all it's ok... but...
I tryed to read and upload with php images from external folder... for example:
Upload
file system path: /var/www/virtual/domain1.com/htdocs/images/
[code=php]
$_SESSION["varfotos"] = "/var/www/virtual/domain1.com/htdocs/";
$ruta = $_SESSION["varfotos"].$_FILES['txtimagen1']['name'];
move_uploaded_file($_FILES['txtimagen1']['tmp_name'], $ruta);
[/php]
read
[code=php]
$_SESSION["varfotos"] = "/var/www/virtual/domain1.com/htdocs/";
$ruta = $_SESSION["varfotos"].$foto1;
if (file_exists($ruta)){
if (!empty($foto1)){ ?>
<img src="/imagen.php?imagen=<?php echo $ruta; ?>&ancho=100&alto=75" />
}
}
[/php]
In the old site all images were in the principal domain, but now in the new server each domain have a ip then I assignend one IP to each domain, however tryed to load or read images launch the error:
Warning: file_exists(): open_basedir restriction in effect. File(/var/www/virtual/domain1.com/htdocs/images/13632653030891.jpg) is not within the allowed path(s): (/var/www/virtual/domain2.com:/usr/share/php:/usr/share/pear) in /var/www/virtual/domain2.com/htdocs/clasificados.php
I configured in admin/settings Value for the open_basedir directive=/var/www/virtual/domain1.com/htdocs/ but not working.
Thank you very much for your help.
rkrdolnx