简体   繁体   English

如何“通过在插件根目录中运行命令来安装PHP客户端”?

[英]How do I “install the PHP client by running the command in the plugin root directory”?

I customize Wordpress sites, so I'm somewhat technical but I'm trying to install a plugin from GitHub and the instructions are confusing me. 我自定义Wordpress网站,所以我有点技术性,但是我试图从GitHub安装一个插件,说明使我感到困惑。

Here are the Installing instructions: 以下是安装说明:

1. Clone or copy project folder into wp-content/plugins directory 1.将项目文件夹克隆或复制到wp-content / plugins目录
2. Install the SpinPapi PHP client by running the commands git submodule init and git submodule update in the WPSpin root directory 2.通过在WPSpin根目录中运行git submodule init和git submodule update命令来安装SpinPapi PHP客户端。
3. Ensure that the WPSpin/spinpapi/tmp folder is writable by the web server user 3.确保Web服务器用户可写WPSpin / spinpapi / tmp文件夹
4. Activate plugin from WordPress plugins screen 4.从WordPress插件屏幕激活插件

I'm pretty baffled by numbers 2 and 3. How do I run a command in a root directory? 我对数字2和3感到困惑。如何在根目录中运行命令? And when I downloaded the zip file, there isn't even a WPSpin/spinpapi/tmp folder, so how do I make it writable? 当我下载zip文件时,甚至没有WPSpin / spinpapi / tmp文件夹,那么如何使它可写?

This is the page I'm looking at: Github reference link 这是我正在查看的页面: Github参考链接

Thanks for any help. 谢谢你的帮助。

Can you connect to your server by ssh? 可以通过ssh连接到服务器吗?

if yes, you can execute command like: 如果是,则可以执行以下命令:

connect to your server 连接到您的服务器

ssh username@mydomain.com

1: clone git repository 1:克隆git存储库

git clone https://github.com/emumarketing/WPSpin.git

2: Install the SpinPapi PHP client 2:安装SpinPapi PHP客户端

cd WPSpin
git submodule init
git submodule update

3: search on google about chmod to make the folder writable 3:在Google上搜索有关chmod的信息,以使该文件夹可写

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我运行“yum install php-pgsql”时,我得到“你需要成为 root 才能执行这个命令。”作为一个错误。如何成为 root - when i run ''yum install php-pgsql" I got "You need to be root to perform this command." as an error . how to be the root 如何在运行于Azure的服务器上安装MySQL PHP驱动程序? - How do I install MySQL PHP drivers with a server running on Azure? 如何在根目录中使用PHP文件以及其他页面的相对路径? - How do I use a PHP file in root directory with relative paths for other pages? 如何在我的 PHP 项目根目录之外链接 JS 外部文件? - How do I link JS external files outside of my PHP project root directory? 如何使用php将用户上传的文件(图像)保存到特定文件而不是根目录? - How do I save user uploaded files (images) to a specific file instead of the root directory with php? 如何告诉子域的索引调用子目录的index.php文件中根目录的全部内容? - How do I tell the index of my subdomain to call the entire contents of the root directory in the index.php file of my sub-directory? WordPress>在插件激活/安装时将Google验证文件传输到根目录 - Wordpress > Transfer google verification file to root directory on plugin activation/install 从 php 运行 csf 命令而不是 root - running a csf command from php not as root 如何在服务器中运行PHP代码的同时阻止PHP向客户端发送数据? - How do I stop PHP from sending data to client while still running PHP code in server? 如何在php中设置根目录 - How to set root directory in php
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM