How do I know which linux user Wordpress uses for plugin installation

前端 未结 4 1498
执笔经年
执笔经年 2020-12-25 14:59

I\'m trying to setup Wordpress to be able to install plugins via SFTP (SSH) on a Centos 6 VPS.

I\'ve been able to modify wp-config so it uses the right

相关标签:
4条回答
  • 2020-12-25 15:39

    Well it's not about /wp-content file permissions, so just leave the WordPress directory directory /wp-content permissions as 0755.

    The fix that is required here has to be initiated within apache2.conf file; there we need to change "AllowOverride" directive for our /www/html/ directory from "AllowOverride None" to "AllowOverride All"

    Follow the complete procedure here How to deal with GCP WordPress error "This page isn’t working example.com is currently unable to handle this request. HTTP ERROR 500

    With this we tell a web server to allow a use of .htaccess file.

    0 讨论(0)
  • 2020-12-25 15:45

    The Wordpress user is also the web server user, so this should work:

    ps -ef | grep http

    or

    ps -ef | grep apache

    0 讨论(0)
  • 2020-12-25 15:47

    So it clearly says that a group has no W access.

    You can do: chmod -R g+w /your/plugins/dir

    And then, nginx group will be able to write there.

    0 讨论(0)
  • 2020-12-25 15:53

    On your production server, in your WordPress index.php file, at the top, you can temporarily put echo(exec("whoami"));die();

    Then browse to your WordPress site and see what user was running. On Ubuntu, mine was www-data.

    This was useful for me for: Can I install/update WordPress plugins without providing FTP access?

    0 讨论(0)
提交回复
热议问题