View Full Version : Ftp Permissions
AngelDrago
18th July 2007, 18:36
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...
falko
19th July 2007, 14:51
Can you describe your problem in other words?
AngelDrago
19th July 2007, 17:25
I thing i got it resolved i will keep you informed....
AngelDrago
19th July 2007, 21:05
O.k I'm taking this back...:confused:
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 (http://www.ultimateresources.com/forum/admin/function.mkdir)]: Permission denied in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 184
Warning: chmod() [function.chmod (http://www.ultimateresources.com/forum/admin/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 (http://www.ultimateresources.com/forum/admin/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 (http://www.ultimateresources.com/forum/admin/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 (http://www.ultimateresources.com/forum/admin/function.mkdir)]: Permission denied in /var/www/web1/web/forum/admin/em_includes/em_modio.php on line 213
Warning: chmod() [function.chmod (http://www.ultimateresources.com/forum/admin/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 (http://www.ultimateresources.com/forum/admin/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 (http://www.ultimateresources.com/forum/admin/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...
falko
20th July 2007, 16:12
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
AngelDrago
20th July 2007, 17:19
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...
falko
21st July 2007, 18:36
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?
AngelDrago
23rd July 2007, 04:31
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...
till
23rd July 2007, 07:03
Please post the exact error message that you get in the error logfile of the website.
quannv
25th March 2008, 16:54
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?
till
25th March 2008, 17:00
All controlpanels use suphp or a similar software to solve this.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.