Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
CGI space and file permissions
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- CGI space and file permissions
CGI space and file permissions
11-02-2011 11:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have a form in my CGI space that uses a couple of .php files and half a dozen .htm files in the root, and a couple of images in a folder.
I have set all the permissions to 750. Is this correct?
TIA.
I have set all the permissions to 750. Is this correct?
TIA.
Message 1 of 5
(1,850 Views)
4 REPLIES 4
Re: CGI space and file permissions
12-02-2011 12:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hey Tia,
You may find this link useful: http://community.plus.net/library/settings/cgi-platform-php-upgrade-faq/
It's the FAQ for when the CGI/PHP platform was upgraded.
Regards,
Matt
You may find this link useful: http://community.plus.net/library/settings/cgi-platform-php-upgrade-faq/
It's the FAQ for when the CGI/PHP platform was upgraded.
Regards,
Matt
Message 2 of 5
(332 Views)
Re: CGI space and file permissions
12-02-2011 1:25 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
HTML and image files should have permissions 0640, PHP files should be 0700, folders should generally be 0710, but the folder containing images needs to be 0750 so that the server can locate the images.
David
Message 3 of 5
(332 Views)
Re: CGI space and file permissions
25-02-2011 7:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Oops, SOLVED!!!
solved by: http://community.plus.net/forum/index.php/topic,84349.0.html
I know this may seem like a silly question, but how can I set the attributes for all files of a given type in a folder tree e.g. setting all php files to executable?
I've tried to use chmod via a script and I can set all in one folder but whatever I try it just won't recurse.
odd, as I bet rm -r would happily delete everything
solved by: http://community.plus.net/forum/index.php/topic,84349.0.html
I know this may seem like a silly question, but how can I set the attributes for all files of a given type in a folder tree e.g. setting all php files to executable?
I've tried to use chmod via a script and I can set all in one folder but whatever I try it just won't recurse.
odd, as I bet rm -r would happily delete everything
Message 4 of 5
(332 Views)
Re: CGI space and file permissions
25-02-2011 11:54 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Running chmod recursively should also happily change *everything*, directories and files that match any pattern you specify, but that is probably not what you want.
Doesn't Gabe's script (in the post you linked to) do what you specified? You can adapt that to process different file types if needed.
Doesn't Gabe's script (in the post you linked to) do what you specified? You can adapt that to process different file types if needed.
David
Message 5 of 5
(332 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- CGI space and file permissions