[wp-trac] [WordPress Trac] #32345: ssh2/sftp doesn't work in chrooted environments, FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR not available
WordPress Trac
noreply at wordpress.org
Wed Jul 22 18:08:17 UTC 2015
#32345: ssh2/sftp doesn't work in chrooted environments, FTP_BASE, FTP_CONTENT_DIR,
FTP_PLUGIN_DIR not available
----------------------------+-----------------------------
Reporter: aberbenni | Owner: dd32
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.3
Component: Filesystem API | Version: 2.7
Severity: normal | Resolution:
Keywords: | Focuses: administration
----------------------------+-----------------------------
Changes (by aberbenni):
* status: closed => reopened
* resolution: fixed =>
Comment:
Replying to [comment:19 dd32]:
> The example in comment:2 has been fixed with a chrooted environment in
4.3 with the changes on this ticket. Unfortunately pointing to that
doesn't help diagnose anything at all.
> If you could (using 4.3) follow the instructions in comment:12 to shed
light onto the underlying structure of the setup, that'd be helpful.
Tested on 4.3 beta 3 and nothing changed.
Here is extra debug from WP_Filesystem_Base::$verbose
{{{
Looking for /var/www/www.mysite.com/htdocs/wp-content in /
Looking for /var/www/www.mysite.com/htdocs/wp-content/languages in /
}}}
and output from wp-filesystem-tester
{{{
Connection Method ssh2
ABSPATH /var/www/www.mysite.com/htdocs/
PLUGINDIR wp-content/plugins
FS Errors None
FS CWD /
FS WordPress Locator Looking for /var/www/www.mysite.com/htdocs in /
FS WordPress Location /
FS0 WordPress Locator (Old code) Changing to /
Found /wp-settings.php
FS0 WordPress Location (Old code) /
Plugin location: /var/www/www.mysite.com/htdocs/wp-content/plugins
/wp-filesystem-tester.php (Local)
/wp-content/plugins/wp-filesystem-tester.php (FTP)
Plugin Locations
hello.php /wp-content/plugins/ Delete file: /wp-
content/plugins/hello.php
akismet/akismet.php /wp-content/plugins/akismet/ Delete entire
folder: /wp-content/plugins/akismet/
File IO Errors Error: Could not create file /wp-content/plugins/super-
long-name-not-to-conflict.php on server
Downloading a zip Downloading
http://downloads.wordpress.org/plugin/akismet.zip... Suceeded
Extracting Zip Suceeded
Zip Contents
akismet/ 0 ok binary
akismet/wrapper.php 6427 ok <?php
global $wpcom_api_key, $akismet_api_host, $...
akismet/index.php 26 ok <?php
# Silence is golden....
akismet/class.akismet-widget.php 2719 ok <?php
/**
* @package Akismet
*/
class Akismet_Wi...
akismet/readme.txt 11447 ok === Akismet ===
Contributors: matt, ryan, andy, md...
akismet/.htaccess 616 ok binary
akismet/_inc/ 0 ok binary
akismet/_inc/akismet.css 6003 ok binary
akismet/_inc/img/ 0 ok binary
akismet/_inc/img/logo-full-2x.png 4970 ok binary
akismet/_inc/akismet.js 5402 ok binary
akismet/_inc/form.js 700 ok binary
akismet/class.akismet-admin.php 39105 ok <?php
class Akismet_Admin {
const NONCE = 'akism...
akismet/tmp-akismet.pot 18656 ok binary
akismet/akismet.php 2421 ok <?php
/**
* @package Akismet
*/
/*
Plugin Name: ...
akismet/views/ 0 ok binary
akismet/views/config.php 10537 ok <div class="wrap">
<h2><?php esc_html_e( 'Akisme...
akismet/views/start.php 6538 ok <div class="no-key config-
wrap"><?php
if ( $akism...
akismet/views/stats.php 551 ok <div class="wrap">
<h2><?php esc_html_e( 'Akismet...
akismet/views/strict.php 830 ok <tr valign="top">
<th scope="row"><?php esc_html_...
akismet/views/notice.php 10631 ok <?php if ( $type ==
'plugin' ) :?>
<div class="upd...
akismet/views/get.php 505 ok <form name="akismet_activate"
action="https://akis...
akismet/class.akismet.php 42614 ok <?php
class Akismet {
const API_HOST = 'rest.aki...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32345#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list