• Resolved josflachs

    (@josflachs)


    Hi, I got all of a sudden a major problem: after upgrading to Ubuntu 15.10 (from 15.04) I can’t install plugins and themes without giving FTP credentials.

    Stats: Ubuntu 15.10
    Lamp: latest stack version.
    WP: 4.3.1

    Folder & File permissions:
    owner: Myself – read and write <– my username, lets’ call it Johnny
    group: www-data – read and write
    others: read-only

    I migrated yesterday from 15.04 to 15.10, and got this problem when I reinstalled Xampp. Today I installed a fresh copy of 15.10 with the Lamp stack, same results.

    I knew something was very wrong when the WP install told me wp-config.php wasn’t there. I created one. The install went well, the basics work. But working from the dashboard will not allow me to work with themes and plugins.

    I have no idea at all what the credentials should be. Hostname must be localhost, I’m working with Lamp. After that, I have no idea. I tried several FTP usernames and FTP passwords; no go.

    I discovered I’m not the only one with this when looking for a solution. But so far nothings works for me.

    I have to finish a site real soon, so a stop-gap solution with some kind of FTP credentials that work would help me out of a very tight spot. Or how to find that FTP username and password.

    Thanks for any help.

    Jos

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter josflachs

    (@josflachs)

    I don’t know much about phpmyadmin or mysql – I normally only work on sites. I just created a new mysql user, gave that user all privileges and a password. Then I tried to use those credentials, but no go.

    Thread Starter josflachs

    (@josflachs)

    Thanks for all the help, really grateful for that! ??

    I found the solution:
    Open wp-config.php file into WordPress root installation folder and add:
    define('FS_METHOD', 'direct');

    In Linux run the following three commands:
    sudo chown -R www-data:www-data /var/www
    sudo find /var/www/ -type d -exec chmod 755 {} \;
    sudo find /var/www/ -type f -exec chmod 644 {} \;

    It worked for me, probably it might help others with the same problem too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need FTP credentials’ is closed to new replies.