Make sure the user running on behalf of the webserver’s PHP process has ownership permissions on /path/to/wordpress
Example
For Ubuntu 18.04 running Apache2
# Go to wordpress installation root directory
cd /path/to/wordpress
# Give ownership to Apache2's PHP process
sudo chown www-data:www-data .
# Apply files and directories permissions
sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 644 wp-config.php
Related Posts:
- Why is group ownership with rwx permissions not enough?
- How to configure apache to create files with correct group owner [closed]
- Permissions in a Local Dev Environment (OS X)
- Plugins & backup not working correctly on new Digital Ocean server
- MAMP File Permissions
- MySQL error 1449: The user specified as a definer does not exist
- Destination directory for file streaming does not exist or is not writable
- How to to secure WordPress file and folder permissions
- Optimize apache for WP use
- WP in Docker – cannot install plugin or upgrade WP
- when FS_METHOD = ‘direct’ is chosen?
- Create custom permissions for user type
- WordPress REST API – Permission Callbacks
- add_menu_page permissions – what am I doing wrong?
- Recommended File Permissions
- Network Admin “You do not have sufficient permissions to access this page.”
- How do I get the right permissions for WordPress running Apache on Debian
- What’s the difference between the permissions “edit_published_posts” and “edit_posts”
- Wrong permissions when uploading a file through WordPress | IIS
- ftp_nlist() and ftp_pwd() warnings
- Implement ssl to a WP docker container [closed]
- What permissions should i have set up for the Database User after i have WordPress set up?
- What are best practices for configuring a server for WordPress sites?
- WordPress keeps asking for connection information in localhost
- How can I limit WordPress editor roles to a specific category?
- Universal problem: first request after ~25 second inactivity always slower (~1 second) than subsequent requests (~1/10sec)
- Safe to set permissions to 757 temporarily to update via wp-cli?
- WordPress incorrectly redirects to local IP address?
- WordPress debug.log is not updating
- WordPress file permissions for editing on local Ubuntu development machine
- can’t change footer
- How to change server name on WordPress Installation?
- permissions access error
- Permissions Issue with WordPress
- Enable plugin installs without FTP with user from same group as Nginx/PHP-fpm
- Iframe a WordPress template
- Moved my WordPress site and now it can’t read the theme
- WordPress unable to create folders even though correct NTFS-rights are set
- WordPress php mysql errors – errcode: 13 permission denied
- Safari not “giving Permission to Open This Page” when trying to load pdf from wordpress site [closed]
- Invalid changeset UUID WordPress
- Grant user rights to access certain tabs of a plugin
- Running WordPress as FTP user?
- How to to secure WordPress file and folder permissions
- Return scheduled posts with WP REST API
- wp-content Folder Permissions (777 OK?)
- failed to open stream: Permission denied for WordPress plugin
- How to prevent plugins from being uninstalled
- Implement Javascript Code in the footer if user is logged in
- Reseting file permissions
- What is the “user account” for WordPress’ file permissions?
- Auto-update failing with “hardened” permissions
- Restrict access to trash, only admin
- How to hide wordpress error message?
- On new server, site got hacked, permissions a bit strange? Please help
- What is this error message?
- “Backdoor-list.txt” files unexpectedly in server
- How to grant user access the page [closed]
- Auto-Upgrade to 4.2.2 fails because theme functions.php is included instead of wp-includes/functions.php
- wp-content – permissions for files/folders created by apache
- Configure Permissions in Mamp [closed]
- Edit draft from other author
- How to add only a (sub) capacity to an user role?
- How to reduce Apache connections caused by plugins?
- APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC [closed]
- How to disable admin/editor access to specific user’s posts
- Can’t Change the default theme on WordPress by BitnamI running on AWS
- How to make file not open to public but javascript file under WordPress folder can load it
- Opening a file of the theme from outside
- Allow Editor access to a certain plugin
- Visitors “do not have permission to view this content” on home page only
- Blank White page issue in WordPress
- Problem with a wordpress admin system. and website
- localhost/wordpress(or other application), how does it work?
- Apache using full RAM problem
- Create a custom “you dont have permission” message
- How to lock all published posts so only admin can unlock delete and update permission
- Why do some of my directories need to be writeable that shouldn’t be?
- Downloaded WP but Nginx home page still showing
- Pages displays as Restricted to Admin
- Hang Up Followed By Can’t select database
- Public and Private keys incorrect for user
- Why can I upload files but need FTP login for plugins
- Migrating WordPress from Windows Server 2008 R2 (IIS v7.5) to CentOS
- wordpress using WP MVC: You do not have sufficient permissions to access this page
- Folder Permissions + Security Concerns
- Strange error “You do not have sufficient permissions to access this page”
- Is it possible to allow a user to only edit categories of posts and nothing else?
- Apache extensions for WordPress’ working without troubles
- Restrict access to specific content
- WordPress – Public side and Private side
- the_tags only showing when logged in?
- WordPress Memory limit not increasing
- Plugins Page – “Page disabled by the administrator”
- WordPress files owner changed silently
- How do I share a Git repository with multiple users on a machine?
- Amazon Cloudfront with S3. Access Denied
- GRANT SELECT to all tables in postgresql
- Postgresql: what does GRANT ALL PRIVILEGES ON DATABASE do?
- Subfolder install not working