Reputation: 19
I am facing this error every week after I install Wordpress.
I tried uploading a new wp-settings.php
file from GitHub but that doesn't seem to be working too.
Error:
Warning: require(/home/cntrlb8k/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/cntrlb8k/public_html/wp-settings.php on line 166
Warning: require(/home/cntrlb8k/public_html/wp-includes/post.php): failed to open stream: Permission denied in /home/cntrlb8k/public_html/wp-settings.php on line 166
Fatal error: require(): Failed opening required '/home/cntrlb8k/public_html/wp-includes/post.php' (include_path='.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/cntrlb8k/public_html/wp-settings.php on line 166
Upvotes: 1
Views: 1973
Reputation: 789
If on Unix
chmod 755 -R /home/cntrlb8k/public_html/wp-includes/
If on Windows
In Windows Explorer, right-click the file or folder you want to work with.
From the pop-up menu, select Properties, and then in the Properties dialog box click the Security tab.
In the Name list box, select the user, contact, computer, or group whose permissions you want to view. If the permissions are dimmed, it means the permissions are inherited from a parent object.
Click on the Edit button as you wish to modify the user permissions
Another window of the permissions of the selected folder will arrive on the screen. Here, under the Group or user names segment, choose the account for which you want to carry out the changes. Then look for the Permissions segment where you will find a list of permissions along with two boxes, allow and deny. Give or withdraw permissions for each operation by choosing the access or deny checkboxes. Once finished, click Apply and Ok buttons.
Windows permissions source copied from here
Upvotes: 0