How to find your site’s absolute path in Joomla ?


One common issue occurs while you install a module or plugin in Joomla is that you get error message “JFolder::create: Could not create directory”. This occurs because you don’t have write permission on tmp foler. If you have write permission on tmp folder and still you get this error then check path of tmp folder. and set absolute path of tmp folder there.
You can check tmp path from Site >> Global Configuration >> Server options.
If you don’t know what is absolute path of your then write following code in a php file.

echo dirname(__FILE__);

the above code print absolute path of the file. Take absolute path from here and set in Global Configuration of joomla.
For example if you get
/home/site/public_html/
then your tmp path will be
/home/site/public_html/tmp

joomla-temp-folder

Advertisements

1 thought on “How to find your site’s absolute path in Joomla ?”

  1. Everything is very open with a really clear description of the challenges.

    It was really informative. Your site is extremely helpful.
    Thank you for sharing!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s