Thread Starter
ora8i
(@ora8i)
Is this cause I’m not on port 21? That port is still (despite my editing proftp config) chrooted.
ATB Ora
Thread Starter
ora8i
(@ora8i)
Well that didn’t work 🙁
and the following doesn’t work but have I got the paths correct?
I’ve added it to the start of wp-config just after <?php file start
define(‘FS_METHOD’, ‘ftpsockets’);
define(‘FTP_BASE’, ‘/var/www/html/’);
define(‘FTP_CONTENT_DIR’, ‘/var/www/html/xxxxxxxxx.org/wp-content/’);
define(‘FTP_PLUGIN_DIR ‘, ‘/var/www/html/xxxxxxxxx.org/wp-content/plugins/’);
define(‘FTP_THEMES_DIR ‘, ‘/var/www/html/xxxxxxxx.org/wp-content/themes/’);
define(‘FTP_USER’, ‘myname’);
define(‘FTP_PASS’, ‘mypassword’);
define(‘FTP_HOST’, ‘xxxxxxxxxxx.org’);
I still need to get this going so any help much much appreciated.
aamcle
It looks OK to me based on these examples.
Thread Starter
ora8i
(@ora8i)
Thanks again, there is something to try there, that page shows the options to move wp-content. In the morning I’ll try adding the definitions to point to the content folder in it’s current location and see if that works.
ATB Ora
[5 months …later]
Today, i migrate my WP from ubuntu box into ClearOS. Everything work fine but with some error regarding old URL. It will take ages to fix it manually. I stumble upon a plugins that can “search and replace” text from database. So, I tried to auto install the plugin and received same error as ora8i.
From your discussion, I do make it work but with changes.. as follow.
define('WP_SITEURL', 'http://www.yourdomain.com');
define('WP_HOME', 'http://www.yourdomain.com');
define('FS_METHOD', 'direct');
define('FTP_BASE', '/www.yourdomain.com/');
define('FTP_CONTENT_DIR', '/www.youdomain.com/wp-content/');
define('FTP_PLUGIN_DIR ', '/www.youdomain.com/wp-content/plugins/');
define('FTP_THEMES_DIR ', '/www.youdomain.com/wp-content/themes/');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'your-ftp-ip-number:2121');
define('FTP_SSL', false);
Note: change http://www.yourdomain.com with your url
as per your example code, define('FTP_BASE', '/var/www/html/');
that is refer to your webpage not ftp base directory. This is because ClearOS set '/var/www/html/virtual' as base ftp directory for web server contents.
‘www.yourdomain.com’ in my config actually is a directory, because ClearOS created directory base on your virtual host address.
TQ.