Make WordPress Core

Opened 6 years ago

Last modified 3 years ago

#20652 reopened defect (bug)

Install plugins with FTP upload, virtual subdomain, bad base dir? — at Version 1

Reported by: rajcz Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.3
Component: Filesystem API Keywords: needs-patch has-unit-tests
Focuses: Cc:

Description (last modified by dd32)

Hi anybody! I have problem with install plugins with FTP module in WP.

Everything show as OK, but plugin directory is bad. I have subdomain

sub.something.com - this is virtual subdomain from mod_rewrite

dirs are

/www/something.com/sub.something.com - here is WP installation, subdomain is virtual from rewrite in httpd.conf

After install - WP say everything OK - but one thing is bad.
Upload is in bad directory - plugin I can found in
no in /www/something.com/sub.something.com/plugins

Is here some way to fix it automatticaly or I can must edit config and basedir of ftp? Why is here this bug?

Thank you !


Change History (1)

#1 @dd32
6 years ago

  • Component changed from Plugins to Upgrade/Install
  • Description modified (diff)

Hi Pavel,

Could you attach the output from phpinfo() as an attachment here (or, if you're worried there might be sensitive information there, you can email it to me directly at dion at wordpress dot org) so I can check to see what the paths PHP is seeing?

(to get the phpinfo() output, simply create a file called 'phpinfo.php' which contains the following: <?php phpinfo(); and put that into your WordPress folder that you're having the problem with, and load http://sub.something.com/phpinfo.php in your browser. After you've saved the page, or copied it to an email, you can delete the file )

Next, When you connect via FTP to the server, what directory do you see? I assume you see the www directory, and nothing higher than that?

Finally, You should be able to work around this temporarily (by that, I mean, until the bug is fixed) by adding this define to your wp-config.php file:

define( 'FTP_BASE', '/www/something.com/sub.something.com/' );

There is also FTP_CONTENT_DIR and FTP_PLUGIN_DIR available, but hopefully the single BASE constant should work.

Last edited 5 years ago by dd32 (previous) (diff)
Note: See TracTickets for help on using tickets.