How to solve “Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required ‘/opt/lampp/htdocs/……/index.php’ (include_path=’.:/opt/lampp/lib/php’) in Unknown on line 0 ” problem?

This error is due to the file permission. To resolve this issue we should change permission with SuperUser(sudo). So syntax is

sudo chmod -R 0755 foldername

I have installed lampp in /opt/lampp/htdocs folder so command for this is

sudo chmod -R 0755 /opt/lampp/htdocs

Open your terminal and run this command, hope this helps. If you are helped with this please don’t forget to post comment.

You may also like...

37 Responses

  1. gilles says:

    thanks alot

  2. sildenafil citrate says:

    I like your site. And especially your design is very good. I would like to find something like this (I mean the template).

  3. Dxtr says:

    Thank you so much , it works 🙂

  4. Alexandre says:

    Hi man, Thank you so much… I solved my problem

  5. eljoud says:

    thank you .. you saved my day.

  6. Derian says:

    Thank’s buddy, it’s really help me

  7. gringo says:

    If the permission change does not fix the issue, then make sure you are not missing an php extension. Unfortunatelly you do not see the error with the missing extension on this page, so go in the console and type;
    php -q yourfile.php
    replace yourfile.php with your actual php file which gives the error
    You should then see in the output, in the first lines, which extension is missing. So just install it and you;re good to go

  8. Gjon says:

    Thank You!!

  9. Sagala says:

    Great post, Thank Tou …

  10. Thank you , problem solved , thnx thnx

  11. Ivan says:

    THX a lot! dude1

  12. Bluerain says:

    Thank you sir. 🙂

  13. Ivan says:

    I love you!

  14. Peter says:

    God bless you.

  15. limafil says:

    Thanx, it works.

  16. David says:

    Thank you very much i love you thanks thanks !!!!!

  17. Reza says:

    Is this setting writtable so I can just place any files into htdocs directory?

  18. alejon says:

    I am also having this trouble. How can I do that command?? I am just a newbie

  19. Alejon says:

    Hi Guys, how can i do that command?

  20. Amir says:

    I love you man!!! saved my day and brought my mood back!

  21. Randy says:

    thanks!, it works

  22. rupesh yadav says:

    but those files r not getting open with normal user..
    means
    only super user is allowed to open those files after uploading…
    why… so..

  23. Manoj says:

    Much appreciated!

  24. maycon says:

    Thank you very much!

  25. Yes, thank. you change the permisions por example 700 and go

  26. guest_091263 says:

    thanks a lot!, it works… easy way to solve this problem 🙂 nice work!

  27. highlandmind says:

    Thanks for help.

  28. abi says:

    Thanks for your help appreciate it

  29. Google says:

    Thank you

  30. yogesh kashyap says:

    thanx a lot, It’s working…………:-)

  31. Didarul Alam says:

    can not see comnt

  32. Dhaval says:

    Thank you it works for me perfectly.

  33. Kailas says:

    thanks bro

  34. Musa Mustapha Baba says:

    problem solved. Thank you very much

Leave a Reply

Your email address will not be published. Required fields are marked *

*