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.
This message usually appears when WordPress needs to update or install plugins, themes, or itself, and it doesn't have direct file system access. WordPress requires FTP credentials to proceed with these actions.
To resolve this, you have several options:
Enter your FTP hostname, username, password, and connection type (FTP or SFTP) in the provided fields. These credentials are typically provided by your web hosting service.
wp-config.php
To avoid being prompted for FTP credentials every time, you can define them in your wp-config.php
file. Add the following lines to your wp-config.php
file, replacing the placeholders with your actual FTP details:
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_USER', 'your-ftp-username');
define('FTP_PASS', 'your-ftp-password');
define('FTP_HOST', 'ftp.yoursite.com');
define('FTP_SSL', false); // Set to true if you use FTPS
If you have direct file system access (e.g., if you are using a VPS or dedicated server), you can set up WordPress to use direct file system access. To do this, add the following line to your wp-config.php
file:
define('FS_METHOD', 'direct');
Ensure that the web server user (usually www-data
or apache
on Linux systems) has write permissions to the WordPress files and directories. You can adjust the permissions using the following commands (run as root or with sudo
):
chown -R www-data:www-data /path/to/wordpress
chmod -R 755 /path/to/wordpress
If you're unsure about the FTP credentials or don't have them, you should contact your web hosting provider for assistance. They can provide the necessary information or help you set up your WordPress site properly.
You can use a WordPress plugin like "WP File Manager" or "File Manager" to manage files directly from the WordPress dashboard without needing FTP access.
Choose the option that best suits your situation to proceed with the updates or installations needed for your WordPress site.
if this problem localhost in linux or Mac Os :