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
php wordpress fatal-error
add a comment |
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
php wordpress fatal-error
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
1
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18
add a comment |
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
php wordpress fatal-error
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
php wordpress fatal-error
php wordpress fatal-error
edited Nov 24 '18 at 4:18
Randika Vishman
4,71723958
4,71723958
asked Nov 23 '18 at 20:36
Mohammed AliMohammed Ali
61
61
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
1
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18
add a comment |
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
1
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
1
1
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452691%2ffatal-error-after-wp-installations-is-it-a-problem-of-wp-settings-php%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
add a comment |
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
add a comment |
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
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
answered Nov 24 '18 at 2:11
Diogo SantoDiogo Santo
49818
49818
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53452691%2ffatal-error-after-wp-installations-is-it-a-problem-of-wp-settings-php%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you try installing the latest zip from wp? I guess some file or other may be missing or corrupted.. or better use wp cli which is quicker
– Manjunath
Nov 23 '18 at 20:42
1
You have a permissions problem. Look for recommended WordPress file permission settings.
– Difster
Nov 23 '18 at 20:43
I tried installing the latest zip from Wordpress.org through ftp, but I encounter the same error.
– Mohammed Ali
Nov 23 '18 at 21:18