Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: WordPress asking for my FTP credentials to install plugins #9497
    blankgiovan-cruz
    Participant

    For me the the process that solved, to be able to work on my localhost using Ubuntu, was:
    (of course you must replace myUser by your user, whoami show it for you if you dont know)

    • Include myself on www-data group (to be able to access and edit files without sudo):

      sudo usermod -aG www-data myUser
      
    • Set myself and this group as files owners:

      sudo chown -R myUser:www-data /var/www/html
      
    • Set a major permission for the group (the group must write too):

      sudo find . -type f -exec chmod 664 {} \;
      sudo find . -type d -exec chmod 775 {} \;
      
    • Then add this line on config.php

      define('FS_METHOD', 'direct');
      
Viewing 1 post (of 1 total)