Replies: 4   Views: 3487
Temp folder error in check.php
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 mikehzzzz  · 05-03-2014 - 12:48


I am trying to setup a new version of phpdocx and am running into an error when using check.php. I get the following results:

  • OK PHP version is 5.5.6

  • OK Zip support is enabled.

  • OK XSL support is enabled.

  • OK DOM support is enabled.

  • OK XML support is enabled.

  • Warning We recommend you to install Tidy for PHP if you want use embedHTML in your Word documents. Htmlawed class will be used instead of Tidy.

  • OK The path examples/docx used by the examples is writable.

  • OK The license is valid for the current domain/server.

  • Error The library can't write to temp folder. You can set a custom tmp path in config/phpdocx_config.ini file.

  • Warning You're not running OpenOffice in headless mode on port 8100.

For some reason, no matter what path I put into the temp_path of phpdocx_congig.ini, I still get the error. Can someone tell me where the ideal place is?

Posted by mikehzzzz  · 05-03-2014 - 12:51

Just to confirm here is what I have tried:

temp_path = "http://localhost/phpdocx_pro_conv/tmp"

temp_path = "http://localhost/phpdocx_pro_conv/tmp/"

temp_path = "/tmp"

temp_path = "tmp"

temp_path = "tmp/"

temp_path = "/tmp/"

Posted by mikehzzzz  · 05-03-2014 - 18:56

Managed to get this working on my server. Just doesn't work on my localhost so no big deal.

Posted by jorgelj  · 06-03-2014 - 09:25


The temp path must be an absolute path to your temp folder. Maybe your /tmp doesn't have write access, and you need to use other folder.