昨日まで気合と根性でwordpressフォルダのパーミッションを変更しておりました。頭の悪い素人はそんんばもんです。
もっと早く調べればよかった。先ず思いついたのが、findで探して変更。確かに、言われてみれば出来そうですね。
# find public_html -type f -exec chmod 604 {} \;
# find public_html -type d -exec chmod 705 {} \;
# find ./ -type f -regex “.*\.\(php\|ctp\)” -exec chmod 604 {} \;
# find ./ -type f -regex “.*\.*[^php|ctp]*” -exec chmod 604 {} \;
先ずはshの方法をメモとして。
その他・・・wordpressの一括設定などphpを作られている方もいらっしゃり、帰宅後要調査。