zoukankan      html  css  js  c++  java
  • 【问题】/usr/bin/env: php: 没有那个文件或目录

    php不是默认安装的,在使用symfony创建新项目时,出现这个提示。

    [root@localhost html]# symfony demo
    /usr/bin/env: php: 没有那个文件或目录

    解决方法是新增加一个php的软链接,指向到/usr/local/bin目录下。下面以我服务器上的demo举例:

    [root@localhost bin]# ln -s /app/php/bin/php /usr/local/bin/php

    再次执行 symfony demo就正常了。

    [root@localhost html]# symfony demo
    
     Downloading the Symfony Demo Application...
    
        6.21 MB/6.21 MB ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  100%
    
     Preparing project...
    
     ✔  Symfony Demo Application was successfully installed. Now you can:
    
        1. Change your current directory to /app/nginx/html/symfony_demo
    
        2. Execute the php app/console server:run command to run the demo application.
    
        3. Browse to the http://localhost:8000 URL to see the demo application in action.
  • 相关阅读:
    Sqli-labs less 12
    Sqli-labs less 13
    Sqli-labs less 14
    Python3之collections模块
    Python3之 contextlib
    Python3之sqlalchemy
    Python3之RabbitMQ
    Python3之redis使用
    Python3之Memcache使用
    python自动化开发学习 进程, 线程, 协程
  • 原文地址:https://www.cnblogs.com/zsxfbj/p/php_env_error.html
Copyright © 2011-2022 走看看