Suhosin, open_basedir restriction, sentora temp folder
06-16-2015, 12:05 AM
(This post was last modified: 06-17-2015, 09:58 AM by jntslvdrt.)
Hello good people, I'm on Sentora in a Ubuntu 14 64 bits.
I'm using OpenCart + Export / Import tool that uses PHPExcel
I'm having trouble with temp path. I do know what is causing the error, actually it's suhosin protecting accounts passing over its directory. PHPExcel, which is inside an account (customer), is trying to access sentora temporary upload folder.
Well, I also do know how to solve it, better saying I think I know. I just need to change temporary folder path for this customer in specific. Isn't it? But how to do this? Probably using overrhide function just like documentation says here http://docs.sentora.org/?node=64 right?
I don't know the parameters.
I just want to set temp folder for Customer X as /var/zpanel/hostdata/X/temp instead of global /var/sentora/temp.
Can you help me? Above you can see the log file.
2015-06-15 9:48:36 - PHP Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br:/var/sentora/temp/) in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Shared/File.php on line 175
2015-06-15 9:48:36 - PHP Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br:/var/sentora/temp/) in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 197
2015-06-15 9:48:36 - PHP PHPExcel_Writer_Exception: Could not close zip file php://output. in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 399
I'm using OpenCart + Export / Import tool that uses PHPExcel
I'm having trouble with temp path. I do know what is causing the error, actually it's suhosin protecting accounts passing over its directory. PHPExcel, which is inside an account (customer), is trying to access sentora temporary upload folder.
Well, I also do know how to solve it, better saying I think I know. I just need to change temporary folder path for this customer in specific. Isn't it? But how to do this? Probably using overrhide function just like documentation says here http://docs.sentora.org/?node=64 right?
I don't know the parameters.
I just want to set temp folder for Customer X as /var/zpanel/hostdata/X/temp instead of global /var/sentora/temp.
Can you help me? Above you can see the log file.
2015-06-15 9:48:36 - PHP Warning: realpath(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br:/var/sentora/temp/) in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Shared/File.php on line 175
2015-06-15 9:48:36 - PHP Warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br:/var/sentora/temp/) in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 197
2015-06-15 9:48:36 - PHP PHPExcel_Writer_Exception: Could not close zip file php://output. in /var/sentora/hostdata/vulcanus/public_html/oc2_vulcanus_com_br/system/PHPExcel/Classes/PHPExcel/Writer/Excel2007.php on line 399