Log Directory ($log_path) ./logs/ Unwritable

Joomla version 1.5 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
cherukuri_ajay
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 20, 2009 12:45 am

Log Directory ($log_path) ./logs/ Unwritable

Post by cherukuri_ajay » Mon Jul 20, 2009 12:54 am

Hi all,

I am new to joomla social. when i am installing joomla, i cheked whether the required folders are wirtable or not. The two below folders are unwritable.

when i saw in the godaddy hosting account, it showing as writable.

Log Directory ($log_path) ./logs/ Unwritable
Temp Directory ($tmp_path) ./tmp/ Unwritable


Please telll me how can i make them writable.

I am making the installation is a new subfolder of my hosting account.

I am beginner. Please expalin in a lucid manner

than you.

Ajay.
Last edited by humvee on Sun Jan 24, 2010 3:40 pm, edited 1 time in total.
Reason: marked as resolved

jdavis74
Joomla! Explorer
Joomla! Explorer
Posts: 443
Joined: Fri Jul 03, 2009 5:38 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by jdavis74 » Mon Jul 20, 2009 12:44 pm

In configuration.php, the directories aren't defined correctly. You need to update the paths for Log and Temp to point to the correct location.

SSH to the server, and browse to the logs directory. Type pwd. Copy and paste this path to configuration.php. Do the same for tmp.
Joseph Davis
Technical Support Representative
[email protected]
http://hosting.com

niboo
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Fri Jul 10, 2009 2:51 pm
Location: Hannover

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by niboo » Thu Aug 06, 2009 12:15 pm

SSH to the server, and browse to the logs directory. Type pwd. Copy and paste this path to configuration.php. Do the same for tmp.
Thank you, but what is SSH and where is the right logs directory?

agurk
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Nov 30, 2008 7:20 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by agurk » Thu Aug 20, 2009 6:47 am

Hello i recently had the same problem, but found the trick!

Log Directory ($log_path) ./logs/ Unwritable
Temp Directory ($tmp_path) ./tmp/ Unwritable

The right directory path has to be:
Log Directory ($log_path) ../logs/
Log Directory ($log_path) ../tmp/

This works on Surftown webhost in Denmark, but don't know
if this has any relation to the host anyway?

This might work for others - hopefully!

Regards
Jakob Daugaard

needFixGgleApp
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Jul 24, 2009 2:46 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by needFixGgleApp » Fri Oct 23, 2009 8:03 am

Thank YOU... I had to change tmp to ../tmp and finally got AdsManager installed! Great clue! My 'log_path' does still not seem to be writable though. Something must be right since the 'JFTP::mkdir: Bad response' went away and package was installed.

Thing I couldn't understand is that before the change I noticed that the .zip files were being copied to '/tmp' directory on my server by checking in FileZilla-my root is '/' but I simply couldn't understand why the upload went part went okay but not getting any further than that. I presumed that if the process would start correctly it should end so too-wrong assumption. I had been looking here: http://forum.joomla.org/viewtopic.php?f ... n&start=30 but found nothing to help-just indications that file permissions are not correctly set

Installation, 1.5.14 - just upgraded yesterday from 1.5.8
Running from http://www.mydomain.org - (joomla not installed in subfolder)

Again, thank you agurk!

Geeth2009
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Dec 28, 2009 4:22 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by Geeth2009 » Wed Jan 06, 2010 3:51 pm

agurk wrote:Hello i recently had the same problem, but found the trick!

Log Directory ($log_path) ./logs/ Unwritable
Temp Directory ($tmp_path) ./tmp/ Unwritable

The right directory path has to be:
Log Directory ($log_path) ../logs/
Log Directory ($log_path) ../tmp/

This works on Surftown webhost in Denmark, but don't know
if this has any relation to the host anyway?

This might work for others - hopefully!

Regards
Jakob Daugaard


