{"id":20286403,"url":"https://github.com/antoonline/bash-script-wordpress-docker-fix-permissions","last_synced_at":"2026-04-18T02:32:28.130Z","repository":{"id":158576222,"uuid":"632374263","full_name":"AntoOnline/bash-script-wordpress-docker-fix-permissions","owner":"AntoOnline","description":"This script identifies running WordPress instances in Docker containers and fixes their file and directory permissions. It sets the correct ownership, file, and directory permissions for the WordPress root directory, and adjusts group permissions for the wp-content folder and its subdirectories.","archived":false,"fork":false,"pushed_at":"2023-04-30T23:38:44.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T19:43:54.254Z","etag":null,"topics":["docker","permissions","ubuntu","wordpress"],"latest_commit_sha":null,"homepage":"https://anto.online","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoOnline.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T09:21:16.000Z","updated_at":"2025-03-14T14:04:53.000Z","dependencies_parsed_at":"2023-06-09T20:00:42.901Z","dependency_job_id":null,"html_url":"https://github.com/AntoOnline/bash-script-wordpress-docker-fix-permissions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoOnline/bash-script-wordpress-docker-fix-permissions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-fix-permissions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-fix-permissions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-fix-permissions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-fix-permissions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoOnline","download_url":"https://codeload.github.com/AntoOnline/bash-script-wordpress-docker-fix-permissions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fbash-script-wordpress-docker-fix-permissions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","permissions","ubuntu","wordpress"],"created_at":"2024-11-14T14:33:58.453Z","updated_at":"2026-04-18T02:32:28.115Z","avatar_url":"https://github.com/AntoOnline.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Permissions Fix Script\n\nThis script can be used to fix the file and directory permissions for multiple running WordPress instances running in Docker containers.\n\n## Prerequisites\n\nTo use this script, you will need to have the following installed on your system:\n\n- Docker\n\n## Usage\n\nTo use this script, follow these steps:\n\n1. Download the `fix-wordpress-permissions.sh` file to your system.\n2. Open the terminal and navigate to the directory where the file is downloaded.\n3. Run the following command to make the script executable: `chmod +x fix-wordpress-permissions.sh`\n4. Run the script using the following command: `./fix-wordpress-permissions.sh`\n\nThe script will automatically detect all running WordPress instances in Docker containers and fix the permissions for each instance. The script will also provide information about the status of each instance being fixed during the process.\n\n## Troubleshooting\n\nIf the script is not working as expected, try the following troubleshooting steps:\n\n- Make sure that Docker is installed and running.\n- Check that the WordPress containers are running and are based on the official `wordpress` image.\n- Make sure that you have the necessary permissions to execute the script.\n\n## Disclaimer\n\nThis script is provided as-is and is intended for use at your own risk. Always backup your data before making changes to your file and directory permissions. The author is not responsible for any damage or loss caused by the use of this script.\n\n## Want to connect?\n\nFeel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.\n\nOr just visit my [website](https://anto.online) to see what I do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-fix-permissions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-fix-permissions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fbash-script-wordpress-docker-fix-permissions/lists"}