How to set path with WP_Filesystem and ftp base / chroot

In my theme i will use the WP_Filesystem to write a file to for example: $file = get_template_directory().’/library/assets/css/wpless2css.css’; Which outputs something like /home/user/domain/http_docs/wp-contents/theme/mytheme/library/assets/css/wpless2css.css This will work unless the ftp user will be chroot to /home/user/domain/ (on some servers?). In the case of a chroot the WP_Filesystem can’t find $file. A solution seems to define FTP_PATH … Read more

FTP Username and password wrong while installing theme

I followed Failed to connect to FTP Server 127.0.0.1/:21 And was able to solve that problem. But now when I try to upload the theme then I get username and password failure. I have added following lines in wp-config.php define( ‘FS_METHOD’, ‘ftpext’ ); define( ‘FTP_BASE’, ‘/var/www/wordpress/’ ); define( ‘FTP_CONTENT_DIR’, ‘/var/www/wordpress/wp-content/’ ); define( ‘FTP_PLUGIN_DIR ‘, ‘/var/www/wordpress/wp-content/plugins/’ … Read more

Plugin to edit htaccess file

Is there anyway I can edit my htaccess file without using ftp? 4 Answers 4 Here are a couple of options: WP htaccess Control – will let you manually edit your .htaccess file All-in-one htaccess Plugin – will let you dynamically create an .htaccess file based on which modules/features you want set up When all … Read more

How to recursively download a folder via FTP on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 8 years ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting … Read more

Failed to connect to FTP Server 127.0.0.1/:21

Tried to install a wordpress plugin on my local machine: To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host. Hostname 127.0.0.1 FTP Username macusername FTP Password macusernamepassword Connection Type Connection Type FTP … Read more