Sunday, March 25, 2012

Unable to view site created using Joomla

For Joomla newbies like me, if you are unable to open your site and all you can see is this wretched piece of error trace in your browser, just CHILL !!!
You are most likely facing this problem while installing a copy of Joomla on your computer with sample data (http://docs.joomla.org/Use_Joomla!_on_your_own_computer)

Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/joomla25/configuration.php) [function.require-once]: failed to open stream: Permission denied in/Applications/XAMPP/xamppfiles/htdocs/joomla25/includes/framework.php on line 52
Fatal error: require_once() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/joomla25/configuration.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/joomla25/includes/framework.php on line 52

The problem isn't as ugly as it appears. Read the details a little carefully and you notice a sentence saying "Failed opening required ..... configuration.php"

So, that's the problem ! Joomla could not open/read the configuration.php file.
Once you know the problem, it is easier to find the solution. And the solution obviously is:
1. Check if the file exists.
2. If it does NOT exist, create one under the root Joomla directory and give it necessary permissions.
    In my case the root Joomla directory on my Mac is /Applications/XAMPP/htdocs/joomla25
3. If it does exist, check if the READ permissions are available to all the users (i.e. you, group and others)
    If you happened to follow an earlier post that was related to another problem (the solution to which happened to be creating the configuration.php file with only write parameters), you definitely want to give permissions to the file using the following
chmod o+r configuration.php
Once the configuration.php file exists and is readable to all users, refresh your site page and your problem should be solved. If not, please let me know and I can update this blog so that other wanderers like you and I find a problem to the solution.


My Joomla setup has:
  • OS: Mac OSX SnowLeopard 10.6.8
  • Server: XAMPP 1.7.3
  • Joomla Version: 2.5
  • Joomla installation directory name under htdocs: joomla25

P.S: And if this article was an eye-opener, don't be shy :) . Just go ahead and +1 or Like this - so that people experimenting with Joomla are not put off by little problems !!!  Joomla!  !!!

No comments:

Post a Comment