:) :laugh: oooooww..great my friend it works.....just after I did this changed it didn't work. but with that I changed all "Directory permissions" into "writable" mode. And then checked but it didn't work (but plugins could be uploaded and couldn't install.). After that I enabled all the plugins in plugin manager. But it didn't work (gave me an error message "unable to find the directory" like that). So I gave up trying that and just after a day (it means today) I tried agai to install a plugin...believe me or not....it works....it works...I don't know how...but it works. I thing it takes little bit time. :laugh: And your advice is the best my friend. I think my site works bcos of your advice. Thanks again ;D

kinneyet
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Wed Dec 23, 2009 8:56 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by kinneyet » Fri Jan 22, 2010 8:32 pm

Hello i recently had the same problem, but found the trick!

Log Directory ($log_path) ./logs/ Unwritable
Temp Directory ($tmp_path) ./tmp/ Unwritable

The right directory path has to be:
Log Directory ($log_path) ../logs/
Log Directory ($log_path) ../tmp/

This works on Surftown webhost in Denmark, but don't know
if this has any relation to the host anyway?

This might work for others - hopefully!

Regards
Jakob Daugaard
That solution worked perfect for what i needed. Thanks!

Ethan

TinkLong
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Mar 09, 2010 3:45 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by TinkLong » Thu Mar 11, 2010 1:29 am

Hello,

Wanted to hop in and say that I had the same problem, i.e. the tmp dir was unwritable despite having changed the permissions on it. Using the above consideration as a solution, I finally found text at the host's site that told the proper paths to put for logs and tmp (UGH!) The person who originally installed this either did not have those paths correct OR something changed after that installation.

So the correction to the configuration.php, in my case, was:

From this:
var $log_path = '/domains/thedomain.com/html/logs';
var $tmp_path = '/domains/thedomain.com/html/tmp';

To this (where ##### was the person's site number):
var $log_path = '/home/#####/domains/thedomain.com/html/logs';
var $tmp_path = '/home/#####/domains/thedomain.com/html/tmp';

After having dealt with the above in the configuration.php, I was able to install a template for the first time, KALOO KALAY! :)

Tink

seb_rosch
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Oct 12, 2010 12:10 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by seb_rosch » Thu May 12, 2011 8:03 pm

Hello, I have the same problem. Everything seems writable except tmp_path, I´ll tell you what I did and hopefully someone can help me to fix it. I´m working in this website using parallels plesk, I have never use it, I installed joomla manually ftp, but I had to create my sql "mywebsite_", I had to change the files directly to httpsdocs for visualise the website. Everything seems to work, but I cant install anything using the extensions installation directly in joomla. Thank you.

User avatar
DullJohnny
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 29, 2010 6:34 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by DullJohnny » Fri Jun 10, 2011 11:51 pm

Damn! That worked...
Thanks! :D

ubspider
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Sun Jan 21, 2007 3:19 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by ubspider » Sat Jul 23, 2011 11:26 pm

im in 1.6 and i can upload a template but it is incomplete. ive changed my temp and logs to this public $tmp_path = './tmp';
public $log_path = './logs';

but my logs directory still is unwritable.

my temp is writable just not my logs. Any help would save my sanity lol thank you

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by dpacadmin » Sun Jul 24, 2011 1:17 pm

Upload this file to your Joomla tmp folder;
path.zip
Open the path.php file in your browser
http://www.yourdomain.com/tmp/path.php

The path it displays is the absolute path to your tmp folder, you can change tmp in the path to logs for the absolute path to your logs folder. Up date your configuration.php file with the correct paths.
You do not have the required permissions to view the files attached to this post.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20652
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ Germany/ S'pore/Bogor/ North America
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by leolam » Sun Oct 30, 2011 7:04 am

Owenwood wrote:shall we change directory setting back to unwritable after installation!
no! Your directory and file settings should always be

folders: 755
files: 644

Never change that to '777' just make sure you follow this directive!

Leo 8)
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -

deadlydave
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Thu Oct 25, 2007 6:23 pm
Location: London UK
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by deadlydave » Wed Mar 07, 2012 10:53 pm

saved me thanks!

now hopefully virtuemart will install!

fingers crossed!

akanke715
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Mon May 05, 2008 3:42 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by akanke715 » Mon Nov 05, 2012 2:56 pm

