Forum


Replies: 6   Views: 8433
Failed to open stream: permission denied
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by 2ndmile  · 21-03-2013 - 13:47

I uploaded the PHPDOCX folder and tried to run one of the test files. I received the following error:

[code]Warning: copy(example_text.docx) [function.copy]: failed to open stream: Permission denied in /home/forceccp/public_html/phpdocx_free/classes/CreateDocx.inc on line 1215[/code]

I confirmed that the script is writing to the /tmp folder (echo $this->_tempDir) in the root of the webserver. I tried different permission on this folder (755, 775, 777) to no avail.

I also confirmed with my webhost that all requirements are fulfilled.

Any thoughts? TIA

Posted by 2ndmile  · 11-04-2013 - 12:13

Sorry, meant to include a URL for testing.

http://www.forceccp.com/phpdocx_free/examples/easy/Text.php

Posted by 2ndmile  · 11-04-2013 - 12:13

Hosting company changed /tmp permissions to 755. Now no error message but also no doc creation.

Posted by admin  · 11-04-2013 - 12:13

Hello,

What version of PHPDocX are you using?.

Regards.

Posted by 2ndmile  · 11-04-2013 - 12:13

Working now. It was a permissions problem on the folder being written to rather than the tmp folder.

Posted by acunnington  · 13-05-2014 - 10:39

It would have been really helpful to actually post what you changed it to!