Warning: main(/home/USERNAME/public_html/wp-content/themes/limau-orange-01/index.php) [function.main]: failed to open stream: Permission denied in /home/USERNAME/public_html/wp-includes/template-loader.php on line 20Warning: main(/home/USERNAME/public_html/wp-content/themes/limau-orange-01/index.php) [function.main]: failed to open stream: Permission denied in /home/USERNAME/public_html/wp-includes/template-loader.php on line 20Warning: main() [function.include]: Failed opening ‘/home/USERNAME/public_html/wp-content/themes/limau-orange-01/index.php’ for inclusion (include_path=’.:/usr/php4/lib/php:/usr/local/php4/lib/php’) in /home/USERNAME/public_html/wp-includes/template-loader.php on line 20
The above error was encountered by me last day after I edited my blogs template files. I was on Linux and was using Gedit to edit files. So what caused the above error. As it turned out the default Linux Access Permission was the villain. It can also be clearly seen from the error message that a Permission Denied error was produced.

By default Linux applies the following set of access permissions to all files
Owner : rw
Group : Forbidden
Others : Forbidden
when using Konqueror. So when WP tried to access these files it returned an error because WordPress was not the owner of the file. It took some time for me to figure it out. So checkout twice when you are working on Linux and uploading files to your server and thank wordPress for good error reports.
Some related articles you may like :
- Analytics account open to stream lined login
- Why is my template selection page in WordPress showing cryptic CSS
- Get access to all folders in Windows like Linux
- Do I have badware, Google thinks so, so does stopbadware dot com
- Main reasons for Invalid XHTML pages in blogs
- Built in parental control in Windows XP – control user login times
- How to find out all open ports, connections and originating IP addresses
- Cool icons – get icons free from FastIcons.com
2 Comments
Hi ET please specify on what server are you on… Is it running cpanel..
How do you resolve it? I am stuck with the problem.
One Trackback
[...] Unexpected error on your webpage home – function.main failed to open stream [...]