Generate the correct chmod and chown commands to fix WordPress file and folder permissions.
#!/bin/bash
# WordPress Permissions Fix Script
# Server: apache
# Path: /var/www/html
# Set ownership
chown -R www-data:www-data /var/www/html
# Set directory permissions (755)
find /var/www/html -type d -exec chmod 755 {} \;
# Set file permissions (644)
find /var/www/html -type f -exec chmod 644 {} \;
# Secure wp-config.php (600)
chmod 600 /var/www/html/wp-config.php
# Secure .htaccess (640)
chmod 640 /var/www/html/.htaccess
# Make wp-content writable for uploads
chmod -R 775 /var/www/html/wp-content/uploads
# Make plugins/themes updatable
chmod -R 775 /var/www/html/wp-content/plugins
chmod -R 775 /var/www/html/wp-content/themesGenerate SQL queries to create WordPress admin accounts instantly. Useful when locked out or need quick database-level access.
Generate SQL queries for safe search-replace operations. Perfect for WordPress domain migrations.
Generate Apache .htpasswd entries for basic authentication with MD5, SHA-1, or plain text hashing.