Question

PHP Export/import not working in the server

  • Posted on November 24, 2013
  • jelwinAsked by jelwin

When I am trying to export data I am getting an error “Could not close zip file php://output. See also ‘System > Error Logs’ for more details.”

My error Log: - 2013-11-23 3:16:21 - PHP Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/zpanel/hostdata/zadmin/public_html/domain_com:/var/zpanel/temp/) in /var/zpanel/hostdata/zadmin/public_html/domain_com/system/PHPExcel/Classes/PHPExcel/Shared/File.php on line 136 2013-11-23 3:16:21 - PHP Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/zpanel/hostdata/zadmin/public_html/domain_com:/var/zpanel/temp/) in /var/zpanel/hostdata/zadmin/public_html/domain_com/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 205 2013-11-23 3:16:21 - PHP Exception: Could not close zip file php://output. in /var/zpanel/hostdata/zadmin/public_html/domain_com/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 378

I am using Zpanel .

My server Details Server OS: Ubuntu Apache Version:2.2.22 PHP Version:5.3.10-1ubuntu3.8 MySQL Version:5.5.32-0ubuntu0.12.04.1 ZPanel Version:10.1.0

temp folder have write permissions (777) Also added temp folder in php.ini

PHP INFO:-

Zip enabled Extension Version $Id: php_zip.c 321634 2012-01-01 13:15:04Z felipe $ Zip version 1.9.1 Libzip version 0.9.0

Can anybody help in this issue?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

You’re more likely to find people that know how to use zPanel in the <a href=“http://forums.zpanelcp.com/”>zPanel Forums</a>. The <a href=“http://www.zpanelcp.com/support/documentation/”>zPanel docs</a> might also be a good place to look.