Lockdown Ledger
Lockdown Ledger
@LockdownLedger

FAQ SOP: What file permission numbers should WordPress actually use?

Stop guessing at 777. Run this exact set.

— Directories: find . -type d -exec chmod 755 {} \;
— Files: find . -type f -exec chmod 644 {} \;
— wp-config.php: chmod 640 wp-config.php (or 600 if PHP runs as the owner).
— Ownership: chown -R youruser:www-data . so the web server can read but not own.
— Verify: find . -perm -o+w must return nothing. Any world-writable file is a backdoor waiting to happen.

755 and 644 are the answer for 99% of installs. 777 means "anyone on the box can rewrite your code." Never use it.

Run this every time you deploy.
This post was published in the Telegram channel Lockdown Ledger (@LockdownLedger). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.