Page 1 of 2

Log Directory ($log_path) ./logs/ Unwritable

Posted: Mon Jul 20, 2009 12:54 am
by cherukuri_ajay
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.

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

Posted: Mon Jul 20, 2009 12:44 pm
by jdavis74
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.

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

Posted: Thu Aug 06, 2009 12:15 pm
by niboo
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?

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

Posted: Thu Aug 20, 2009 6:47 am
by agurk
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

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

Posted: Fri Oct 23, 2009 8:03 am
by needFixGgleApp
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!

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

Posted: Wed Jan 06, 2010 3:51 pm
by Geeth2009
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

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

Posted: Fri Jan 22, 2010 8:32 pm
by kinneyet
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

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

Posted: Thu Mar 11, 2010 1:29 am
by TinkLong
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

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

Posted: Thu May 12, 2011 8:03 pm
by seb_rosch
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.

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

Posted: Fri Jun 10, 2011 11:51 pm
by DullJohnny
Damn! That worked...
Thanks! :D

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

Posted: Sat Jul 23, 2011 11:26 pm
by ubspider
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

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

Posted: Sun Jul 24, 2011 1:17 pm
by dpacadmin
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.

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

Posted: Sun Oct 30, 2011 7:04 am
by leolam
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)

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

Posted: Wed Mar 07, 2012 10:53 pm
by deadlydave
saved me thanks!

now hopefully virtuemart will install!

fingers crossed!

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

Posted: Mon Nov 05, 2012 2:56 pm
by akanke715
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

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

Posted: Mon Nov 05, 2012 10:27 pm
by dpacadmin
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

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

Posted: Mon Dec 10, 2012 5:15 am
by avfc13
I had this same issue, and dpacadmin's advice worked perfect. Thank you.

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

Posted: Mon Dec 17, 2012 10:41 am
by Rolla
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

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

Posted: Fri Dec 28, 2012 1:48 am
by findabed
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

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

Posted: Fri Dec 28, 2012 3:43 am
by dpacadmin
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

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

Posted: Fri Dec 28, 2012 5:01 am
by findabed
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

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

Posted: Sun Mar 17, 2013 10:24 pm
by gingertop999
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

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

Posted: Mon Mar 18, 2013 8:29 am
by tanas
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

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

Posted: Sun Mar 31, 2013 9:10 pm
by dimaxer
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';

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

Posted: Fri Jul 19, 2013 6:52 pm
by Freaker155
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!

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

Posted: Thu Aug 01, 2013 8:46 pm
by chrisciocan
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.

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

Posted: Wed Aug 07, 2013 10:34 pm
by dpacadmin
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.

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

Posted: Wed Sep 04, 2013 5:17 pm
by senukexvn
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.

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

Posted: Sat Feb 01, 2014 11:29 am
by AdeboyeMoses
Great work done... got it

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

Posted: Wed Feb 26, 2014 4:37 am
by alexgordon
Wow, you're a ...king genius!!!! Thanks!!!