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?
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.
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:
Replacing /var/www/html with the directory where your web files are located.
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:
Replacing /var/www/html with the directory where your web files are located.