Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Install WordPress on Your Computer How to Install WordPress on Your Computer How to Enable Email for WordPress on Your Computer

Ubuntu: when I go to install the smtp plugin, it asks for ftp settings

I just have it installed locally and am not ready to pay for hosting quite yet, how can I install plugins without providing hosting info

i tried giving the user that's accessing it, www-data, permissions to access the wordpress folder, and that didn't work, then i tried adding define('FS_METHOD', 'direct');

to wp-config.php . Then it doesn't ask me for ftp permissions anymore, but it does say

Downloading install package from https://downloads.wordpress.org/plugin/easy-wp-smtp.zip…

Unpacking the package…

Could not create directory.

Return to Plugin Installer

1 Answer

ok i figured it out myself. i had to go to /etc/wordpress/config-localhost.php and change one line to

define('WP_CONTENT_DIR', '/var/www/html/wordpress/wp-content/');

because it had the wrong path for my wp-content folder