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












1















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











share|improve this question

























  • 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


















1















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











share|improve this question

























  • 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
















1












1








1








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











share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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














1 Answer
1






active

oldest

votes


















0














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






share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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






    share|improve this answer




























      0














      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






      share|improve this answer


























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 24 '18 at 2:11









        Diogo SantoDiogo Santo

        49818




        49818
































            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Costa Masnaga

            Fotorealismo

            Sidney Franklin