Windows文件共享

时间:2017-07-25 22:13:07

标签: linux ubuntu permissions phpexcel windows-server-2012

我在Ubuntu服务器上运行PHPExcel并且我有权限问题。

[Tue Jul 25 13:39:58.672575 2017] [:error] [pid 1456] [client 192.168.0.18:57924] PHP Warning:  ZipArchive::close(): Failure to create temporary file: Permission denied in /var/www/html/i/phpExcel/Classes/PHPExcel/Writer/Excel2007.php on line 388, referer: http://192.168.0.32/i/previewPO.php
[Tue Jul 25 13:39:58.677278 2017] [:error] [pid 1456] [client 192.168.0.18:57924] PHP Fatal error:  Uncaught PHPExcel_Writer_Exception: Could not close zip file /home/User/Main/Inventory/POs/t/PO_6295.xlsx. in /var/www/html/i/phpExcel/Classes/PHPExcel/Writer/Excel2007.php:389\nStack trace:\n#0 /var/www/html/i/savePOToExcel.php(143): PHPExcel_Writer_Excel2007->save('/home/User/Mai...')\n#1 {main}\n  thrown in /var/www/html/i/phpExcel/Classes/PHPExcel/Writer/Excel2007.php on line 389, referer: http://192.168.0.32/i/previewPO.php

我正在尝试保存到已安装在Ubuntu服务器上的Windows文件共享。

如果我ssh到服务器并访问文件共享,虽然我可以创建/修改/删除文件没有问题,如果我告诉PHPExcel本地保存文件(Linux服务器)它工作正常 - 我不是确定问题出在哪里。

以下是我安装文件共享时的说明:  https://wiki.ubuntu.com/MountWindowsSharesPermanently

有没有人有任何想法如何让这项工作?

0 个答案:

没有答案