dir mode should be 0755, not 0644.