fre2004 10 Report post Posted April 5, 2008 salve, ho un problema quasi risolto grazie ai precedenti che ho trovato sul forum. solo che io ho il problema opposto e faccio un po di confusione. ho un semplice script php per uploadere immagini nella cartella /up. accessibile da www.sito.com/up. vorrei che lo script andasse a salvare le img nel sottodominio img.sito.com. nello scritp imposto tipo /var/www/... per dirgli la cartella di destinazione. ricevoil seguente messaggio: [b]Warning[/b]: move_uploaded_file(): open_basedir restriction in effect. File(/var/www/vhosts/xxxxxxx/subdomains/my/httpdocs/Banner/ban_tra-398102584.gif) is not within the allowed path(s): (/var/www/vhosts/myadstv.net/httpdocs:/tmp) in [b]/var/www/vhosts/xxxxx/httpdocs/upload_img.php[/b] on line [b]90[/b] ora vi chiedo, devo creare un vhost.conf per il sottodominio o per il dominio principale?? Share this post Link to post Share on other sites
Derevko 15 Report post Posted April 6, 2008 ricevoil seguente messaggio: [b]Warning[/b]: move_uploaded_file(): open_basedir restriction in effect. File(/var/www/vhosts/xxxxxxx/subdomains/my/httpdocs/Banner/ban_tra-398102584.gif) is not within the allowed path(s): (/var/www/vhosts/myadstv.net/httpdocs:/tmp) in [b]/var/www/vhosts/xxxxx/httpdocs/upload_img.php[/b] on line [b]90[/b] ora vi chiedo, devo creare un vhost.conf per il sottodominio o per il dominio principale?? O aggiungi /var/www/vhosts/xxxxxxx/subdomains in open_basedir, o modifichi l'attuale /var/www/vhosts/myadstv.net/httpdocs in /var/www/vhosts/myadstv.net Share this post Link to post Share on other sites