I'm having the same issue with joomla 2.5, when trying to install extensions. I get the error "Warning: Failed to move file!". This only started happening after I moved the site to the live directory. The solutions mentioned above are not working for me. I would appreciate the help. I'm feeling desperate at this point as I've tried several things over several days, including upgrading my hosting.

Here's my info:

From Configuration.php
public $tmp_path = './tmp ';
public $log_path = './logs';


*when I changed it to reflect $log_path on both lines the site would not come up and I got a configuration error on the front end.

PHP Settings
PHP Version 5.3.14
Web Server Apache
WebServer to PHP Interface cgi-fcgi


Directory Permissions
All files are writeable except temp file. I just posted the log and temp only below. The config file is writeable, the permissions were 604, but I changed them to 644. Either way it doesn't make a difference for the error message.

./logs (Log directory) Writable
./tmp (Temp directory) Unwritable


Thanks,
Akanke

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by dpacadmin » Mon Nov 05, 2012 10:27 pm

dpacadmin wrote:Upload this file to your Joomla tmp folder;
path.zip
Open the path.php file in your browser
http://www.yourdomain.com/tmp/path.php

The path it displays is the absolute path to your tmp folder, you can change tmp in the path to logs for the absolute path to your logs folder. Up date your configuration.php file with the correct paths.
Follow these instructions posted earlier to this thread to find the correct path for your tmp folder.
path.zip
You do not have the required permissions to view the files attached to this post.

avfc13
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Dec 05, 2012 12:54 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by avfc13 » Mon Dec 10, 2012 5:15 am

I had this same issue, and dpacadmin's advice worked perfect. Thank you.

Rolla
Joomla! Intern
Joomla! Intern
Posts: 66
Joined: Mon Oct 08, 2012 5:54 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by Rolla » Mon Dec 17, 2012 10:41 am

agurk wrote:Hello i recently had the same problem, but found the trick!

Log Directory ($log_path) ./logs/ Unwritable
Temp Directory ($tmp_path) ./tmp/ Unwritable

The right directory path has to be:
Log Directory ($log_path) ../logs/
Log Directory ($log_path) ../tmp/

This works on Surftown webhost in Denmark, but don't know
if this has any relation to the host anyway?

This might work for others - hopefully!

Regards
Jakob Daugaard
Thank you so much

findabed
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Dec 16, 2012 6:01 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by findabed » Fri Dec 28, 2012 1:48 am

Hi,
Same issue - Unwriteable tmp and logs files, so can't upload an extension - commercial server.
1) I changed the permissions to Writeable in the CPanel but they didn't change in the directory permissions - remained Unwriteable.
2) I tried dpacadmins solution above but got an Internal server error 500 - so didn't get the file pathway.
3) I've checked the config file and the pathways match.
here's one pathway from directory permissions...

/var/www/vhosts/httpdocs/logs (Log directory) Unwritable

Any ideas? Do I need the domain name somewhere in the pathway??

regards
Tony

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by dpacadmin » Fri Dec 28, 2012 3:43 am

Sometimes there is an issue with a "logs" folder that the Host installs on your site. They set the permissions on it and you can not change them. Try creating a logs folder in its own folder;
/var/www/vhosts/httpdocs/mine/logs
Then set the path to your logs folder with the correct permissions.

If you had an issue with my path file it could be that you tried it in the logs folder, try the tmp folder instead to get the full path, then use that path( minus the tmp folder) for your logs folder adding the folder you put it in.
For example, say you get;
var/www/vhost/domainname/tmp

you would change that to;
var/www/vhost/domainname/mine/logs

findabed
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun Dec 16, 2012 6:01 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by findabed » Fri Dec 28, 2012 5:01 am

Thanks for the reply dpac.
I was able to get the pathway this way (might help someone else)See instructions below...
also once I got the correct pathway was able to change the permissions by R) click on the file on the server and edit permissions so the folders are now writeable.

1. Create a file named mynewtmp.php with the following contents:
<?php echo dirname(__FILE__).'/tmp';
2. Upload the file to your site and access it as http://www.example.com/mynewtmp.php where www.example.com is
the domain name to your site.
3. Write down what you see on the screen. That's your new temporary directory path.
Introduction and installation
4. Remove the mynewtmp.php file from your site.
5. Go to your site's administrator back-end and click on Site, Global Configuration menu item from the top menu.
6. Click on the Server link
7. Find the "Path to Temp-folder" and replace its contents with the new temp path from step #3.
8. Save your Global Configuration

