By tridnguyen
I followed this example to set up my wordpress instance.
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04
I am unable to install/ update plugins through the WordPress Admin UI. It keeps asking me for the FTP username/ password, and even after I enter those information, the files are still not installed.
I can upload files through the Media however, so it doesn’t seem like a file permissions issues to me.
Does anyone know what are some possible solutions I can try?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Use this code , wordpress asking for ftp details because wordpress doesn’t have permission to write in your server. use these two commands in terminal.
$sudo a2enmod rewrite
$sudo chown -R www-data /var/www
video guide https://www.youtube.com/watch?v=RGGWVUIvhnk
This question was answered by @UKn0Me:
After running
chown, you’ll probably need to adddefine('FS_METHOD', 'direct');to wp-config.php to force it to stop using FTP.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.