Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.
Forgot Password?
Navigation

My images won't show on my Website!

Last updated on 18 years ago
U
unknownMember
Posted 18 years ago
No, It must be 777 ...

The chmod command is used to change file permissions on files and folders. Each file has three different permission pieces:

1. What the owner of the file (in this case you) can do with it
2. What the other users in the file's group can do with it,
3. What the whole world (i.e. public access) can do with it.


Each permission piece is assigned a numeric value, and the combination of the three numbers in the order specified above (e.g. 755) is the whole permission information for the file.

Each number is determined by the same set of rules. The number for read access is 4, for write access is 2, and for execute access‡ is 1. To combine those permissions simply add the numbers. For example, if you want a file to have read and write access for one piece of the permission, it would be 4 + 2 = 6. No permissions at all is a zero, and full permissions (4 + 2 + 1) is a 7.

The two most common permission settings are 755 and 644. You've probably seen these before; this will explain them.

755
This means the owner of the file has a permission number of 7, other users in the file's group have a permission number of 5, and the world has a permission number of 5. Therefore, the owner can do absolutely anything with the file (4 + 2 + 1 = 7), and both those in the file's group and the rest of the world can read it and execute it (4 + 1 = 5). This is the required permission set required for CGI files in your cgi-bin folder. Also, these are the permissions necessary for folders inside your webspace if you want their contents to be visible at all, without being too loose and allowing write access to anyone besides you.

644
This means the owner of this file has a permission number of 6, other users in the file's group have an access number of 4, and the world has an access number of 4. Therefore, the owner can read and write the file (4 + 2 = 6), and both those in the file's group and those on the outside can only read it. This is the default for files that are uploaded to your webspace at Crosswinds, and is fine for almost all other files outside of CGI files.

Caveats: Permissions such as 666 and 777, which give full write access or full write and execute access to both those in the file's group, and to the world at large, are not permitted because they are a security risk. That last number especially should not be higher than a 5 for any reason. Also, it's a good idea to keep that first number a 6 or a 7, otherwise you may lock yourself out of being able to do anything with your own file because you won't have enough permissions!



To chmod a file in an FTP client:

1. Click the file to highlight it.
2. Right-click the file and choose "chmod or properties" (Depending on your FTP client, this may also be labelled something like "File Attributes" or "File Permissions".)
3. You will get a new window with checkboxes grouped by the type of permission as rows and the who gets that permission as columns, very similar to the grid shown in the cPanel File Manager. Fill in the checkboxes the same way as described above. The window may or may not show you the resulting numbers, depending on your own client software.
4. Click "OK."

The file will now have the permissions you filled in.

www.crosswinds-cadre.net/images/chmod-FZ.gif

How To CHMOD file/folder(s) SmartFTP
How To Set Permissions With CuteFTP
Posted 18 years ago
Well the permissions are set to 644

Is that right?
W
WECVeteran Member
Posted 18 years ago
Double check permissions.

As example, this image doesn't seem to have the right permission:

http://www.gfcforums.com/images/validate_bg.jpg

and displays:

Quote

Forbidden
You don't have permission to access /images/validate_bg.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.gfcforums.com Port 80


Posted 18 years ago
Yes I have always CHMOD the required files, but the images still not show!
U
unknownMember
Posted 18 years ago
Make sure that you CHMOD folders to 777 as part 3 on README's saying

3. Unless you are running PHPFusion on a local server, in most cases you will need to CHMOD the following files & folders to 777:

- administration/db_backups/
- images/
- images/imagelist.js
- images/articles/
- images/avatars/
- images/news/
- images/news_cats/
- images/photoalbum/
- images/photoalbum/submissions/
- forum/attachments/
Posted 18 years ago
Im using PHP Fusion on my websites and so far they work on all of them except this one!

Can you please tell me what I have done wrong?

www.gfcforums.com

I have tried reinstalling image files, I have reinstalled a newer version of PHPFusion and it still don't work!

I have correctly done the CHMOD. Whats wrong?
Edited by Dragonforce on 08-07-2007 15:10, 18 years ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.