Forum Moderators: coopster

Message Too Old, No Replies

Wordpress, Permissions and suPHP

         

terrybarnes

11:15 pm on Jun 6, 2009 (gmt 0)

10+ Year Member



I'm using a shared server but I have a problem when it comes to using Wordpress. I have to change the CHMOD of any folders I need to write to to 777 - which I want to avoid.

The problem is that the PHP scripts are not being executed with the permissions of their owners.

The hosts say they can't install suPHP because it would then break some of the other php programs they have installed on the shared server.

Is there any way I can avoid setting folders to 777. Any help with this would be gratefully appreciated as I'm really struggling with this now.

enigma1

10:06 am on Jun 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ideally you should be able to use your scripts with folders permissions set to 755. In cases like this though, you can setup an .htaccess to restrict HTTP methods. So you can limit the methods say to /GET only and then use 777. The danger is if the folders allow other methods like the /PUT So check first of all how the server responds to a put request to a folder with 777 permissions. Usually the server is configured to restrict these methods regardless of permissions. Otherwise you better change hosts.