It does appear that WordPress requires an FTP server to be installed to upload the files from the web interface. I have installed WordPress blog. I need to install some plugins but i m getting a box :--
To perform the requested action, WordPress needs to access to your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.
Something like this:--
Can u help me?
To install the VSFTP server on Ubuntu
sudo apt-get install vsftpd
Once you've got it installed you'll need to tweek the configuration, edit /etc/vsftpd.conf
Disable anonymous logins find the
anonymous_enable
directive and make itanonymous_enable=NO
Enable local accounts to login set the
local_enable
directive tolocal_enable=YES
Allow writes by setting the
write_enable
directivewrite_enable=YES
Restart the ftp server so your changes take effect.
sudo service vsftpd restart
In order to enable the use of SSH2 for your updates and theme uploads, you have to generate your SSH keys and have the PHP SSH module installed. Then WordPress will detect that you have SSH2 available and you'll see a different option (SSH2) displayed when doing an upload/upgrade.
1.) Make sure you have the PHP module installed for debian it is:
2.) Generate SSH keys, adding a passphrase is optional:
3.) Change the permission so that WordPress can access those keys:
Now you'll get the SSH2 option when doing an upload/upgrade/plugin. Here is a pic, I don't have enough rep. to post an image. Here is a link to the image that you'll get, hopefully this is okay to include. https://www.dropbox.com/s/1m7fxlkp0nchplx/ssh-connection.png
4.) For added ease you can setup the defaults in your
wp-config.php
and this will pre-populate the SSH credentials in the WordPress upload window.The 'passphrase' is optional, if you don't setup a passphrase during
ssh-kengen
; then don't add it inwp-config.php
This solved my issue. And I didn't have to do the
chown
at all. But I have seen this method referenced in other places.References:
Actually, you do not need a ftp server running on your server to solve this problem.
If you are running nginx, just simply go to /path/to/yout/wordpress/ and type this command in your SSH connection window:
chown -R www .
I'm not sure how to change user permission if you are running apache, change www to the apache group name like httpd may will work:
chown -R httpd .
Tell WordPress to use the filesystem directly — add this line to the top of your
wp-config.php
: