A
A
andrei selderei2015-05-13 09:40:08
PHP
andrei selderei, 2015-05-13 09:40:08

How to solve the problem with the error: open_basedir restriction in effect. File(/tmp) is not within the allowed path?

I have added the ability to export data from the database in an .xlsx file using the XLSXWriter class on my site. And everything worked fine until one day the server started to blunt hard due to some glitches in the crown. I wrote to those support, they looked, they did something there and the server worked fine. But now this damn data export in Excel does not work. Here's what pops up:

A PHP Error was encountered

Severity: Warning

Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)

Filename: libraries/XLSXWriter.php

Line Number: 45

A PHP Error was encountered

Severity: Warning

Message: fopen(): Filename cannot be empty

Filename: libraries/XLSXWriter.php

Line Number: 540

A PHP Error was encountered

Severity: Warning

Message: str_repeat(): Second argument has to be greater than or equal to 0

Filename: libraries/XLSXWriter.php

Line Number: 201

A PHP Error was encountered

Severity: Notice

Message: ZipArchive::addFile(): Empty string as filename

Filename: libraries/XLSXWriter.php

Line Number: 85

A PHP Error was encountered

Severity: Warning

Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)

Filename: libraries/XLSXWriter.php

Line Number: 45

A PHP Error was encountered

Severity: Warning

Message: fopen(): Filename cannot be empty

Filename: libraries/XLSXWriter.php

Line Number: 540

A PHP Error was encountered

Severity: Notice

Message: ZipArchive::addFile(): Empty string as filename

Filename: libraries/XLSXWriter.php

Line Number: 88

A PHP Error was encountered

Severity: Warning

Message: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/ventura/data:.)

Filename: libraries/XLSXWriter.php

Line Number: 45

A PHP Error was encountered

Severity: Warning

Message: fopen(): Filename cannot be empty

Filename: libraries/XLSXWriter.php

Line Number: 540

A PHP Error was encountered

Severity: Notice

Message: ZipArchive::addFile(): Empty string as filename

Filename: libraries/XLSXWriter.php

Line Number: 91

Has anyone come across this problem before, please help me. I think that most likely you need to change something in the server settings (by the way, I have VPS on Centos).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andrei selderei, 2015-05-13
@acelash

already decided everything. gave the domain to use php as cgi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question