Firefox PHP

Anyone else seen this (/tmp issue on 000webhost)?

Posted by Craig H. Steblen 
Anyone else seen this (/tmp issue on 000webhost)?
April 02, 2018 06:07PM
I'm running version version 5.2.23 that had been working for quite a while on a free web host 000webhost. Starting this week I'm seeing a funny issue
I'm seeing this when attempting to start phorum (again, this had been working, I made NO changes).

Warning: file_exists(): open_basedir restriction in effect. File(/tmp/tpl-emerald-settings-e5c3f7a608a1eb9823b912897638f379.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd3/012/1843012) in /storage/ssd3/012/1843012/public_html/phorum/common.php on line 1800

Warning: fopen(): open_basedir restriction in effect. File(/tmp/tpl-emerald-settings-e5c3f7a608a1eb9823b912897638f379.php) is not within the allowed path(s): (/opt/awex-pages:/storage/ssd3/012/1843012) in /storage/ssd3/012/1843012/public_html/phorum/include/templates.php on line 782

Warning: fopen(/tmp/tpl-emerald-settings-e5c3f7a608a1eb9823b912897638f379.php): failed to open stream: Operation not permitted in /storage/ssd3/012/1843012/public_html/phorum/include/templates.php on line 782

Fatal error: phorum_write_file: failed to write to file "/tmp/tpl-emerald-settings-e5c3f7a608a1eb9823b912897638f379.php". This is probably caused by the file permissions on your Phorum cache directory in /storage/ssd3/012/1843012/public_html/phorum/include/templates.php on line 786

I did check and the /tmp dir does in fact exist and I do have write permission


When I attempt to change the cache setting from /tmp to another dir (one that I just created and has permissions 777), still no go... any suggestions? I contacted 000webhost support and they suggested I start here...



Thanks for any info.


Re: Anyone else seen this (/tmp issue on 000webhost)?
April 02, 2018 07:21PM
If you did not change anything, then your host changed something. I believe the error messages are accurate.

There should be a period in front of the slash ./tmp in order to place the tmp directory in the Phorum directory.


Another possibility is a directory named "tmp" must be in a particular path, in which case use a different name for the directory like
" ./cache "
Re: Anyone else seen this (/tmp issue on 000webhost)?
April 02, 2018 10:06PM
Thanks, creating a ./cache directory with wide open perms did it. Something must have changed at the host end... new storage or something along those lines...
Take care.
Sorry, only registered users may post in this forum.

Click here to login