Hey all,
Newbie to development here.
I’m getting this error when I try to install a theme from Wordpress: “Failed to connect to FTP Server”.
It’s asking me for my hostname, username, and password which I put in (checked to see if they are correct from Transmit 2 and SSH).
What I find weird is that Transmit connects to SFTP through port 22 (which I thought was dedicated to SSH) and when I try to connect through port 21 (which Wordpress tries to do) it fails.
If it helps – I installed Wordpress using the Ubuntu 14.04 guide. Another thing: I think I installed my original droplet with the LAMP stack, but then installed it again with the LAMP Stack Guide for Ubuntu 14.04, don’t know if that would cause these sorts of problems.
Any help would be much appreciated! Thanks in advance.
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!
chown -R www-data:www-data /var/www find /var/www/ -type d -exec chmod 755 {} ; find /var/www/ -type f -exec chmod 644 {} ;
Worked for me toooo! Thanks!
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
I can confirm that adding define(‘FS_METHOD’, ‘direct’); to wp-config.php worked for our Roofers Dublin website on Wordpress! Thanks for your help.
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.