• I am having issues with updating plugins, or installing new plugin.

    it was asking me for FTP access, and after a bit of research I found a post where they were saying adding define( 'FS_METHOD', 'direct' ); in config file will solve the issue, it helped to remove the FTP login details, but now when I try to update the plugins it gives me the following error Update Failed: Could not create directory.

    its permission issue but I dont know where to check, my public_html Owner/group is set to www-data:www-data.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is PHP running as www-data?

    ps -ef |grep -i php

    Anyhow, try this

    cd /path/to/wordpress
    sudo chown -R www-data:www-data *
    sudo  find . -type f -print -exec chmod 644 {} \;
    sudo  find . -type d -print -exec chmod 755 {} \;
    Thread Starter watandar

    (@watandar)

    @sterndata Thank you for your reply
    here is the output

    root       502     1  0 10:42 ?        00:00:03 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
    www-data   504   502  0 10:42 ?        00:00:00 php-fpm: pool www
    www-data   505   502  0 10:42 ?        00:00:00 php-fpm: pool www
    root       696     1  0 10:42 ?        00:00:00 /usr/bin/sw-engine -c /opt/psa/admin/conf/php.ini /usr/lib/plesk-9.0/psa-health-monitor-notification.php
    watan    13628   502  0 23:15 ?        00:00:00 php-fpm: pool mydomain.com
    watan    13632   502  0 23:15 ?        00:00:00 php-fpm: pool mydomain.com
    root     13641 12877  0 23:16 pts/0    00:00:00 grep --color=auto -i php

    and wordpress is on my root directory where I have other scripts running will this command sudo chown -R www-data:www-data * mess with those scripts ?
    Thank you for your time

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Hmmm…

    Because

    watan    13628   502  0 23:15 ?        00:00:00 php-fpm: pool mydomain.com
    watan    13632   502  0 23:15 ?        00:00:00 php-fpm: pool mydomain.com
    

    You might want to try “watan:watan” as the ownership. You have two PHP pools running and only one of them is handling your website.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cant update plugings’ is closed to new replies.