RE: Directory worked by PHP on webserver
| From: | Balbuena, Josue | Date: | Fri, 26 Apr 2019 15:21:21 +0000 |
| Subject: | RE: Directory worked by PHP on webserver | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326781@lists.php.net to get a copy of this message | ||
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@f1-outsourcing.eu>
Sent: viernes, 26 de abril de 2019 03:01 a. m.
To: php-general <php-general@lists.php.net>; Piti.Cholpripimolrat
<Piti.Cholpripimolrat@gmx.net>
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@gmx.net]
Sent: 26 April 2019 09:49
To: php-general@lists.php.net
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