在Ubuntu上的Wordpress安装插件没有FTP访问 [英] Wordpress on Ubuntu install plugins without FTP access
本文介绍了在Ubuntu上的Wordpress安装插件没有FTP访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我运行自己的Web服务器进行开发,并在其上安装了一个WordPress实例。当我尝试从管理界面向该实例添加插件时,WordPress会要求FTP访问。
I run my own web server for development and, on it, I installed a WordPress instance. When I try to add plugins to this instance from the admin interface, WordPress asks for FTP access.
我不使用FTP,并且在将来也没有计划这样做。我知道我可以在WordPress中更改一些配置,这样我就可以在没有FTP的情况下上传。
I don't use FTP and have no plans to do so in the future. I know I can change some configuration in WordPress so that I am able to upload without FTP. What exactly should I configure to accomplish this?
推荐答案
以下三件事之一:
One of three things:
- 要么更改权限,以便您的Web服务器可以读取wp-content目录,这对开发服务器应该是没问题的。
- 运行PHP作为FastCGI它可以以不同于web服务器的用户身份运行。
- 安装PHP的ssh扩展(
sudo apt-get install libssh2-php
在Ubuntu上认为)
- Either change permissions so your web server can read the wp-content directory, which should be fine for a development server.
- Run PHP as FastCGI which can run as a different user than your web server.
- Install the ssh extension for PHP (
sudo apt-get install libssh2-php
on ubuntu on think)
这篇关于在Ubuntu上的Wordpress安装插件没有FTP访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文