Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  38] [ 0]  / answers: 1 / hits: 205891  / 1 Year ago, thu, april 27, 2023, 7:25:18

I was trying to open a file and write to it with PHP at /var/wwwfolder
but it wasn't working so I did



sudo chmod 777 /var/www


now I want to set the permissions for /var/www to the default.

what are the default permissions for /var/www?


More From » permissions

 Answers
3

The permissions on this folder are:



chmod 755 /var/www/


and the files inside the folder are:



chmod 644 /var/www/file

[#28103] Friday, April 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aveerakfas

Total Points: 106
Total Questions: 148
Total Answers: 129

Location: Monaco
Member since Sun, Jan 1, 2023
1 Year ago
;