One permission requirement that is often overlooked is a user needs x permissions in every parent directory of a file to access that file. Check the permissions on /, /home, /home/demo, etc. for www-data x access. My guess is that /home is probably 770 and www-data can’t chdir through it to get to any subdir. If it is, try chmod o+x /home (or whatever dir is denying the request).
EDIT: To easily display all the permissions on a path, you can use namei -om /path/to/check
Related Posts:
- HAProxy vs. Nginx
- HAProxy vs. Nginx
- No acceptable C compiler found in $PATH while installing the C compiler
- Failed to start LSB :Bring Up down Networking
- nginx: connect() failed (111: Connection refused) while connecting to upstream – after update nginx –
- rndc: connect failed: 127.0.0.1#953: connection refused
- phpinfo() is not working on my CentOS server
- Apache is downloading php files instead of displaying them
- Why am I getting 404 not found on this wordpress subdomain on my Nginx server?
- Nginx FastCGI_Cache Vs PHP Caching
- WordPress media upload “HTTP error”
- Block PHP Files Nginx
- Mysterious HTTP 404 header in my own scripts
- PHP Code stuck in Cache [Memcached] [closed]
- How to combine wordpress_logged_in cookies in one cookie?
- how to combine wordpress htaccess on my root domain + php on subfolder
- Incorrect MIME type for assets with Valet
- WordPress & Fastcgi proper setup?
- NGINX rewrite rules for multisite
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Nginx WordPress and another Web app URL structure
- How to debug failed changes to posts?
- Which version of PHP-FPM is necessary to work with WP 3.5?
- Migrating site, only header shows
- Infinite Loop in WordPress Installation
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- How to route root path / to /xyz in nginx?
- Why can’t I connect to the wordpress install page with Nginx?
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- WordPress/NGINX not respecting the category URL for new posts
- How to solve 404 permalink errors on nginx server
- WordPress directories not writable after PHP version upgrade
- How do you restart php-fpm?
- How do you install Node.JS on CentOS?
- How do I update a CentOS server’s time from an authoritative time server?
- Best way to gracefully restart CentOS?
- Adding a directory to $PATH in CentOS?
- How to extend an ext4 partition and filesystem?
- My /var/log/btmp file is huge! What should I do?
- Log all commands run by admins on production servers
- Centos 7 save iptables settings
- How to open port for a specific IP address with firewall-cmd on CentOS? [duplicate]
- How can I improve and optimise my wordpress web server for better performance in 2023
- WordPress site calling debug.log and .user.ini at certain hour
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Updates applied to staging WordPress site affecting production even with different databases
- Load slideshow.css file only if Slideshow is checked / on
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Pages, aside from admin-side and the home page, read “500 Internal Server Error – nginx/1.1.19”.
- Customise Author Page?
- echo vs output variable [closed]
- Excerpt all post content Content Same Size without word cutting off
- Foreach giving one too many list items, how can I remove the last empty line?
- Display Post Titles on top of the_post_thumbnail()
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Error in php code
- How to create categories out of a list of words?
- How can i give a download link to the thumbnail or featured image
- add if statement to the featured image
- WordPress White Screen Error
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- How to handle parent and child pages?
- How can I prevent wordpress from sending emails
- Fast Tranfering my WordPress site to another server
- Get Products within Current Product Category
- Category slug inside another php code
- Options.php loop won’t show!
- Wrapping the_content() in Schema articleBody tag? [closed]
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- http upload error as a subscribed user
- Duplicating wordpress install issue
- Millennial Media PHP Setup ( Code Integration )
- Insert into db with foreach problem
- Open WordPress Page from selected option dropdown
- WPMU – How to echo only one URL
- Link a lightbox thumbnail to a post instead of opening the lightbox
- Null value given when confirming email’s
- Predefine Magazine Style Layouts
- Sort author list alphabetically
- Inserting a shortcode into a genesis menu?
- WordPress create permalink structure for custom post type with userid
- Adding multiple conditional tags in a function?
- Suppress errors when using global function
- Send a custom notification to customer on WooCommerce cancelled order status
- In reading settings posts are set to “blog” and I have page-blog.php but no posts
- Appending an ACF custom field to the page title
- I am unable to fetch json data from wp_db
- How to code bulk order form in wordpress
- 504/502 errors plauging our site
- using a shortcode in a hyperlink
- Using is home to get content [closed]
- Shortcode for Visual Composer Grid fails turning string to integer
- Check if username doesn’t exists
- Loop on a wordpress Page instead of content coming from the WP text editor
- Upgrade wordpress core programmatically with PHP [closed]
- Why is my footer missing [closed]
- nginx + wordpress: Best practices for configuring it to be secure, reliable, and fast? [closed]
- Use ajax response in PHP function
- Too many if’s and else if’s ?? – Must be better way [closed]