Google app engine php executable path not found

后端 未结 4 1870
执笔经年
执笔经年 2020-12-19 16:57

Followed the steps given on the official google app engine page for installing the sdk for php->

https://developers.google.com/appengine/docs/php/gettingstarted/hell

相关标签:
4条回答
  • 2020-12-19 17:35

    When starting dev appserver via the script one can pass in --php_executable_path pointing to the location of your php executable. The reason for the error is that it was unable to find php looking in the path and such. See documentation for example.

    $ google_appengine/dev_appserver.py --php_executable_path=/opt/local/bin/php-cgi54 path/to/your/app
    
    0 讨论(0)
  • 2020-12-19 17:46

    UPDATE: On linux use sudo apt-get install php-cgi dev_appserver.py --php_executable_path=/usr/bin/php-cgi app.yaml

    0 讨论(0)
  • 2020-12-19 17:47

    On windows:

    Download php at here https://www.php.net/downloads.php
    Example the path for download D:\php72

    Run app:

    dev_appserver.py --php_executable_path="D:\php72\php-cgi.exe" path_app/app.yaml
    
    0 讨论(0)
  • 2020-12-19 17:52

    Install php5-cgi:

    sudo apt-get install php5-cgi
    

    Run app:

    dev_appserver.py --php_executable_path=/usr/bin/php-cgi path/to/your/app
    
    0 讨论(0)
提交回复
热议问题