Problems with permissions

Akyhne

Verified User
Joined
Aug 27, 2009
Messages
20
Hi there.

I'm new to VPS management, Linux and DirectAdmin.

My problems are about permissions. Short put, a user can not alter/edit files created by the user apache and the user cannot alter/edit files made by apache.

So if I create a folder or file with php (apache), I can't edit, delete or move it via ftp.
If I upload a file via ftp, the apache can't edit them.

I have got several advices on how to get over the troubles, like changing group or owner of files and folders. Unfortunately none of them worked.
And... it shouldn't be nessescary to tweak permissions. If I create a user in DirectAdmin with xx amount of space, ftp access etc. etc. he should be able to do whatever he wants to with that space. That's just not the case.

I'm not sure whether the problems are related to DirectAdmin, but it's of course from there I create everything.

So for now, I got a useless CentOs 5.2/DirectAdmin VPS. I've had the VPS for a month now, and it's still useless.

Please help!
 
If you create a file via a php script, the files is created by the user apache. So if you upload a script like the SMF forum, all files that are altered, edited and unpacked by the script are getting apache/apache as owner. Everything I upload via ftp, is created by username/apache.
This makes things impossible, as I can't delete files via ftp owned by apache/apache and apache/apache can't edit/copy/delete files uploaded via ftp.
 
Switch to suphp where files are owned and ran by the user.
 
hi, scsi

can you go through the steps on installing suphp?
or pm me your msn, i kinda need help :(
 
well, tbh
im pathetic at ssh, ive tried to follow those instructions, but, im stuck on the part where

Code:
php5_cli=no
php5_cgi=yes

ive done that, but im not sure how to save the edit :(
if you could give me your msn, and help me through it, i would be grateful :)
thanks :)
 
I'm pretty new myself, so wouldn't be any good help:

wim /pat/to/file

[insert]
Make your edits
[Esc]
:w //Writes the changes to the file
:q //Quits wim
 
It matters what editor your using...

Try nano its probably the easiest editor to use.

There are tons of manuals online how to use the *nix editors though.

Now you can also set options now via command line.

./build set <option-name> <value>

Example:

./build set php5_cli no
 
Back
Top