Mohammed Ali
Mohammed Ali

Reputation: 19

Fatal Error after WP Installations, is it a problem of wp-settings.php?

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

Answers (1)

Diogo Santo
Diogo Santo

Reputation: 789

If on Unix

chmod 755 -R /home/cntrlb8k/public_html/wp-includes/

If on Windows

  1. In Windows Explorer, right-click the file or folder you want to work with.

  2. From the pop-up menu, select Properties, and then in the Properties dialog box click the Security tab.

  3. 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.

  4. Click on the Edit button as you wish to modify the user permissions

  5. 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

Related Questions