TechBooky AI Assistant
TechBooky AI Assistant
👋 Welcome to TechBooky AI Assistant

I can help with:
🔎 Tech News
🤖 AI Topics
💻 Gadgets
☁️ Cloud
✍️ Guest Posts
📢 Advertising
🔗 Backlinks
📩 Newsletter
  • AI Search
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise With TechBooky
  • Contact Us
TechBooky
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
TechBooky
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Home Tips

A Comprehensive Guide to Resolving File Permissions and Theme Issues

Paul Balo by Paul Balo
December 27, 2024
in Tips
Share on FacebookShare on Twitter
Share this story

Send it to someone who should read it.

f Facebook X X in LinkedIn wa WhatsApp tg Telegram @ Email

In Brief
  • Running a WordPress website can sometimes feel like navigating a labyrinth of plugins, themes, and configurations.
  • Even experienced webmasters encounter roadblocks that require methodical troubleshooting.
  • Recently, we faced a puzzling issue on a client’s website, where file permissions and theme-related errors halted our site management.

Running a WordPress website can sometimes feel like navigating a labyrinth of plugins, themes, and configurations. Even experienced webmasters encounter roadblocks that require methodical troubleshooting. Recently, we faced a puzzling issue on a client’s website, where file permissions and theme-related errors halted our site management. What had happened was that their Plesk powered domain name “all of a sudden” developed permission issues (obviously it wasn’t all f a sudden because I suspect human error to a great degree but that’s by the way). So when we first accessed the server, we couldn’t make any kind of changes to the wp-config or any other critical files for that matter. Here’s a detailed guide on how we resolved these issues, ensuring their website remained up-to-date and functional.

 

The Problem

We encountered several challenges:

  1. File Permission Errors: Plugins and themes displayed error messages, indicating insufficient read/write permissions.
  2. Theme Issues: Switching between themes, particularly to the Twenty Twenty-One theme, revealed backend errors.
  3. Backup Restoration Concerns: Restoring a backup while retaining the latest posts and database updates posed a significant challenge.

 

Step-by-Step Solution

1. Diagnosing Permission Issues

Initial Symptoms:

  • Error messages indicating lack of necessary permissions.
  • Inability to delete or move files within the WordPress directory.

Solution: Using SSH, we connected to the server to update directory and file permissions:

bash
sudo find /var/www/vhosts/your-domain/httpdocs -type d -exec chmod 755 {} \;
sudo find /var/www/vhosts/your-domain/httpdocs -type f -exec chmod 644 {} \;

Outcome: Ensuring correct permissions allowed plugins to function properly and resolved the initial errors.

2. Updating Ownership

Identification:

  • The user associated with the domain was your-plesk-user.

Action: Updating ownership using the correct user:

Also worth reading
Too Much Gemini? Here’s How To Dial Back Gemini In Your Google Workspace Apps How One Engineer Built a Local AI News Roundup With Docker & Qwen NCC Shares 9 Tips to Cut Data Depletion Strategies To Save IT Expenses Without Sacrificing Creativity Schema Markup in WordPress: A Step-by-Step Guide to Rich Result How to Safely Migrate a WordPress Site to a New Server (Step-by-Step Guide)
sudo chown -R your-plesk-user:psacln /var/www/vhosts/your-domain/httpdocs

Verification: Listing the directory contents to confirm ownership:

ls -la /var/www/vhosts/your-domain/httpdocs

3. Switching Themes via phpMyAdmin

Challenges:

  • The Twenty Twenty-One theme displayed errors that required a switch back to our original theme.

Solution: Updating the theme settings directly in the database:

Using SQL in phpMyAdmin:

UPDATE `wp_options` SET `option_value` = 'your-original-theme' WHERE `option_name` = 'template';
UPDATE `wp_options` SET `option_value` = 'your-original-theme' WHERE `option_name` = 'stylesheet';

4. Safely Restoring a Backup

Concerns:

  • Ensuring the restoration of file system backups without losing recent posts and database updates.

Steps:

  1. Backup Current Database:
    • Using phpMyAdmin to export the current database.
  2. Restore Files from OneDrive:
    • Utilizing Plesk’s restore function to selectively restore file backups.
  3. Re-import Database:
    • If necessary, re-importing the current database to ensure all posts remain up-to-date.

Comprehensive Insights and Tips

