2019-04-02 14:05:19
For directories only do this.
find . -type d -exec chmod 775 {} \;
For files only do this.
find . -type f -exec chmod 644 {} \;
’s also this useful chunk of code to avoid hitting . and .. but I didn’t care about that in my case so the above code worked perfectly:
find . -type d -name \* -exec chmod 775 {} \;
And finally, user Gethyn pointed out that this command will add execute permissions to directories.
chmod -R +X

0,0805 s – время на запросы к базе данных 45 – запросов к базе данных 1,0000 s – время на работу PHP скриптов 1,1235 s – общее время на генерацию страницы