How to change default chmod

Hi All!

I'm using joomla for my ehcp installed webhost.
Each time when I install a new domain with joomla I have to manually chmod 775 for thousands of files and folders.

How can I set ehcp to chmod all sites automatically 775?


be careful about your mod of files.
to change default behaviour of ehcp,
edit classapp.php,
find function syncdomains,

you will see like:

passthru2("chown $this->ftpowner -Rf ".$dom['homedir']);
passthru2("mkdir -p ".$dom['homedir']."/phptmpdir");
passthru2("chmod a+w ".$dom['homedir']."/phptmpdir");

add your wanted code here. be careful.