I have this error since I transferred my website to digital ocean VPS. I want to export a file, this file will be saved on my computer, but it is not working anymore because I have this error.
I checked the /tmp and /var/zpanel/temp directory, but they have full rights.
Logging from my opencart: 2013-11-07 9:49:30 - 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-07 9:49:30 - 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-07 9:49:35 - 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
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!
I add this to my php.ini, open_basedir = /tmp <br> <br>but error is still there
Make sure the drive you’re trying to save to isn’t full. I wish I’d seen that suggestion before this never-ending morning…
@jelwin: zPanel does not allow scripts to write to /tmp. You have to modify your script so that it writes to <code> /var/zpanel/temp/</code> instead.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.