Unexpected error on your webpage home - function.main failed to open stream
Warning: main(/home/exnol07/public_html/wp-content/themes/limau-orange-01/index.php) [function.main]: failed to open stream: Permission denied in /home/exnol07/public_html/wp-includes/template-loader.php on line 20Warning: main(/home/exnol07/public_html/wp-content/themes/limau-orange-01/index.php) [function.main]: failed to open stream: Permission denied in /home/exnol07/public_html/wp-includes/template-loader.php on line 20Warning: main() [function.include]: Failed opening ‘/home/exnol07/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/exnol07/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 Permissions turned out to be the villain.

By default Linux applies the following set of access permissions to all files. Owner : rw Group : Forbidden Others : Forbidden when using Konqueror to upload your files. 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
Buy me a cup of hot coffee - help me keep posting all through the nightso that you will get the updates automatically to your feed reader.
Tags: Error, Permissions
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


How do you resolve it? I am stuck with the problem.
Hi ET please specify on what server are you on… Is it running cpanel..