• Current environment on VPS:
    CentOS 7x
    WP v5.8.4
    PHP v7.4
    Plugin folder and directories permission (recursive) = 755
    Plugin files permission (recursive) = 644

    I moved my site from shared hosting to the current VPS and was getting the following when I tried to update plugins:

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

    …After reading several threads here, I added the following code to my wp-config.php:

    define(‘FS_METHOD’, ‘direct’);
    define(‘FTP_BASE’, ‘/usr/home/username/public_html/my-site.example.com/wordpress/’);
    define(‘FTP_CONTENT_DIR’, ‘/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/’);
    define(‘FTP_PLUGIN_DIR ‘, ‘/usr/home/username/public_html/my-site.example.com/wordpress/wp-content/plugins/’);

    …and now when I try to update a plugin I get:

    “Update failed: Could not create directory.”

    Not sure how to proceed now for resolution of this issue and appreciate any help!!

    • This topic was modified 2 years, 10 months ago by SuzieQue.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FTP Credentials’ is closed to new replies.