从命令行工具设置Magento的问题 [英] Issues with setting up Magento from command line tool

查看:55
本文介绍了从命令行工具设置Magento的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我通过命令行工具设置magento.错误如下:

Please help me to setup magento via command line tool. Here are the errors:

Xpress@Xpress-PC /cygdrive/c/xampp/htdocs/magento2 
$ ./mage mage-setup
Running initial setup...
./mage: line 50: exec: php: not found
./mage: line 50: exec: php: not found
./mage: line 50: exec: php: not found

推荐答案

问题是它找不到PHP命令.这很可能是由于缺少PHP目录路径的缘故.当您在Windows上使用cygdrive时,这种可能性更大.尝试添加此行:

The problem is that it cannot find the PHP command. This is most probably because of the missing path to your PHP directory. As you are using cygdrive on windows this is more probable. Try to add this line:

export PATH=$PATH:/cygdrive/c/xampp/php

在bash.bashrc文件中(您可以在安装cygwin的文件夹中找到它.应该在这里:C:\ cygwin64 \ etc \ bash.bashrc);此代码会将PHP(安装在:C:\ xampp \ php)添加到您的路径

in the bash.bashrc file (you can find it inside the folder where you installed cygwin. Should be here: C:\cygwin64\etc\bash.bashrc); this code will add the PHP (installed in: C:\xampp\php) to your path

这篇关于从命令行工具设置Magento的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