I am trying to set tem directory path and logs dir path in my joomla site . my site folder path is this "/httpdocs/example.com/online" and my site url this


please let me know .I do not what will be my root path of temp file .Please help me

2 Answers 2


Create a PHP file called whereami.php with the following contents and upload to the root folder of your website:

  print 'Current dir is ' . dirname(__FILE__);

Run the file by browsing to yoursitename.com/whereami.php and this will show you the path to the root folder of your website.

By default, the logs and tmp folders are sub folders of the root path.

Remember to delete the whereami.php folder when you are finished.


In cPanel hosting this usually looks like:


In your system, it should be similar, but for the exact path better consult your hosting provider.

Note that it's very likely that this information is available and visible somewhere within your hosting account / hosting control panel, so you may find it by looking around.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.