このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 麻雀ルール [チップ・焼鳥について]
- 71 vsftpd [Difference Between PASV Mode and ACTIVE Mode]
- 2024.07.02 Windowsライセンス有効期限 [ライセンスの有効期限を確認方法]
最近の更新
Apache ユーザのumaskを変更したくて、修正したけどApacheだけだと変更できなかった。
PHP-FPMを利用の場合、ちゃんとこちらも変更しないと、正しく反映されなかった。
mkdir -p /etc/systemd/system/httpd.service.d
cat >> /etc/systemd/system/httpd.service.d/umask.conf << 'EOL'
[Service]
UMask=0002
EOL
systemctl daemon-reload
systemctl restart httpd
mkdir -p /etc/systemd/system/php-fpm.service.d
cat >> /etc/systemd/system/php-fpm.service.d/umask.conf << 'EOL'
[Service]
UMask=0002
EOL
systemctl daemon-reload
systemctl restart php-fpm