Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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