Plugin cannot upgrade without FTP
-
I’ve been trying to upgrade a plugin on a new client’s site without resorting to FTP to no avail.
WordPress is installed on CentOS Linux running Apache. Apache runs as
apache:apache. The entire WordPress installation is owned by a plain user (call himbob, who, incidentally, hasapacheas a supplemental group) and theapachegroup. All files and directories are writable by both user and group, and all directories have the setgid bit set so all new files will be owned by theapachegroup (mainly sobobcan manually upload/add files without messing up WordPress’s ability to write to itself).Example directory:
# ls -ld wp-content/uploads drwxrwsr-x 6 bob apache 4096 May 5 17:10 wp-content/uploadsExample file:
# ls -l wp-content/plugins/pretty-link/pretty-bar.php -rw-rw-r-- 1 bob apache 6281 May 18 05:53 wp-content/plugins/pretty-link/pretty-bar.phpThe plugin is “Pretty Links Pro”, though I doubt it’s relevant.
I’ve gone as far as making the
apacheuser the owner ofwp-content/plugins(and all its contents) andwp-content/upgrade(which is empty), but attempting to upgrade the plugin still prompts for an FTP login.Obviously I don’t want to run an FTP server here. Any ideas on why WordPress cannot upgrade on its own without an FTP login?
The topic ‘Plugin cannot upgrade without FTP’ is closed to new replies.