What is the best way to make files writeable

Discussion in 'Installation/Configuration' started by conductive, Feb 10, 2012.

  1. conductive

    conductive Member HowtoForge Supporter

    I have many forms that write data to a files where they can be accessed or browsed online. To make them writable I need to chmod 766 them. There are way too many to change one by one.

    So for /data*/datafile.txt I can chmod 766 datafile.txt but I am really looking for something like find / -name datafile.txt | chmod 766 but this is the wrong syntax.

    What is the proper syntax and/or is there a better way to do this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You mean foiles in a website? Then you ont need any chmod, just the correct PHP settings. Change php mode to "php-fcgi" and then enable the suexec checkbox. Then ensure that all files are owned by the web user of this website and the client group of the website.

Share This Page