After running a backup using Backup and migrate files, I get the following error:
Warning: include_once(): open_basedir restriction in effect. File(/usr/share/pear/PEAR5.php) is not within the allowed path(s): (/u01/www/vhosts/www.cir.ed.ac.uk/httpdocs:/tmp) in include_once() (line 766 of /u01/www/vhosts/www.cir.ed.ac.uk/httpdocs/drupal/sites/all/modules/backup_migrate_files/...).
Warning: include_once(/usr/share/pear/PEAR5.php): failed to open stream: Operation not permitted in include_once() (line 766 of /u01/www/vhosts/www.cir.ed.ac.uk/httpdocs/drupal/sites/all/modules/backup_migrate_files/...).
Warning: include_once(): Failed opening 'PEAR5.php' for inclusion (include_path='./sites/all/modules/backup_migrate_files/includes;.:/usr/share/pear:/usr/share/php') in include_once() (line 766 of /u01/www/vhosts/www.cir.ed.ac.uk/httpdocs/drupal/sites/all/modules/backup_migrate_files/...).
Notice: Undefined index: exclude_filepaths in backup_migrate_files_destination_filesource->backup_settings_form() (line 85 of /u01/www/vhosts/www.cir.ed.ac.uk/httpdocs/drupal/sites/all/modules/backup_migrate_files/...).
The backup appears to be successful. I copied the pear.php, pear5.php and tar.php files into the /includes folder of the module.
I have Backup and Migrate version 7.x-2.2.
Can anyone give me any advice?
Many thanks
Gina
Comments
Comment #1
GinaF CreditAttribution: GinaF commentedI'm still hoping for some help with this issue.
Thanks
Comment #2
ontological CreditAttribution: ontological commentedHi GinaF,
My best guess is that the server has some restrictions on where PEAR5.php can be called from. I found this article that discusses it.
http://www.mydigitallife.info/php-scripts-open_basedir-restriction-in-ef...
Best
Comment #3
stoan CreditAttribution: stoan commentedHi Gina
I had the same problem, I tried the .htaccess but got no Joy. So I contacted my Host and it was solved :)
Ask your host, they should be able to resolve it for you :)
All the best