Can't install extentions

October 2012 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sun Oct 06, 2013 6:30 am
Reply with quote
Report this post
Hello, I recently installed Startup to my Joomla! website. I'm trying to install an extension, and I get this error:

Image

I've searched for a solution for awhile now. I made sure all the permissions were set correctly and I also made sure that the paths in /var/www/tmp were correct.

Any ideas? Thanks!
User avatar
Fresh Boarder

GK User
Sun Oct 06, 2013 6:43 am
Reply with quote
Report this post
I believe path is not correct. Please copy below code to a new file and save it as path.php and upload it to your server, then browse to this file "www.mywebsite.com/path.php"

You should see the correct path to where this file located. Then you can compare to that and change it accordingly to temp path.

Code: Select all
<?php
echo __FILE__;
?>

or
Code: Select all
<?php

if (DIRECTORY_SEPARATOR=='/')
$absolute_path = dirname(__FILE__).'/';
else
$absolute_path = str_replace('\\', '/', dirname(__FILE__)).'/';
echo "Absolute path to this file: {$absolute_path}<br><br>";
?>


Let us know how you get on.
User avatar
Platinum Boarder

GK User
Sun Oct 06, 2013 6:49 am
Reply with quote
Report this post
I got the echo of

"Absolute path to this file: /var/www/".

Doesn't that mean it is correct?
User avatar
Fresh Boarder

GK User
Sun Oct 06, 2013 8:04 am
Reply with quote
Report this post
Are you running your own server or is this a hosting account.

if its online hosting account path is usually in below format so it is strange you are getting "/var/www/"

Code: Select all
/home/wwwwebsitename/public_html/tmp
/home/username/public_html/tmp


Try running the same php file inside "/var/www/tmp/path.php" - "www.mywebsite.com/tmp/path.php"

Alternatively send me your ftp details and admin access details to my email and I ll take a look.

My email normanuk[at]live.co.uk. Please use this topics title as your email subject so i can find it easily.
User avatar
Platinum Boarder

GK User
Sun Oct 06, 2013 6:39 pm
Reply with quote
Report this post
Well, I'm actually hosting this my self on my own Linux server. It's also only being hosted on my local network right now. I may be able to host it on my domain tonight - however I'd prefer to have the site done before I move it over.
User avatar
Fresh Boarder

GK User
Sun Oct 06, 2013 8:16 pm
Reply with quote
Report this post
Well either tmp folder doesn't have write permissions at all, or not sure how your www setup is but if scripts are running under different user then that user might not have correct permissions.

So create a new file "writetest.php" inside /var/www/tmp with below content and run it. You should see "test.txt" inside folder /var/www/tmp. If not then that means script cannot write to this folder. Then try to manually create the file yourself in same tmp folder, if you can't then that means either you don't have permission or this folder is not writable.

Code: Select all
<?php
$file = 'test.txt';
$content .= "Testing write permission\n";
if(file_put_contents($file, $content)) {
   echo 'File created succesfully';
} else {
   echo 'File cannot be created, check permissions';
}
?>


If above fails then I am afraid you should ask this in appropriate linux forums depending on your os or www setup.

See you around...
User avatar
Platinum Boarder


cron