3

I have downloaded a theme and I'd like to install it. Now I'm in Appearance > Themes > Add > New/Upload Theme. WordPress wants an FTP access. Well, I'm at my local machine and no FTP server is listening the port 21.

I'm inspired by this post: Can I install/update WordPress plugins without providing FTP access?

So, they say that after granting write permissions, no FTP prompt will appear.

For simplicity of the learning (!) process I've allowed everything on the directory now.

michael@hp:/var/www/html$ ls -la | grep wp-content
drwxrwxrwx  5 root root  4096 дек 20 20:50 wp-content

Well, WordPress continues to ask for FTP access. Could you give me a kick here?

Samvel Aleqsanyan
  • 2,812
  • 4
  • 20
  • 28
Michael
  • 4,273
  • 3
  • 40
  • 69

2 Answers2

12

Check, that httpd user have permission "rw" to wp-content folder and add into wp-config.php file:

define('FS_METHOD', 'direct');
Samvel Aleqsanyan
  • 2,812
  • 4
  • 20
  • 28
George
  • 136
  • 1
  • 4
4

Add the following code in your wp-config.php file:

define('FS_METHOD', 'direct');
Samvel Aleqsanyan
  • 2,812
  • 4
  • 20
  • 28
Leonardo
  • 791
  • 1
  • 5
  • 21