Stop WordPress Asking For FTP details When You Install / Upgrade Plugins
2013-09-08 23:30
232 查看
When you want to install or upgrade a plugin, WordPress will most probably display this message:
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.
If you are on shared hosting you might not have this problem but if you are on a VPS or Dedicated server you will most probably get asked to supply FTP credentials every time you want to install or upgrade plugin or even WordPress. This can become an annoyance if you install plugins a lot so this is one of the first things I always fix when I install new WordPress site.
Here is how to solve it: open your
After you do this your won’t be asked for FTP credentials anymore. There are other solutions like settings permission with chown via shell or installing suPHP on your server but this one seems to be the easiest.
If the above fails for whatever reason you can comment the above code and try adding the following code in the
This forces files to be writable by the server. You should only use this if adding FTP credentials method fails.
copy from: http://www.elcoderino.com/stop-wordpress-asking-for-ftp-details-when-you-installupgrade-plugins/
The red line work for me,although I have changed the wordpress dir into 777.
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.
If you are on shared hosting you might not have this problem but if you are on a VPS or Dedicated server you will most probably get asked to supply FTP credentials every time you want to install or upgrade plugin or even WordPress. This can become an annoyance if you install plugins a lot so this is one of the first things I always fix when I install new WordPress site.
Here is how to solve it: open your
wp-config.phpfile (by default it can be found in your root WordPress directory) with text editor and simply add your ftp login information near the bottom of the wp-config.php file (just above the /** Sets up WordPress vars and included files. */ comment for example):
If the above fails for whatever reason you can comment the above code and try adding the following code in the
wp-config.phpfile,somewhere at the top:
copy from: http://www.elcoderino.com/stop-wordpress-asking-for-ftp-details-when-you-installupgrade-plugins/
The red line work for me,although I have changed the wordpress dir into 777.
相关文章推荐
- Could not install the app on the device, read the error above for details. Make sure you have an And
- Install WordPress Plugins without FTP Access
- Could not install the app on the device, read the error above for details. Make sure you have an And
- install mp3 plugins for Rhythmbox
- ConcurrentModificationException when you concurrent modify the collection for its interating
- Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
- Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE Please check logcat output for more details.
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- Installation error: INSTALL_CANCELED_BY_USER [...]Please check logcat output for more details. [...
- how to fix the problem when you install matlab on *nix-- "libXp.so.6 : cannot open "
- "undefined method `root' for nil:NilClass" error when using "pod install" 解决办法
- Typically this problem occurs when you are putting in a data that is too long for the column. In t
- BUG: You receive an "HTTP 500 - Internal server error" error message when you try to view an ASP page after you install Visual S
- Failed to import pydot. You must install pydot and graphviz for pydotprint to work
- 125.You want to check the details of few errors that users have reported. You search for the alert l
- Plan for apps for SharePoint 2013(You need to ensure that users can install apps from the App Catal)
- Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-d
- You should consider upgrading via the 'pip install --upgrade pip' command.
- FIX: Error message when you try to install a large Windows Installer package or a large Windows Installer patch package in Windows Server 2003 or in Windows XP: "Error 1718. File was rejected by digital signature policy"
- Modify the average program to promote for intergers repeatedly.stop when a nagetive number is entere