Correct way to work with Joomla / Turnkey Lamp box?

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 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.
Locked
peteb66
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Thu Oct 13, 2005 1:07 am

Correct way to work with Joomla / Turnkey Lamp box?

Post by peteb66 » Tue Feb 14, 2012 2:00 am

I've worked with Joomla before with shared host providers, never had a problem...well, you know what I mean..install went fine

I picked up the latest Turnkey linux (ubuntu) LAMP build in order to do my work locally and now I'm having all these problems with loading Joomla, or it loads but can't do anything, extensions don't do things they're supposed to, etc. I went through an install and gave everything '777' permissions (folders/files), i know...bad idea...but then i find my Akeeba Admin Tools extension can't 'fix' the permissions back to 755/644.....that author says to enable the joomla 'ftp' services as a backup...well, i can't get joomla to login via sftp on port 22...works fine with filezilla...there's not much to get wrong here. Tried adding ftp, but every app defaults to disallowing root logins, and then i get into that cycle of troubleshooting..

I think all of this is permissions related...apache is running under www-webuser or something, and i'm sftp'ing into the box as root, uploading my zips, unpacking them and running the joomla install with the browser.

Am I missing something here? Should I be creating/logging in with a new ID to copy my joomla install, or using this apache userID, or is root like i'm doing now fine? I seem to be spending all my time fighting the tools and not the code work :) Something I want to learn how to work out though...

Any help is appreciated! Thanks
Pete

User avatar
wwhite
Joomla! Explorer
Joomla! Explorer
Posts: 469
Joined: Wed Jul 30, 2008 4:40 am
Location: SC USA

Re: Correct way to work with Joomla / Turnkey Lamp box?

Post by wwhite » Tue Feb 14, 2012 2:35 am

Yes, you should create a user and log in as that user, copy and unzip the files. You create problems foryourself when you use root
If you can use fastcgi it will solve some of your problems as well
Joomla - K2
Funeral Director - Every Day Above Ground is a Good Day!
Saying - This old world keeps spinning round, it a wonder tall trees aint laying down https://www.[youtube].com/watch?v=c_W9aaQ1Apo

heiden98
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Oct 21, 2014 9:46 am

Re: Correct way to work with Joomla / Turnkey Lamp box?

Post by heiden98 » Tue Oct 21, 2014 10:47 am

If I understand the OP's question correctly the underlying Turnkey/OS runs sftp on port 22 (so filezilla is ok), but using global administration functions from inside joomla, e.g. installing a module/extension, seem to require "unsafe" ftp on port 21/20, which is probably not installed by default. Any backend action that needs ftp will fail. I am currently running into that trap with the latest Turnkey/Joomla virtual machine.

Yes, I can access the joomla files using filezilla via sftp as a regular user, and I can ssh into the OS. But that alone doesn't solve the above problem. Question to the Turnkey crowd: should I install port 21 ftp or is it a configuration issue? To Joomla: is there a (much preferred!) way to configure joomla to use sftp instead of port 21 ftp?

Thanks, -gh

PS (edit):
I just found in another posting that the default filetransfer is done by http. The ftp option (which *is* obsolete and unsafe, and should be changed to port 22) is only shown if ftp is activated at all. I deactivated it and the error messages went away.

So, from my position, the problem is solved.


Locked

Return to “Installation Joomla! 2.5”