Go Back   Cloud Computing > Support > Control Panel Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-25-11, 22:27
BOD Member
 
Join Date: Apr 2011
Posts: 76
Default Permission denied error?

Hi

I get a permission denied error, while writing to a file? I don't know why this happen and expect some good suggestion that helps me to resolve this error.
Reply With Quote
  #2 (permalink)  
Old 04-25-11, 22:31
BOD Member
 
Join Date: Apr 2011
Posts: 82
Default

I think you have to change “chmod” permission of the relevant directory to writable “777”. Most of the FTP software have the option to change the permissions of directories and files on the server. Normally you have to select “properties” and choose all the check box options, which consists to read, write, execute.
Reply With Quote
  #3 (permalink)  
Old 05-10-11, 01:08
BOD Member
 
Join Date: Jun 2010
Posts: 175
Default

You are getting permission denied error due to incorrect permission set for your files and folders. You always need to make sure that all the files are set to 644 and all the folders are set to 755 permission. You can change the permission from cpanel as wee as from FTP. Bellow are the steps

From cpanel:
Login to your cPanel.
Find File Manager and click on it.
Select web root and show hidden files and click on Go.
Now checkmark then box next to the directory or file that you want to change the permission of.
Click on Change Permissions.
And select 755 for folder and 644 for file in the box.
Finally, click on Change Permissions.



From FTP:

Following are the steps to change the permission from different ftp client
Quote:
Filezilla
Right click on the file or directory that you want to change permissions on then when change file attribute screen will appear then you can either check the “Read”, “Write” and “Execute” check boxes, or you can directly type a Numeric Value into the “Numeric Box” and click OK.

Quote:
WS FTP
Step one: Right mouse click on the file => Select "Properties" from context menu.
Step two: Enter either the number "777" in the field "Numeric Value" or select all checkboxes.
Alternative
Enter in the fields right beside the file lists the chmod command with your file name: chmod 777 your_file.txt
Quote:
CuteFTP
Right click with the mouse on the on the file or folder for which you want to change the permission then Select "Properties/CHMOD" from context menu. Then type 755 if changing permission for folder and 644 for file.
Quote:
FTP Voyager
In Voyager ftp you can change the permission in two ways
1) Right click with the mouse on the on the file or folder for which you want to change the permission then Select "Properties" from context menu. Then type 755 if changing permission for folder and 644 for file in the field "Numeric Value" or select all check boxes.
OR
2) Right click with the mouse on the on the file or folder for which you want to change the permission then Select "Commands" from context menu => Select "Change File Attributes..." from the second context menu then Enter the chmod command with your file name: chmod 644 your_file.txt or 755 for your folder
Quote:
Leech FTP
Just Right click on the file or folder for which you want to change the permission then Select "Set Attributes ..." from context menu. Then Enter 755 if changing permission for folder and 644 for file in the field "Numeric" or select all checkboxes
__________________
Carol.P
Reply With Quote
  #4 (permalink)  
Old 05-10-11, 08:19
BOD Member
 
Join Date: Apr 2011
Posts: 76
Default

Thank you Carol for the detailed information. Your reply shows that you have a lot of experience in technology filed. And all your excellent work help the community members regularly.
Reply With Quote
  #5 (permalink)  
Old 05-11-11, 09:18
BOD Member
 
Join Date: Jun 2010
Posts: 175
Default

Thank you for your kind words of appreciation.
__________________
Carol.P
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 05:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.