Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The FPM log file located in /var/log/php-fpm.log has permissions rw------- (600). Other log files have rw-r--r--. How can I configure the file permission to 644?

share|improve this question

1 Answer 1

up vote 0 down vote accepted
chmod 644 /var/log/php-fpm.log
share|improve this answer
    
Indeed, that works on an existing log file and is persistent across FPM restarts and server reboots. But if the file is being created for the first time (or if I delete it for some reason, say) the default permission on the new file is still 600. Is there any way to ensure 644 like for other programs' log files? –  Rohit Mar 2 '13 at 15:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.