Jump to content

Permissions Problem


dustinnoe

Recommended Posts

I am renting a VPS and everything works great except for any php file that tries to operate on a file or directory(ie: chmod).  I found that the problem lies in who the owner of the file/dir is.  In order to work properly it must be owned by php.  When I upload through ftp(filezilla) the file/dir uploaded will get the username of the user that is connected. 

 

How can I set up my server so that I do not have to manually change the owner of files and directories that php will need to operate on?

 

BTW:  Is it safe to set a directory to 777 and leave it that way?  Currently my script will chmod right before and after an operation needs to occur.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.