Jump to content

CHMOD 777


keat

Recommended Posts

I've found that the site won't work quite correctly without a number of folder permissions being set to 777.

Cache & Files for instance.

What php handler is running on the server where you site is installed - you will not be running suPHP or FCGI with suExec, which is recommended for security and allows / forces 755 permissions on all directories

I always assumed that 777 was a security risk ?

Having 777 permissions on any directory is a big security risk, especially if you are on a shared hosting platform. Any security hole on any other account on that whole server opens up all 777 directories to being written to and having files executed from by the hacker.

Ian

Link to comment
Share on other sites

The minute i change all folders back to 755, i have issues.

For instance, in the products inventory or products overview, the font size increases.

This goes back to normal if i chmod the cache folder to 777 or 757.

 

If i try to print a customer order form, I receive "not possible to generate printable file", but i've not yet determined which folder this is.

 

For the time being, until i can be sure of security, i've changed all folders to 755.

Link to comment
Share on other sites

Hi

You are using DSO so all scripts are executed using the Apache user "nobody" hence needing 777 directory permissions. Why not simply use suPHP if that is what you are trying to achieve or alternatively FCGI with suExec but be aware that you need a LOT of memory for this last option although might be best due being able to use opcode caching.

If you have somebody that manages your server for you then ask them for advice / to change this. If you do this yourself, then you need to understand the differences and implecations of the different php handlers. A good introduction is the one by Chris Wiegman https://www.chriswiegman.com/2011/10/fastcgi-vs-suphp-vs-cgi-vs-mod_php-dso/. He was the developer who wrote the most widely used security plugin for WordPress (later sold to iThemes). suPHP is now faster than it was but the choice between suPHP and FCGI with suExec needs to be taken on a case by case basis

Ian

Link to comment
Share on other sites

If this info helps anyone else,

 

Then this evening I reconfigured my PHP config.

I removed PHP Mod_Ruid2 and switched to SUphp  with SUexec and initial signs would indicate the permissions thing may be fixed.

 

 

I wouldn't expect everyone to understand any of that, but it might just help someone in the future.

 

More testing tomorrow during work time.

Link to comment
Share on other sites

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.

×
×
  • Create New...