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.

Linux default permission list on Konqueror

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 night

If you are new here you may want to subscribe to this blogs full feed RSSSubscribe to full feed RSS of this blog
so that you will get the updates automatically to your feed reader.

Tags: ,

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.

RSS feed | Trackback URI

3 Comments »

Comment by ETNo Gravatar
2008-11-28 14:06:00

How do you resolve it? I am stuck with the problem.

Comment by AjithNo Gravatar
2008-12-03 06:37:58

Hi ET please specify on what server are you on… Is it running cpanel..

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Subscribe to comments via email
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post



My Google  Netvibes  My Yahoo!  Windows Live  Bloglines  Newsgator