Question

PHP Export/import not working in the server

Posted November 24, 2013 4.7k views
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?

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.

×
1 answer
You're more likely to find people that know how to use zPanel in the zPanel Forums. The zPanel docs might also be a good place to look.
Submit an Answer