Lockdown Ledger
Lockdown Ledger
@LockdownLedger

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

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.
Этот пост опубликован в Telegram-канале Lockdown Ledger. Подписаться можно по ссылке: @LockdownLedger.
tech

Свежие посты в категории «Tech Infrastructure»

Все каналы категории →

start

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

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

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