Understanding File Permissions and Ownership:

  • Permissions ensure that WordPress and its plugins can read and write necessary files.
  • Correct ownership ensures that the appropriate user has control over the files, preventing unauthorized access or modifications.

Switching Themes:

  • phpMyAdmin is a powerful tool for directly modifying the WordPress database, allowing theme changes even when the WordPress dashboard is inaccessible.

Backup Strategies:

  • Regular backups are crucial. Keep both file and database backups up-to-date to ensure easy restoration without data loss.
  • Use hosting solutions like Plesk to simplify backup and restoration processes.

Clearing Caches:

  • After major changes, clearing WordPress and server caches ensures that new configurations are reflected without old data causing conflicts.

Conclusion

By meticulously updating permissions, changing ownership, and strategically managing backups, we successfully resolved the issues on their domain. This experience underscores the importance of understanding server management, database operations, and WordPress intricacies. We hope this guide helps others navigate similar challenges with confidence and ease. While this is highly useful for WordPress applications running on Plesk, it can work for sites not powered by Plesk too. 

Related Reading

More contextual TechBooky stories selected from tags, categories and article context.

  • 020224_cloudflare
    Cloudflare Blames Configuration Error for Major Outage
  • x office
    X Hit By Another Brief Outage
  • Microsoft_Office_Outlook_(2018–present).svg
    New Outlook Can’t Open Excel Files With Non-ASCII…
  • images (2)
    The Untold Story of WordPress and WP Engine's Clash
  • ZcEQEPVsszUfc3r74WWPLD
    Microsoft Offers Guide to Fix Windows Blue Screen Errors
  • How-to-connect-to-EC2-instance-via-SSH-Linux-1
    Recovering SSH Access on AWS - A Step-by-Step Guide
  • wordpress-website-migration
    How to Safely Migrate a WordPress Site to a New…
  • 6deb0fe6ebb87630ce20d8975d97de40
    Vodafone Suffers Major Outage Affecting Mobile and…
Keep Reading Smarter

Search TechBooky with AI

Use TechBooky's AI Search to explore the context behind this story and related coverage across the site.

Try AI Search
More On This Topic
Tips
Follow TechBooky

Follow TechBooky for more technology stories and newsroom updates.

f Facebook X X in LinkedIn ig Instagram wa WhatsApp

Tags: tipswebsitewordpress
Paul Balo

Paul Balo

Paul Balo is the founder of TechBooky and a highly skilled wireless communications professional with a strong background in cloud computing, offering extensive experience in designing, implementing, and managing wireless communication systems.

Search TechBooky
Open TechBooky AI Search Try the AI Assistant

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Hugging Face Faces Deepfake Safety Questions After AI Forensics Study July 28, 2026
  • Recursive Superintelligence Signs $410M AWS Compute Deal July 28, 2026
  • Apple Upgrade Turns iPhones And Macs Into A Leasing Business July 28, 2026
  • Lyft And Baidu Start London Robotaxi Tests As Europe Race Heats Up July 28, 2026
  • PayPal Raises Profit Outlook As Turnaround Meets Takeover Speculation July 28, 2026
  • Microsoft Launches MAI-Cyber-1-Flash As AI Security Becomes A Model Race July 28, 2026
  • Anthropic Says It Does Not Want An Open-Weight AI Ban, But Still Wants Tough Rules July 28, 2026
  • X Money Launches In The US As Musk Moves X Closer To An Everything App July 28, 2026
  • Snapchat Brings Spotify Listening To Snap Map With Now Playing July 27, 2026
  • Threads Users Can Now DM Meta AI As The Assistant Moves Deeper Into Social Apps July 27, 2026
  • NVIDIA Launches Open Secure AI Alliance To Make Open Models A Cyber Defence Tool July 27, 2026
  • CXMT Surges 470% As China Bets Big On AI Memory Chips July 27, 2026

Browse Archives

July 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jun    

Quick Links

  • About TechBooky
  • Advertise With TechBooky
  • Contact us
  • Submit Article
  • Privacy Policy
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • Artificial Intelligence
  • Gadgets
  • Metaverse
  • Tips
  • AI Search
  • About TechBooky
  • Advertise With TechBooky
  • Submit Article
  • Contact us

© 2025 Designed By TechBooky Elite

Discover more from TechBooky

Subscribe now to keep reading and get access to the full archive.

Continue reading

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.