Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    33

    Default WordPress uploads permissions

    I have WP installed on a cPanel server.
    For some reason I can't upload images using WP unless the "uploads" directory is set to "777" which I'd rather not do.

    What could be the cause of this? I'd rather be using 755

  2. #2
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    When the PHP is installed as a module, it executes with the same permissions as the main apache instance, which is typically as the nobody user. Hence, you will need to set the upload permission to 777.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If you can convince your hosting provider to use SuPHP, then 755 permissions will be sufficient for that functionality to work.

  4. #4
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by wilfried View Post
    I have WP installed on a cPanel server.
    For some reason I can't upload images using WP unless the "uploads" directory is set to "777" which I'd rather not do.

    What could be the cause of this? I'd rather be using 755
    Sounds like the server where you installed WordPress is running PHP as a DSO (Apache Module) which insecurely runs all scripts commonly under the global username "nobody".

    Since your Wordpress application is being run as "nobody" instead of your own login name, you must have GLOBAL readable permissions minimum so to get to the bottom line, yes, you will need 777 for your folder to be uploadable as well as readable. Technically 666 would work too but that poses the very same security issue which you are obvious aware as you said "I'd rather not do"

    I would switch hosts or ask your host about upgrading to SuPHP based PHP which doesn't have these types of security issues.

    In fact, under SuPHP you could go as extremely tight as 400 and the typical norm is 640 for most uses. Folders are typically 750 or 755.

Similar Threads & Tags
Similar threads

  1. Replies: 8
    Last Post: 06-21-2011, 09:54 AM
  2. Reseller based wordpress configure permissions for all accounts
    By mobcdi in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 03-23-2010, 09:48 AM
  3. WordPress Admin Permissions stripped ? by installer?
    By hostmedic in forum cPanel Developers
    Replies: 9
    Last Post: 11-30-2009, 11:43 PM
  4. No uploads [moved]
    By Kainthornn in forum New User Questions
    Replies: 12
    Last Post: 07-11-2006, 03:17 AM
  5. File Uploads
    By bigjohn in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-08-2003, 09:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube