• Resolved ajaykool28

    (@ajaykool28)


    I have just installed WordPress. On my new site.

    I have been using it since 2 years.

    When I tried to install plugins or theme, I get

    Connection Information

    To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

    I am hosting the website myself on AWS and everything hosted a VPS machine and I do have full control.
    I dont really have ftp, I am using SSH

    Link to website http://fluixstudios.com/

Viewing 7 replies - 1 through 7 (of 7 total)
  • For SSH/SFTP, you must use a plugin to allow this. WP does not support these protocols by default: https://wordpress.org/plugins/ssh-sftp-updater-support/

    – – https://codex.wordpress.org/Editing_wp-config.php#Enabling_SSH_Upgrade_Access

    Once you install this plugin, you need to specify your SSH/SFTP details in wp-config.php to make sure WP does not ask for them every single time:

    https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

    Hope that helps,
    Viktor

    Thread Starter ajaykool28

    (@ajaykool28)

    I fixed all whole issues. After a long search. what I did was made the owner / group of files www-data also made 777 permissions.

    2nd issue was after this post was Permalink Settings
    That was fixing apache2.conf and doing the following

    <Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>

    Thanks, Victor.

    I’d been trying to figure this out for over an hour before I found this, but your solution worked perfectly in 10 minutes.

    It would have been less, but it took me a few guesses to figure out which constants to add after installing and activating the plugin. Now, it won’t be the same for everyone, but just in case it helps someone get started, I had to add the following to the list of “define” declarations in wp-config.php:

    define( 'FS_METHOD', 'ssh2' );
    define( 'FTP_USER', '[user]' );
    define( 'FTP_PASS', '[password]' );
    define( 'FTP_HOST', '[host ip address]' );
    define( 'FTP_SSL', false );

    (With all [brackets] replaced.)

    As for setting permissions to 777, that seems like a very dangerous way to go.

    As far as I’m concerned, however, this issue can be marked as resolved.

    BruceManning

    (@brucemanning)

    This happens to me when I’m very near, or have exceeded my hosting space quota. All you need to do is delete uneccessary files, e.g., backups, then log out/back in and try installing/updating the backups again.

    This worked for me…
    Add the following to wp-config.php:
    define( 'FS_METHOD', 'direct' );
    Let me know how it works for you.

    Thank you Orlando!

    I’ve been looking foe a solutions for hours and that worked perfectly for me!

    Check your server and make certain you are the owner and a group member of the files and directories where your WordPress install is living. For Linux command line you can navigate to your directory and do an ls -l command. If your directory doesn’t belong to your account that will cause the same situation. To remedy it simply perform a chown command, thusly:
    chown user:group -R mydirectory

    Where user and group are the appropriate username and groupname and mydirectory is the folder where your WordPress installation exists.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘When installing plugins or themes I get Connection Information and asking FTP’ is closed to new replies.