PHP Developer server + PHP-FPM

45 views
Skip to first unread message

Piotr Wielądek

unread,
Feb 11, 2019, 9:44:32 AM2/11/19
to Google App Engine
Hey,

I'm trying run devappserver.py with --php_executable_path=/usr/sbin/php-fpm7.2

and always getting:

INFO     2019-02-10 16:54:12,503 devappserver2.py:278] Skipping SDK update check.
INFO     2019-02-10 16:54:52,671 api_server.py:275] Starting API server at: http://localhost:35949
INFO     2019-02-10 16:55:12,843 dispatcher.py:256] Starting module "users" running at: http://172.18.0.5:8086
INFO     2019-02-10 16:55:12,845 admin_server.py:150] Starting admin server at: http://172.18.0.5:8100
WARNING  2019-02-10 16:55:12,845 devappserver2.py:373] No default module found. Ignoring.
ERROR    2019-02-10 16:55:13,905 module.py:1652] Usage: php-fpm7.2 [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p <prefix>] [-g <pid>] [-c <file>] [-d foo[=bar]] [-y <file>] [-D] [-F [-O]]
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -h               This help
  -i               PHP information
  -m               Show compiled in modules
  -v               Version number
  -p, --prefix <dir>
                   Specify alternative prefix path to FastCGI process manager (default: /usr).
  -g, --pid <file>
                   Specify the PID file location.
  -y, --fpm-config <file>
                   Specify alternative path to FastCGI process manager config file.
  -t, --test       Test FPM configuration and exit
  -D, --daemonize  force to run in background, and ignore daemonize option from config file
  -F, --nodaemonize
                   force to stay in foreground, and ignore daemonize option from config file
  -O, --force-stderr
                   force output to stderr in nodaemonize even if stderr is not a TTY
  -R, --allow-to-run-as-root
                   Allow pool to run as root (disabled by default)

INFO     2019-02-10 16:55:14,847 shutdown.py:50] Shutting down.
INFO     2019-02-10 16:55:14,848 stub_util.py:357] Applying all pending transactions and saving the datastore
INFO     2019-02-10 16:55:14,848 stub_util.py:360] Saving search indexes


I dont know how to pass through this correctly ...
Would be nice if someone could help me.

George (Cloud Platform Support)

unread,
Feb 11, 2019, 5:56:36 PM2/11/19
to Google App Engine
Hello Piotr, 

What directory are you in when running this command? You should rather run the dev_appserver.py command as follows from the directory that contains your app's app.yaml configuration file: 

dev_appserver.py [PATH_TO_YOUR_APP]

Alternatively, you can specify the configuration file of a specific service, for example:

dev_appserver.py app.yaml

You may find related information in the "Using the Local Development Server" online document

Piotr Wielądek

unread,
Feb 12, 2019, 3:26:49 AM2/12/19
to Google App Engine
Hello George,

Im running devserver command while im in application directory (where my app.yaml).
According to documentation it looks like:

dev_appserver.py --php_executable_path=/usr/sbin/php-fpm7.2 app.yaml

but getting error all the time

George (Cloud Platform Support)

unread,
Feb 22, 2019, 6:56:49 PM2/22/19
to Google App Engine
Hi Piotr, 

You have some hints in the error message, one being "No default module found", the other "No php.ini file will be used". You should check your code and modify it accordingly. 

All this is above the scope of this discussion group, in fact off-topic. You should post such questions to StackOverflow, or other similar forums. This forum meant for general discussion on the platform and its services. By contrast, in StackOverflow, you get in contact with experienced programmers, who are happy to help. 
Reply all
Reply to author
Forward
0 new messages