Skip to content

Gossamer Web Design

Websites That Work (530) 583-7989

  • home
    • Divi
    • Elementor
    • Open Source
    • WordPress
  • Web Design
    • Advertising
    • Google Apps
  • SEO & Hosting
  • Security
    • 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

    Gossamer Computer Services


    We don’t upsell retainers — we deliver outcomes. If it doesn’t make you faster or more visible, we don’t ship it.

    • admin

      “All the way” PowerShell hardening script

      $14.95
      Add to cart
    • Sale! admin

      Software Inventory Module

      $29.99 Original price was: $29.99.$19.99Current price is: $19.99.
      Add to cart
    • admin

      Windows 11 Update Control Policy Bundle (Home + Pro) — Auto Download, Notify to Install

      $9.95
      Add to cart

    • Admin
    • Email
    • FAQs
    • google
    • HP
    • Perl
    • PHP
    • Press Releases
    • Resume
    • Revolt
    • Revolt fork
    • Security
    • SEO
    • Specials
    • Stoat
    • TeamSpeak
    • Unix
    • Web Design
    • Windows
    • WordPress
    • Ubuntu 24.04 (Minimal Server) — VM Firewall Hardening for Stoat
    • Stoat (Revolt fork) — Lockdown Playbook
    • Stoat (Revolt fork) — Lockdown & Org Setup
    • TeamSpeak 3 → TeamSpeak 6 Migration on FreeBSD
    • Match “Account Unknown” Profiles to LocalPath/SID via ProfileList

Gossamer Web Design

Tahoe Reno, NV
530 583-7989
  • home
  • Web Design
  • SEO & Hosting
  • Security
  • Contact
Powered by WordPress | Theme: Astrid by aThemes.

AI Web Design by Gossamer

All Rights Reserved © Gossamer Computer Services