When you want to install or upgrade a plugin, wordpress will display a message stating:
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 problem is solved by installing Vsftpd (Very Secure FTP Daemon) FTP Server.
The second problem is that you will have to enter the ftp credentials every time that you want to install or upgrade a plugin. To avoid this, open wp-config.php in notepad and enter the following information at the end:
define( 'FTP_USER', 'user' );
define( 'FTP_PASS', 'pass' );
define( 'FTP_HOST', 'ftp.domain or IP address:21' );
Use the FTP user name and password you created when installing vsftpd. For the ftp host, try with the domain name or the IP address. If you have secured the server by blocking permitting entry only through a specified port, enter the port number after the domain/IP address.
Now when you install or upgrade wordpress, it will not nag you for the ftp information.
Thanks it works!!!!!!!!!
Yeah its working fine ……!
Thanks
It works for me but after download the plugin error says that directory can not be created
Thanks!!
it works!! thks alot
Thanks you . This code is running .
kind regards,
sithon
It works for me! Thanks
yes… this methode is working
Thanks
You can also set your PHP Execution mode to "CGI Wrapper" [or other terminological equivalents] instead of using apache to execute. Yes; that's all you have to do.
Hope this helps for you future lost souls that find this thread 😉
If you are using php fastcgi and PHP runs under the same user as the owner of the files you don't have to use FTP at all. WP can directly access the files. Just add the following to your wp-config.php file:
define( 'FS_METHOD', 'direct' );
define( 'FS_CHMOD_DIR', 0777 );
define( 'FS_CHMOD_FILE', 0777 );