• I have just done a clean install to try and fix a problem I have had for a very long time across multple versions of wordpress.

    For some reason when trying to install or do automatic upgrades the base directory does not set correctly causing the files to go to a different directory.

    I managed a quick fix work-around by setting define( ‘FS_METHOD’, ‘ftpext’ ); For some reason this kind of fixes the issue but not totally.

    I tracked down the issue in the ftp logs of the site and find that WP is doing the following when calling directories

    [NOTICE] /home/user//home/user/public_html/wp-content/plugins/

    It duplicates home/user reference creating a new directory in the wrong place.

    I am at a loss as to why this is and where to go next to fix the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • WordPress will be picking up paths from the server, so it could be the server’s own configuration that is at fault in this particular case. Have you looked into this?

    Thread Starter kiwiot

    (@kiwiot)

    I looked over the define(‘ABSPATH’, dirname(__FILE__) . ‘/’); and this is correct.

    Not sure where the ftp dirs are being set

    You need to check the server’s configuration files.

    Thread Starter kiwiot

    (@kiwiot)

    Server vars look normal to me

    [HTTP_HOST] => https://www.site.com
    [HTTP_CONNECTION] => keep-alive
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36
    [HTTP_REFERER] => https://www.site.com/wp-admin/index.php
    [HTTP_ACCEPT_ENCODING] => gzip,deflate,sdch
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.8
    [HTTP_COOKIE] => wordpress_074dadc66f2d90521464d98fd06649d8=sdfs%7C1387454875%7Cf8ccfe34381855f6ef4fadc305e5c38a; cpsession=kiwiot%3asF9WdZl1kiaCpaDNzjs8IaVL9H6L7abPEETd_PF6stzUcWHTlLPh4KqcuNpImRVp%2c17da52a6909cbfa0c48c1d6a1a5d15d68e4503dbb5c3ce0fda63fb6ec7d6a04d; langedit=; lang=; cprelogin=no; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_074dadc66f2d90521464d98fd06649d8=sdf7C1387454875%7C33ed1ad72d543b8a429480186dc05c3d; wp-settings-time-1=1386254900
    [PATH] => /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
    [LD_LIBRARY_PATH] => /usr/local/apache/lib
    [SERVER_SIGNATURE] =>
    [SERVER_SOFTWARE] => Apache/2.4.6 (Unix) OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.4.18
    [SERVER_NAME] => https://www.site.com
    [SERVER_ADDR] => +++.+++.+++.32
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => +++.+++.4.167
    [DOCUMENT_ROOT] => /home/site/public_html
    [REQUEST_SCHEME] => http
    [CONTEXT_PREFIX] =>
    [CONTEXT_DOCUMENT_ROOT] => /home/site/public_html
    [SERVER_ADMIN] => [email protected]
    [SCRIPT_FILENAME] => /home/site/public_html/wp-admin/index.php
    [REMOTE_PORT] => 41900
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /wp-admin/index.php
    [SCRIPT_NAME] => /wp-admin/index.php
    [PHP_SELF] => /wp-admin/index.php
    [REQUEST_TIME_FLOAT] => 1386256982.76
    [REQUEST_TIME] => 1386256982
    [argv] => Array

    Thread Starter kiwiot

    (@kiwiot)

    Tried changing the ftp server from

    Pure-FTPD

    to

    ProFTPD

    Same issue.

    Any suggestions as to what files to look at on the server.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘FTP Path is not setting Correctly’ is closed to new replies.