Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th February 2011, 00:33
Tastiger Tastiger is offline
Member
 
Join Date: Feb 2011
Posts: 33
Thanks: 3
Thanked 1 Time in 1 Post
Question PureFTPd and Directory Permissions

I have setup Ubuntu 10.10 as per the instructions @http://www.howtoforge.com/perfect-se...ispconfig-3-p4

However after setting up websites and uploading a Joomla installation I find that all directories in the Joomla installation have been set to 775.

This is something I have not come across before on a server - normally file permissions are OK after ftp upload.

I'm certain that this is a simple fix, but I'm not certain how to address the issue.

Suggestions welcome...

After some thought - I may be blaming the wrong installation

After upload something is preventing the Joomla installation script from setting the correct permissions on folders - is it the actual ownership of the www folder?
If so what is the solution other than hand editing all folders?

see image below :-

Last edited by Tastiger; 15th February 2011 at 06:06. Reason: Added Afterthought
Reply With Quote
Sponsored Links
  #2  
Old 15th February 2011, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Quote:
Originally Posted by Tastiger View Post
However after setting up websites and uploading a Joomla installation I find that all directories in the Joomla installation have been set to 775.
Try to set the umask in your PureFTPd configuration to 022. Permissions of uploaded files should then be 755.

Quote:
Originally Posted by Tastiger View Post
After some thought - I may be blaming the wrong installation

After upload something is preventing the Joomla installation script from setting the correct permissions on folders - is it the actual ownership of the www folder?
If so what is the solution other than hand editing all folders?

see image below :-
If you upload files through FTP, they will be owned by your FTP user. However, if you run Apache with mod_php, the files need to be owned by the Apache user or have 777 permissions to be writable by Apache. You can change permissions/ownerships manually on the shell.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Tastiger (15th February 2011)
  #3  
Old 15th February 2011, 16:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Please make sure that you selected the correct PHP mode in ispconfig. For CMS systems like joomla eplease use php-fcgi and activate the "Suexec" checkbox to ensure that joomla can create the directories correctly.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Tastiger (15th February 2011)
  #4  
Old 15th February 2011, 21:33
Tastiger Tastiger is offline
Member
 
Join Date: Feb 2011
Posts: 33
Thanks: 3
Thanked 1 Time in 1 Post
 
Default

Quote:
Originally Posted by till View Post
Please make sure that you selected the correct PHP mode in ispconfig. For CMS systems like joomla eplease use php-fcgi and activate the "Suexec" checkbox to ensure that joomla can create the directories correctly.
Ah that's the baby I was looking for

Thanks for the quick response and sorry if I ask more questions along the way as this is my first venture into the world of Linux - I have previously only worked with Windows, A2T and Xammp.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MyDNS to PowerDNS : Safe Migration zenny Tips/Tricks/Mods 11 23rd December 2010 11:22
How can I set up a public download directory with PureFTPd? qings Server Operation 1 5th November 2008 18:11
Pureftpd Permissions Problem GaulHahn Server Operation 6 17th October 2008 14:54
PureFTPD on Debian ETCH problem thesyko HOWTO-Related Questions 2 29th February 2008 17:10
PureFTPD & Subdirectories iyeat Installation/Configuration 3 18th January 2008 20:14


All times are GMT +2. The time now is 03:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.