Koozali.org: home of the SME Server

Setting PHP html permissions

jpchancey

Setting PHP html permissions
« on: April 14, 2005, 01:37:03 AM »
STATUS:>  Changing file attributes "config.php".
COMMAND:>SITE CHMOD 742 /ibays/Primary/html/config.php
550 /ibays/Primary/html/config.php:
Permission denied
ERROR:>      Requested action not taken (e.g., file or directory not found, no access).

How do I make config.php a writable file??? It keeps saying that permission is not granted. This is done inside CuteFTP behind the network.

d6hq

Setting PHP html permissions
« Reply #1 on: April 14, 2005, 02:24:40 AM »
You can't do that with an FTP client without a lot of fiddling the FTP server config. Rather than do that it would be much easier to do it at the command line as root

login as root
cd /home/e-smith/files/ibays/Primary/html/
chmod 742 config.php
ls -la

while you are there check the user.group and chown as neccessary

chown newuser.newgroup config.php
logout


EDIT
Afterthought - You can do chmod etc with FileZilla in secure mode as it conects via SSH rather than FTP. Personally I thinks in FTP mode its a better FTP client than Cute anyway

EDIT2
Further afterthought - the Primary ibay does not allow execution of dynamic content (CGI/PHP etc).
You may have to create a new ibay with the correct permissions and point your domain there instead of the primary.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Setting PHP html permissions
« Reply #2 on: April 14, 2005, 02:35:05 AM »
Quote from: "jpchancey"

How do I make config.php a writable file???


Edit locally, then upload it when logged in as "admin".