wpconfig.php 440 or 400 permissions fails
-
When I try to connect to wp at <my host>/wp-admin I get the error message:
`Warning: require_once(<path>/wp-config.php) [function.require-once]: failed to open stream: Permission denied in <path>/wp-load.php on line 34
Fatal error: require_once() [function.require]: Failed opening required ‘<path>/wp-config.php’ (include_path=’.:/opt/php/lib/php’) in <path>/wp-load.php on line 34
This error occurs only when wp-config.php does not have read permission for everyone (for example, 400 or 440). With permissions set to 444 everything works OK, but I do not wish to make the file readable by everyone, for obvious reasons.
The WP instance is installed on a shared server.
wp-config.php has been moved to the folder above the wp installation.
The server is running php 5.3What I have already tried, and which is NOT a solution:
– reinstalling WP
– removing .htaccess
– reading every thread here and explanations in codex
– it obviously has nothing to do with plugins, but I have no caching pluginsAny ideas what to do? Does this have something to do with the way PHP is configured (over which I have no control)? Might it concern the way groups are defind on the server?
- The topic ‘wpconfig.php 440 or 400 permissions fails’ is closed to new replies.