Jump to content

Recommended Posts

Posted
  On 3/25/2014 at 2:19 PM, CubicWebs said:

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
  On 6/6/2014 at 1:35 PM, Dominick said:

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
  On 6/6/2014 at 1:35 PM, Dominick said:

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
  On 6/6/2014 at 4:18 PM, Licensecart said:

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
  On 6/6/2014 at 4:20 PM, secforus_ehansen said:

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
  On 6/6/2014 at 4:33 PM, Licensecart said:

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...