1
PHP / Проблема с путем к пакетам Pear
« : 01 Августа 2008, 13:22:41 »
Вот такая проблема на серверах VPS Masterhost:
Успешно обновили Pear для php, установили пакеты OLE и Spreadsheet_Excel_Writer (нужны для генерации файлов Excel).
Но скрипт не работает.
Oшибка в строке:
require_once "Spreadsheet/Excel/Writer.php";
Вот логи:
[client 89.232.124.193] PHP Warning: main() [function.main]: open_basedir restriction in effect. File(/Spreadsheet/Excel/Writer.php) is not within the allowed path(s): (/var/www/vhosts/xxxx.ru/subdomains/shop/httpdocs:/tmp) in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
[client 89.232.124.193] PHP Warning: main(Spreadsheet/Excel/Writer.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
[client 89.232.124.193] PHP Fatal error: main() [function.require]: Failed opening required \'Spreadsheet/Excel/Writer.php\' (include_path=\'.:\') in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
Подскажите что делать пожалуйста. На локальном апаче все работает (те же версии Pear и пакетов)
Вероятно не тот путь. Может что то в php.ini править?
Спасибо.
Успешно обновили Pear для php, установили пакеты OLE и Spreadsheet_Excel_Writer (нужны для генерации файлов Excel).
Но скрипт не работает.
Oшибка в строке:
require_once "Spreadsheet/Excel/Writer.php";
Вот логи:
[client 89.232.124.193] PHP Warning: main() [function.main]: open_basedir restriction in effect. File(/Spreadsheet/Excel/Writer.php) is not within the allowed path(s): (/var/www/vhosts/xxxx.ru/subdomains/shop/httpdocs:/tmp) in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
[client 89.232.124.193] PHP Warning: main(Spreadsheet/Excel/Writer.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
[client 89.232.124.193] PHP Fatal error: main() [function.require]: Failed opening required \'Spreadsheet/Excel/Writer.php\' (include_path=\'.:\') in /var/www/vhosts/xxxxx.ru/subdomains/shop/httpdocs/eee.php on line 6
Подскажите что делать пожалуйста. На локальном апаче все работает (те же версии Pear и пакетов)
Вероятно не тот путь. Может что то в php.ini править?
Спасибо.