Question

[Wordpress on Ubuntu 14.04] FTP credentials aren't working for one site while for other does

Ok so.

I have 2 websites. Lenslooter.com and Duki420.com

On Lenslooter everything works. I can update, add and delete plugins and some plugins can write in wp-config.php and add files to wp-content folder. ftp host in wp-config is ‘127.0.0.1’

I use exact same setting in wp-config for Duki420 and I have weird problems.

I can add and update plugins only when ftp host is ‘127.0.0.1’, but then I can access general settings. I can access general setting when ftp host is set to ‘duki420.com’.

So thats the first problem. The second one is that i.e. w3 cache needs to edit wp-config file and add new file called ‘advanced-cache.php’ in wp-content folder. On Lenslooter it can, Duki420 it can’t. I use exact same permissions as in Lenslooter.

EDIT: Oh and I am using SSH2 for connecting. Maybe I need another user on server for Auth. keys?


Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It sounds like the permissions on your second site’s files could use some adjustment. Wordpress will only prompt for FTP details if it does not have write access to the files it needs to modify. This can be corrected by ensuring that your web files are owned by “www-data”, the user that Apache runs as on an Ubuntu server. You can do this with:

chown -Rf www-data:www-data /var/www/html

Replacing /var/www/html with the directory where your web files are located.