I suspect this is all systemd culprit because of the output, you have to set "PrivateTmp=false" on your webserver systemd control file. For example, in apache on suse linux, you have to override it: Execute: systemctl edit apache2 Paste in the below: [Service] PrivateTmp=false Then restart the service with systemctl restart apache2, in case of nginx it should be probably fpm config from the response you got earlier. -----Original Message----- From: Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> Sent: viernes, 26 de abril de 2019 03:01 a. m. To: php-general <php-general@xxxxxxxxxxxxx>; Piti.Cholpripimolrat <Piti.Cholpripimolrat@xxxxxxx> Subject: RE: Directory worked by PHP on webserver Do phpinfo(); search the output for tmp and configure those for your path. With fpm you can also do something like this env[TEMP] = -----Original Message----- From: Piti Cholpripimolrat [mailto:Piti.Cholpripimolrat@xxxxxxx] Sent: 26 April 2019 09:49 To: php-general@xxxxxxxxxxxxx Subject: Directory worked by PHP on webserver Hi Expert, I have running php on a website. I am now facing a problem with location/directory working by php. I have tried to create and update a file on a linux server via web+php. Ultimately, I have come to know that it is working in this path /tmp/systemd-private-ce742af7deeb4863bd593a9da4911aba-httpd.service-Nct0 cB/tmp/ instead of pure /tmp/. How do I configure and control where php should actually work on linux directory? Could you please suggest how to overcome the issue? BRs, Piti