phpBB3 files to chmod for the install

What are the files that we need to chmod before and after the installation of the phpBB3 cms ?

Here is the list of the files to chmod :

666 before installation
644 after installation

All other files – 644
All directories – 755

There are some exceptions when it comes to directory permissions,

The files directory – 777
The cache directory – 777
The store directory – 777
The images/avatars/upload directory – 777