Score:0

PHP-FPM error log /var/log/fpm-php.www.log Which system user writes the file?

us flag

PHP-FPM error log

/var/log/fpm-php.www.log

Which system user writes the file?

I have file permission

$ sudo chmod 666 /var/log/fpm-php.www.log

The file permissions are set to.

This file permission

$ sudo chmod 604 /var/log/fpm-php.www.log

I would like to change it to

However,

PHP-FPM error log

/var/log/fpm-php.www.log

I don't know which system user wrote the file.

$ sudo chown ?:? /var/log/fpm-php.www.log

I don't know the system user and system group to enter in "?:?" Of the above command

Does anyone know that?

Soren A avatar
mx flag
What are the current owner and group of the file ? Why do you want to change it ?
Liso avatar
sd flag
What are you trying to do exactly?
in flag
Generally this would be `root:adm` unless you're doing something very specific with your PHP installation ...
Jun Shiozawa avatar
us flag
This question was self-solved by me. $ sudo vi /var/www/html/myerrortest.php <?php ini_set("error_log", "/var/log/my_php-fpm_error_log.txt"); error_log("PHP_error_log_write_test”.date('Y-m-d H:i:s').”\n\n\n"); ?> $ sudo touch /var/log/my_php-fpm_error_log.txt $ sudo chmod 604 /var/log/my_php-fpm_error_log.txt $ sudo chown www-data:www-data /var/log/my_php-fpm_error_log.txt Access the following URL in my Firefox browser. http://localhost/myerrortest.php $ less /var/log/my_php-fpm_error_log.txt I could output error log permission 604. This Question's Anser is www-data
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.