[wp-trac] [WordPress Trac] #20652: Install plugins with FTP upload, virtual subdomain, bad base dir?

WordPress Trac wp-trac at lists.automattic.com
Thu May 10 12:29:09 UTC 2012


#20652: Install plugins with FTP upload, virtual subdomain, bad base dir?
-----------------------------+------------------------------
 Reporter:  rajcz            |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  3.3.2
 Severity:  major            |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------
Changes (by dd32):

 * component:  Plugins => Upgrade/Install


Old description:

> 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/something.com
> /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
> /www/something.com/something.com/plugins
> 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 !
>
> Pavel

New description:

 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/something.com[[BR]]
 /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.[[BR]]
 Upload is in bad directory - plugin I can found in[[BR]]
 /www/something.com/something.com/plugins[[BR]]
 no in /www/something.com/sub.something.com/plugins[[BR]]

 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 !

 Pavel

--

Comment:

 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.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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20652#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list