Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 25, 2010 9:25 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
Another day another problem :D Just when I finally managed somehow to create a SFTP connection for another user it seams like that could be the source for my next problem.

I have a joomla site, which I transfered to Linode, made a SFTP account so user can upload files and can't see other stuff on server. Site is working fine, but I can't upload images (and I guess can't install modules) from joomla admin interface.

In joomla admin, when I go to Information - Directory Permissions I see that all folders have status Unwritable.

If I log in as a root (user can't change permisions) and change permisions to 777 it all fine, I can upload images.

But that is a security risk, right? What should I do now? How to set permissions to 755 and still be able to upload images and install modules?

Thanks for any suggestion!


Top
   
 Post subject:
PostPosted: Sat Dec 25, 2010 9:40 am 
Offline
Senior Newbie

Joined: Sat Mar 29, 2008 10:52 pm
Posts: 18
To upload modules etc from the admin interface you need to have the components and extensions directories (both public and admin ones) set to be either world read/writable, or group read/write with the www-data group.

Also make sure the cache and tmp directories are world read/writable, many components will bug out if you try to install them without this done properly.

Yes, joomla is a bitch, welcome to hell.


Top
   
 Post subject:
PostPosted: Sat Dec 25, 2010 9:59 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
:D

"..or group read/write with the www-data group" well this could be solution, how do I do that?

My joomla directories are owned by the user I created earlier for SFTP conection. Now, If that user could stay the owner, and also www-data group to be able to read/write that would be solution.

Is this possible?


Top
   
 Post subject:
PostPosted: Sat Dec 25, 2010 1:48 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
Use suPHP or run PHP as a cgi and use suExec:
http://alain.knaff.lu/howto/PhpSuexec/


Top
   
 Post subject:
PostPosted: Sun Dec 26, 2010 1:17 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
waldo wrote:
Use suPHP or run PHP as a cgi and use suExec:
http://alain.knaff.lu/howto/PhpSuexec/


Or you can use php fpm if you're using php 5.3

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group