Home > Backend Development > PHP Tutorial > 执行yiic出现错误 /usr/bin/env: php: 没有那个文件或目录

执行yiic出现错误 /usr/bin/env: php: 没有那个文件或目录

WBOY
Release: 2016-06-23 13:34:21
Original
1282 people have browsed it

开发环境用的是:linux系统+xampp安装包,导入 yii框架后,执行 yiic 命令时,提示:/usr/bin/env: php: 没有那个文件或目录。

解决方法:yiic是使用php脚本创建webapp的,启动yiic到时候,它会自动到/usr/bin/路径下找php执行文件。但是xampp默认安装在 /opt 目录下。
此时我们修改 yiic 文件即可,如下:

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template