#1  
Old 18th July 2007, 18:36
AngelDrago AngelDrago is offline
Senior Member
 
Join Date: Sep 2005
Location: Florida -- USA
Posts: 100
Thanks: 4
Thanked 0 Times in 0 Posts
Default Ftp Permissions

Hi Everyone i usualy don't use an ftp client to access my site but i was having some problems installing an mod for forum and notices some thinks anyway my question to you is this i need to give my user account full permission so that i'm able to delete folders and files if i need to how can i accomplish this...
__________________
Danke fr Ihre Hilfe
AngelDrago
Reply With Quote
Sponsored Links
  #2  
Old 19th July 2007, 14:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you describe your problem in other words?
__________________
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
  #3  
Old 19th July 2007, 17:25
AngelDrago AngelDrago is offline
Senior Member
 
Join Date: Sep 2005
Location: Florida -- USA
Posts: 100
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I thing i got it resolved i will keep you informed....
__________________
Danke fr Ihre Hilfe
AngelDrago
Reply With Quote
  #4  
Old 19th July 2007, 21:05
AngelDrago AngelDrago is offline
Senior Member
 
Join Date: Sep 2005
Location: Florida -- USA
Posts: 100
Thanks: 4
Thanked 0 Times in 0 Posts
Exclamation

O.k I'm taking this back...

Quote:
Originally Posted by AngelDrago
I thing i got it resolved i will keep you informed....

in my phpbb2 script i got a mod that has a built in ftp client and that needs to have this permission so it can install the script...

this is the errors i'm getting from it..
Warning: mkdir() [function.mkdir]: Permission denied in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 184

Warning: chmod() [function.chmod]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 185

Warning: mkdir() [function.mkdir]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 184

Warning: chmod() [function.chmod]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 185

Warning: mkdir() [function.mkdir]: Permission denied in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 213

Warning: chmod() [function.chmod]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 214

Warning: mkdir() [function.mkdir]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 213

Warning: chmod() [function.chmod]: No such file or directory in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 214

also i noticed that my web1_useraccount when i access my ftp server i can not upload files to it it give me an specifig directoriesand i would get an error message like this... even do the folder is set to originaly to 755 and i changed it to 766

[R] 200 PORT command successful
[R] STOR test file.txt
[R] 550 test file.txt: Permission denied
[R] Transfer Failed!
[R] Listening on PORT: 1834, Waiting for connection

any ideas maybe why this is happening...
__________________
Danke fr Ihre Hilfe
AngelDrago
Reply With Quote
  #5  
Old 20th July 2007, 16:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

It's a permissions problem. Let's assume your web site is owned by web1_user, and you upload all files/directories with this user (over FTP). Then all files/directories are owned by web1_user.
Now let's assume your Apache runs under the user www-data. Now whenever a PHP application wants to write some file or run a mkdir or chmod, etc., it does this as www-data, and of course it isn't allowed to do so because the owner is web1_user.
You could now log in on the shell and make www-data the owner of all files/directories, but then you wouldn't be able to upload with web1_user.
A solution would be to give all files/directories the permissions 777, or to use suPHP. http://www.howtoforge.com/suphp_debian_etch_ispconfig
__________________
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
  #6  
Old 20th July 2007, 17:19
AngelDrago AngelDrago is offline
Senior Member
 
Join Date: Sep 2005
Location: Florida -- USA
Posts: 100
Thanks: 4
Thanked 0 Times in 0 Posts
Default

after folowing this falko i'm getting know an 500 error - Internal Server Error! code any idea why...and from i can see it disabled my php extension and not html extensions...
__________________
Danke fr Ihre Hilfe
AngelDrago

Last edited by AngelDrago; 20th July 2007 at 17:23.
Reply With Quote
  #7  
Old 21st July 2007, 18:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by AngelDrago
after folowing this falko i'm getting know an 500 error - Internal Server Error! code
After doing what? Changing permissions or owners, installinh suPHP, etc?
__________________
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
  #8  
Old 23rd July 2007, 04:31
AngelDrago AngelDrago is offline
Senior Member
 
Join Date: Sep 2005
Location: Florida -- USA
Posts: 100
Thanks: 4
Thanked 0 Times in 0 Posts
Default

after installing suphp i was getting the 500 error message and i noticed only php scripts it will not allow every thing else it does like html...etc and i did this on a fresh install of debian followed the directions to the letter and still i was getting the 500 error message...
__________________
Danke fr Ihre Hilfe
AngelDrago
Reply With Quote
  #9  
Old 23rd July 2007, 07:03
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,504
Thanks: 813
Thanked 5,266 Times in 4,129 Posts
Default

Please post the exact error message that you get in the error logfile of the website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 25th March 2008, 16:54
quannv quannv is offline
Member
 
Join Date: Sep 2007
Location: Viet Nam
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
It's a permissions problem. Let's assume your web site is owned by web1_user, and you upload all files/directories with this user (over FTP). Then all files/directories are owned by web1_user.
Now let's assume your Apache runs under the user www-data. Now whenever a PHP application wants to write some file or run a mkdir or chmod, etc., it does this as www-data, and of course it isn't allowed to do so because the owner is web1_user.
You could now log in on the shell and make www-data the owner of all files/directories, but then you wouldn't be able to upload with web1_user.
A solution would be to give all files/directories the permissions 777, or to use suPHP. http://www.howtoforge.com/suphp_debian_etch_ispconfig
Hi falko, the problem above is the drawback for customer when we setup applicaton? Do we have another solution to solve it than suPHP? How the other CPanel has resolved it?
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
FTP permissions twist85 Installation/Configuration 9 30th June 2007 22:41
ftp problems tgansert Installation/Configuration 20 27th May 2006 19:06
WEB UI FTP not working gimhan90 Installation/Configuration 2 16th March 2006 08:03
Website users? ctroyp General 25 6th January 2006 18:02
FTP 101 the basics koegies Installation/Configuration 7 17th November 2005 15:55


All times are GMT +2. The time now is 15:08.


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