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.
thanks alot
I like your site. And especially your design is very good. I would like to find something like this (I mean the template).
Thank you so much , it works 🙂
Hi man, Thank you so much… I solved my problem
thank you .. you saved my day.
Welcome buddy 🙂
Thank’s buddy, it’s really help me
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
Thank You!!
Great post, Thank Tou …
Thank you , problem solved , thnx thnx
THX a lot! dude1
Thank you sir. 🙂
I love you!
God bless you.
Thanx, it works.
Thank you very much i love you thanks thanks !!!!!
Is this setting writtable so I can just place any files into htdocs directory?
I am also having this trouble. How can I do that command?? I am just a newbie
Hi Guys, how can i do that command?
I love you man!!! saved my day and brought my mood back!
thanks!, it works
but those files r not getting open with normal user..
means
only super user is allowed to open those files after uploading…
why… so..
thanks
Much appreciated!
Thank you very much!
Yes, thank. you change the permisions por example 700 and go
thanks a lot!, it works… easy way to solve this problem 🙂 nice work!
Thanks for help.
Thanks for your help appreciate it
Thank you
thanx a lot, It’s working…………:-)
can not see comnt
Thank you..
Thank you it works for me perfectly.
thanks bro
problem solved. Thank you very much