Home > PHP Framework > YII > body text

yii reports an error when running init.bat

王林
Release: 2020-02-18 11:02:34
Original
2174 people have browsed it

yii reports an error when running init.bat

Problem:

When running init.bat of yii2.0.6, it prompts that "php.exe" is not an internal or external command.

Solution:

(Related tutorial recommendation: yii framework)

Open init.bat with a text editor to modify

if "%PHP_COMMAND%" == "" set PHP_COMMAND= php.exe
Copy after login

Change to

if "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\xampp\php\php.exe(填写你自己php.exe的实际路径)
Copy after login

Then run it again in CMD and it will be ok!

For more programming-related content, please visit the Introduction to Programming column on the php Chinese website!

The above is the detailed content of yii reports an error when running init.bat. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
yii
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!