V
V
v0lume2015-09-07 02:19:16
PHP
v0lume, 2015-09-07 02:19:16

Apache/php how to change the user from which files are saved on the server?

In general, there is a site in which files are loaded through the extension.
Website and extension in php. For some reason, they are moved to the desired folder from the tempo files with root rights.
How to change the user from which the files will be saved?
I suspect it is set somewhere in the php / apache config

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Skobkin, 2015-09-07
@skobkin

For some reason, they are moved to the desired folder from the tempo files with root rights.

Apparently, you fill them under the root. Use chown or suid . Or set up FTP for yourself, running under the same user. Or suphp. There are different options.
But please...
Don't install PHP/Apache as root.

S
ShamblerR, 2015-09-10
@ShamblerR

to begin with, which representation of php
mod_apache FastCGI CGi PHP-FPM, depending on this, the answer will be

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question