Skip to content

Commit b312759

Browse files
committed
Restrict php error log permissions
1 parent 3439d00 commit b312759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bash/ss-perms-php-config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fi
8383
if [ ! -f "/var/www/logs/php-error.log" ]; then ss_touch "/var/www/logs/php-error.log"; fi
8484

8585
chown www-data:www-data /var/www/logs/php-error.log
86-
chmod 0644 /var/www/logs/php-error.log ## 6755 should also work
86+
chmod 0640 /var/www/logs/php-error.log ## must be 0640
8787

8888
####################################################################################################
8989
#### D. SS-Perms-PHP-Config: Reset Permissions (Adminer.php) #######################################

0 commit comments

Comments
 (0)