Page 1 of 1

file permission after component installation

Posted: Thu Nov 29, 2007 8:54 am
by ghiboz
hi all!
i have a question...
i've developed some componentso for joomla... all is ok but I have this problem:
after the installation of the component on a remote server (a vps) I needed to modify some files of the component...
i tried to upload the file via ftp but nothing...
the 2 solutions that I tried are:
  • login via sftp with root user
  • change the owner of the file

the other thing is that if I make the some thing on a standard hosting (no root perms) the component works fine and I can modify the file after the installation ???
how can I do this everywhere???
i need to change the user that launch apache in my vps???

thanks again!


ghiboz

Re: file permission after component installation

Posted: Thu Nov 29, 2007 3:27 pm
by CirTap
Hi,
although this has nothing to do with coding but rather site management ...

In J! 1.0 the files are owned by the Apache/PHP user since it's using standard PHP file I/O functions, so yes: you must CHOWN to a "ftp-user" in order to overwrite the files or if group permissions don't match. maybe a CHMOD 777 may hep temoprarily, but make sure it's restored to the defaults for dirs and files.

In 1.5 you can provide FTP credentials to be used for its (internal) file operations which should be the same you use for "manual" uploads.

And no: *don't* promote your Apache user. You certainly don't want this!

CirTap