Heloo there...I was wondering if there is anyone to help me with this question. As you can read also in the Subject of this thread: How to Set permissions: e.g chmod 755 on FTP Program???? :lol: Sorry for this newbie question :-| I use CuteFTP for uploading files and now i'm learning to install the cgi and php scripts but the problem is to upload the files with the chmod.... So can anybody help me with this question? Does any particular FTP Program is needed to do this???

Dani AI

Generated

Following ' question and the pointers from and , the following clarifies when permission bits matter, what common settings mean, and practical ways to fix problems that often look like "chmod didn't work."

Unix permission basics in plain terms: the mode 755 corresponds to rwxr-xr-x — owner can read/write/execute, group and others can read and execute. Directories normally need the execute bit so the web server (or FTP user) can enter them; executable CGI scripts need the execute bit to run. Plain PHP files served by Apache/Nginx modules or php-fpm usually only need to be readable, not executable. Hosts that use suPHP/suEXEC or strict shared-hosting policies often require files to be 644 and directories 755 and will reject world-writable files (777).

How to change permissions and what to check: most FTP clients expose a "permissions" or "file attributes" dialog (as noted earlier in the thread), but if the server disallows changes the control panel file manager or SSH shell will show the real state. Default upload umask can make new files appear with restrictive bits; that is adjustable in the client or server. If a script still fails after setting permissions, check ownership (owner:group), the script's interpreter line (shebang), and that text files use Unix line endings (LF). Server error logs will usually show "permission denied" or interpreter/path errors that point to the real cause.

Quick troubleshooting checklist (apply in order): confirm the correct mode for the file type (644 for most files, 755 for executable scripts and directories), verify owner matches the web-server/user policy, convert CRLF to LF for scripts uploaded from Windows, and consult server error logs or the host if permission changes are blocked. These steps expand on the helpful starting points already suggested in the thread and address the common reasons uploads or scripts still fail after changing attributes.

Recommended Answers

All 4 Replies

1st. connect to the server.
2. right click the file and choose "Change File Attributes"
under manual, key in "755"

Thank you for your reply guys... :)

thanks a lot... i could get my forms running because of you - dazzlindonna

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.