Jump to content

Recommended Posts

Posted

They are per customer only. No-one else except the admin and the customer can see files on their account.

I'm thinking he might mean he'd like to have documents that he'd like to not have available to the customer but still have associated with the customer.

  • 1 month later...
  • 5 weeks later...
Posted

I am getting this error:

The file could not be written.

I have set up the uploads folder in Settings - system - general and the script displays they are writable, what am I doing wrong?

make sure the path is absolute not relative.

Posted

I am getting this error:

The file could not be written.

 

I have set up the uploads folder in Settings - system - general and the script displays they are writable, what am I doing wrong?

 

Ensure the folder has been created.

 

uploads/1/client_documents/ it must have 777 on that folder too :)

Posted

Ensure the folder has been created.

 

uploads/1/client_documents/ it must have 777 on that folder too :)

No, it better not have 777 permissions.  That means EVERYONE can access it.

 

It should have 775 or 755 depending on the server requirements, which you can view by doing ls -liha and seeing what other folder's permissions are.

 

If you need to 777 anything, then it wasn't coded or configured right.

Posted

No, it better not have 777 permissions.  That means EVERYONE can access it.

 

It should have 775 or 755 depending on the server requirements, which you can view by doing ls -liha and seeing what other folder's permissions are.

 

If you need to 777 anything, then it wasn't coded or configured right.

 

It shouldn't be in the public view ;) it should be outside public_html and a location in the settings.

 

Eg: Uploads Directory

 

/chroot/home/lcadmin/licensecart.com/uploads/

 

It's not in the /chroot/home/lcadmin/licensecart.com/html/ folder

 

on cPanel it would be:

 

/home/lcadmin/uploads/

 

not /home/lcadmin/public_html/uploads/

 

If it's not 777 you can't upload to it, nor can the server.

Posted

It shouldn't be in the public view ;) it should be outside public_html and a location in the settings.

 

Eg: Uploads Directory

 

/chroot/home/lcadmin/licensecart.com/uploads/

 

It's not in the /chroot/home/lcadmin/licensecart.com/html/ folder

 

on cPanel it would be:

 

/home/lcadmin/uploads/

 

not /home/lcadmin/public_html/uploads/

 

If it's not 777 you can't upload to it, nor can the server.

From a security standpoint there's never a good reason to 777 anything, especially on a machine that is accessible from the Internet.

 

If you have Blesta installed at /var/www/blesta/ then put the folder in /var/uploads and set the ownership to webserver user and group, bam...no more need to 777 it.

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...