file permission after component installation Topic is solved

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
ghiboz

file permission after component installation

Post by ghiboz » Thu Nov 29, 2007 8:54 am

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

User avatar
CirTap
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Mon Dec 12, 2005 5:34 pm
Contact:

Re: file permission after component installation

Post by CirTap » Thu Nov 29, 2007 3:27 pm

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
You can have programs written fast, well, and cheap, but you only get to pick 2 ...

"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams


Post Reply