gingertop999
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Apr 08, 2012 8:09 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by gingertop999 » Sun Mar 17, 2013 10:24 pm

Great stuff - ../logs/ and ../tmp/ worked for me although I don't know how this issue happened. My paths were set as
/customers/trinityplayersbarnsley.com/trinityplayersbarnsley.com/httpd.www/logs
And the last entry to the logs folder seems to have been 6 days ago.

Anyway, fixed now - thanks

tanas
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Jan 19, 2007 6:17 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by tanas » Mon Mar 18, 2013 8:29 am

Thank you thank you thank all of yous !
I have spent several hours this weekend trying to make my install on a new server work, without any success until now, but jakob's advice just did the trick.

Incidently, I used to have a Joomla 2.5 working perfectly on the same server and this problem only appeared with a new 3.0.3 install.
:D

dimaxer
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Thu Jan 18, 2007 12:12 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by dimaxer » Sun Mar 31, 2013 9:10 pm

dpacadmin wrote:Upload this file to your Joomla tmp folder;
path.zip
Open the path.php file in your browser
http://www.yourdomain.com/tmp/path.php

The path it displays is the absolute path to your tmp folder, you can change tmp in the path to logs for the absolute path to your logs folder. Up date your configuration.php file with the correct paths.
Thank you! That worked for me on a local server where my path was
public $log_path = 'C:\OpenServer\domains\cc\logs';

Freaker155
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jul 19, 2013 6:04 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by Freaker155 » Fri Jul 19, 2013 6:52 pm

dpacadmin wrote:Upload this file to your Joomla tmp folder;
path.zip
Open the path.php file in your browser
http://www.yourdomain.com/tmp/path.php

The path it displays is the absolute path to your tmp folder, you can change tmp in the path to logs for the absolute path to your logs folder. Up date your configuration.php file with the correct paths.
this worked for me, thanks!

chrisciocan
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sun Jul 28, 2013 7:25 am

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by chrisciocan » Thu Aug 01, 2013 8:46 pm

Freaker155 wrote:
dpacadmin wrote:Upload this file to your Joomla tmp folder;
path.zip
Open the path.php file in your browser
http://www.yourdomain.com/tmp/path.php

The path it displays is the absolute path to your tmp folder, you can change tmp in the path to logs for the absolute path to your logs folder. Up date your configuration.php file with the correct paths.
this worked for me, thanks!
Please hepl I cant find log path, when i type http://www.yourdomain.com/tmp/path.php i get 404 error The requested URL /tmp/path.php was not found on this server.

User avatar
dpacadmin
Joomla! Champion
Joomla! Champion
Posts: 6029
Joined: Sat Aug 16, 2008 1:46 pm
Location: the Bat Cave
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by dpacadmin » Wed Aug 07, 2013 10:34 pm

Replace "yourdomain.com" in the url with your site's domain name. Also be sure the path.php file is in your Joomla site's tmp folder.

User avatar
senukexvn
Joomla! Apprentice
Joomla! Apprentice
Posts: 46
Joined: Wed Sep 26, 2012 4:26 am
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by senukexvn » Wed Sep 04, 2013 5:17 pm

agurk wrote: Log Directory ($log_path) ../logs/
Log Directory ($log_path) ../tmp/
I changes to:
public $log_path = '../logs';
public $tmp_path = '../tmp';
I use Joomla! 2.5.11
Its work perfectly.

AdeboyeMoses
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Feb 26, 2009 4:05 pm
Location: Lagos, Nigeria
Contact:

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by AdeboyeMoses » Sat Feb 01, 2014 11:29 am

Great work done... got it
Living life through the Web

alexgordon
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Sep 28, 2006 6:27 pm

Re: Log Directory ($log_path) ./logs/ Unwritable

Post by alexgordon » Wed Feb 26, 2014 4:37 am

Wow, you're a ...king genius!!!! Thanks!!!


Locked

Return to “Installation 1.5”