Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install a theme in local machine. Should I need the FTP data connection?

Tags:

wordpress

I have just installed wordpress at my localhost for the first time.

I want to install a theme, and it asks me about my FTP username and password.

It says this: "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."

I'm wondering if wp is usually directly installed in the production web server or if it could be installed first in a local machine... What should I do?

like image 850
ziiweb Avatar asked Nov 05 '12 13:11

ziiweb


1 Answers

Add this to your wp-config.php

define('FS_METHOD','direct');

Due to Linux having such a more restrictive file system, this will enable to you write directly to the folder.

This will solve that ftp problem while installing a new plugin or theme.

like image 107
Jeegar Patel Avatar answered Oct 05 '22 10:10

Jeegar Patel