chmod 777Start by setting permission numbers to 777 to grant files more access, then use the chmod command to modify specific permissions for each folder in var.chmod(string $filename , int $permissions ): bool Attempts to change the mode of the specified file to that given in permissions.