FTPS error – absolute path

[ad_1]

Installing plugins via FTPS does not work at all.

The Server is on Ubuntu 22.04 with WordPress 6.4.3 and pure-ftpd running. FTP Users are chrooted to their directory: e.g. “/home/xxx/http/”. This works well with filezilla as shown in log:
[…][DEBUG] Command [user] [xxx][DEBUG] Command [pass] [<*>]xxx is now logged in
[…][DEBUG] pwd] [][DEBUG] Command [cwd] [/wp-content]

Logfile of WordPress is different:
[…][DEBUG] Command [user] [xxx][DEBUG] Command [pass] [<*>]xxx is now logged in
[…][DEBUG] pwd] [][DEBUG] Command [cwd] [/home/xxx/http/wp-content][INFO] Can’t change directory to /home/xxx/http/wp-content: No such file or directory.

Folder /home/xxx/http/wp-content is present for sure. WordPress tries to change to the absolute path while FileZilla changes to the relative path which ist the correct behaviour.

I have tried to set “define( ‘FTP_BASE’, ‘/home/xxx/http/’ )” with no success. Currently i am unable to install any pluging.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer