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 trialparkerreed
11,030 PointsFTP connection to localhost
In this video of Genesis framework Foundation, I see that Jesse Petersen connect FTP to localhost. How would you do it? Host: genesisfoundation.dev Username: jesse Password:********** How would we set up a connection to localhost, and how to find FTP username and password in localhost environment? Thank you
1 Answer
Juan P. Prado
70,483 Points"Set the method that WordPress should use to write to the filesystem... explicitly set the filesystem method to "direct". Failure to set this with our current settings would result in WordPress prompting for FTP credentials when we perform some actions." https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-04
This setting can be added below the database connection settings, or anywhere else in the file:
/var/www/html/wp-config.php
define('FS_METHOD', 'direct');
I've added that code when I'm either developing local with MAMP or a remote server, in order for WP to cease asking for ftp credentials.
Hope this helps, Cheers!