Wordpress and suPHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 3xmedia
    Confirmed User
    • Apr 2004
    • 5736

    #1

    Wordpress and suPHP

    On two of my hosts (VPS, Liquidweb and Servint) I can't get wordpress media upload working (as well as wordpress/plugins auto update):

    "Unable to create directory /home/xxxxx/public_html/wp-content/uploads/2012/06. Is its parent directory writable by the server?"
    Host's recommended method for solving this issue is to enable suPHP. And yes, it's working when I run suPHP. However, suPHP requires more server resources. Is this the only solution? Well, I don't consider chmod 777 or turning off PHP safe mode as a solution. Thanks!
    Last edited by 3xmedia; 06-26-2012, 12:53 AM.
    ---
  • AdultEUhost
    ORLY?
    • Oct 2005
    • 2579

    #2
    php safe mode is deprecated since 5.3
    http://php.net/manual/en/features.safe-mode.php

    you should upgrade your php first if you are concerned about security

    I would advice suphp, especially with wordpress which get hacked a lot
    Your normal sites can still run mod_php
    ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

    Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

    Comment

    • 3xmedia
      Confirmed User
      • Apr 2004
      • 5736

      #3
      Thanks, actually I run only wordpress on those accounts.
      ---

      Comment

      • Brujah
        Beer Money Baron
        • Jan 2001
        • 22157

        #4
        Change the owner of wp-content to apache or whatever is required to allow you to upload images. Note: this may not let you modify or delete any of those files through FTP later.

        If that doesn't work because of safe mode, you're stuck with using FTP to do all your uploads manually.

        Comment

        • careerbuilder
          Registered User
          • Jun 2012
          • 51

          #5
          imho

          create a new user who has apache and ftp permissions then

          chown the new user

          is what you need., i had the same issue., you most likely cant update wordpress too.

          Comment

          • raymor
            Confirmed User
            • Oct 2002
            • 3745

            #6
            You are correct suPHP is the WRONG answer. suPHP is the same as chmodding ALL of your files 777 - it let's all scripts write anywhere they want. Stupid. Very stupid.

            Along with chmodding that directory (and only the required directory) 777, use a <Directory> entry outside of that directory to lock it down - "deny from all" if possible, at least turn off PHP for that directory.

            If you want to get fancy, you can bind mount the directory noexec.
            For historical display only. This information is not current:
            support&#64;bettercgi.com ICQ 7208627
            Strongbox - The next generation in site security
            Throttlebox - The next generation in bandwidth control
            Clonebox - Backup and disaster recovery on steroids

            Comment

            • 3xmedia
              Confirmed User
              • Apr 2004
              • 5736

              #7
              Thanks guys for your advices.
              ---

              Comment

              • fris
                I have to go potty
                • Aug 2002
                • 55751

                #8
                they probably have nobody/nobody as the apache user
                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                Totally Free Templates

                Comment

                Working...