Skip to content

Gossamer Web Design

Websites That Work (530) 583-7989

  • Tahoe Reno Web Design
    • Divi
    • Elementor
    • Open Source
    • WordPress
  • Search Engine Optimization
  • Web Design Services
    • Advertising
    • Google Apps
  • System Administration
    • Postfix + Amavis + OpenDKIM + SPF
    • Postfix Service Matrix
  • Contact
    • Cart
    • Checkout
    • My account
    • Shop
  • Resume

WordPress Plugin Automatic Upgrade Patch

August 24, 2009August 24, 2009 adminAdmin, WordPress

Webmasters running WordPress on a UNIX flavor server running Apache2 may have noticed that when you attempt to use the automatic upgrade option on your plugins page of the Dashboard, that you are prompted for a FTP login.

Rather than conjour up a FTP account you can patch one of your WordPress administration files to get the upgrade option to work. The patch suggested by rootninja modifies the function get_filesystem_method() found in wp-admin/includes/file.php by replacing the call to mygetuid() with a call to posix_getuid().

if( ! $method && function_exists(‘getmyuid’) && function_exists(‘fileowner’) ){

…

if ( getmyuid() == fileowner($temp_file_name) )

becomes

if( ! $method && function_exists(‘posix_getuid’) && function_exists(‘fileowner’) ){

…

if ( posix_getuid() == fileowner($temp_file_name) )

Of course, your webserver will need rw permissions to your plugin directory.

Thank you rootninja, I was getting a bit tired of manual installations and I agree, FTP blah.

AmpBlahConjourDashboardFtp AccountPlugin DirectoryPosixRunningTemp FileUnixUnix FlavorWebmastersWebserver
  • Pages

    • Tahoe Reno Web Design
      • Divi
      • Elementor
      • Open Source
      • WordPress
    • Search Engine Optimization
    • Web Design Services
      • Advertising
      • Google Apps
    • System Administration
      • Postfix + Amavis + OpenDKIM + SPF
      • Postfix Service Matrix
    • Contact
      • Cart
      • Checkout
      • My account
      • Shop
    • Resume
  • Archives

    • November 2025
    • October 2025
    • September 2025
    • April 2025
    • March 2020
    • February 2020
    • February 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • June 2012
    • March 2012
    • February 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • April 2011
    • March 2011
    • December 2010
    • August 2010
    • June 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
  • Categories

    • Admin (84)
    • Email (12)
    • Flash (2)
    • google (3)
    • Hp (1)
    • Perl (18)
    • PHP (18)
    • Press Releases (4)
    • Resume (20)
    • Security (1)
    • SEO (4)
    • Specials (1)
    • Uncategorized (8)
    • Unix (36)
    • Web Design (9)
    • Windows (9)
    • WordPress (39)
    • Yoder Group (1)

Gossamer Web Design

Tahoe Reno, NV
530 583-7989
  • Tahoe Reno Web Design
  • Search Engine Optimization
  • Web Design Services
  • System Administration
  • Contact
  • Resume
Powered by WordPress | Theme: Astrid by aThemes.

Web Design by Gossamer

All Rights Reserved © Gossamer Computer Services