In the LNMP environment, the response no input file specified. But the file is the analysis and solution of the actual existence
1,http://wmpublish.mp.sztv.com.cn:8026/wx/robots.txt, the response is successful, indicating that the configuration of nginx is correct
User-agent: *
Disallow: /
2,http://wmpublish.mp.sztv.com.cn:8026/v1/channel-app-sources?group_id=channel, the response failed, no input file specified
No input file specified.
3. Run the command in the container and view the nginx error log, as shown in Figure 1

cat /var/log/nginx/error.log
2018/09/28 03:27:00 [error] 464#464: *225 FastCGI sent in stderr: "Unable to open primary script: /sobey/www/channel-pub-api/api/web/index.php (No such file or directory)" while reading response header from upstream, client: 192.168.8.4, server: wmpublish.mp.sztv.com.cn, request: "GET /v1/channel-app-sources?filter[source_uuid]=27ba60d97ebc92f093502e4e12a37e7f&filter[status]=1&group_id=spider&filter[source]=spider HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "wmpublish.mp.sztv.com.cn:8026"
4. Run the command in the container, check the contents of the file, and find that the file exists, as shown in Figure 2

cat /sobey/www/channel-pub-api/api/web/index.php
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$config = yii\helpers\ArrayHelper::merge(
require __DIR__ . '/../../common/config/main.php',
require __DIR__ . '/../../common/config/main-local.php',
require __DIR__ . '/../config/main.php',
require __DIR__ . '/../config/main-local.php'
);
(new yii\web\Application($config))->run();
5. Execute the command: ps -u nginx, display all the processes under the nginx user, normal (development environment), should be as follows, as shown in Figure 3

ps -u nginx
PID TTY TIME CMD
477 ? 00:00:03 nginx
478 ? 00:00:05 nginx
479 ? 00:00:06 nginx
480 ? 00:00:04 nginx
4672 ? 00:00:00 php-fpm
4673 ? 00:00:00 php-fpm
4674 ? 00:00:00 php-fpm
4675 ? 00:00:00 php-fpm
4676 ? 00:00:00 php-fpm
4677 ? 00:00:00 php-fpm
4678 ? 00:00:00 php-fpm
4679 ? 00:00:00 php-fpm
4680 ? 00:00:00 php-fpm
4681 ? 00:00:00 php-fpm
4682 ? 00:00:00 php-fpm
4683 ? 00:00:00 php-fpm
4684 ? 00:00:00 php-fpm
4685 ? 00:00:00 php-fpm
4686 ? 00:00:00 php-fpm
4687 ? 00:00:00 php-fpm
4688 ? 00:00:00 php-fpm
4689 ? 00:00:00 php-fpm
4690 ? 00:00:00 php-fpm
4691 ? 00:00:00 php-fpm
6. Execute the command: ps -u nginx, display all the processes under the nginx user, and find that there is no php-fpm, as shown in Figure 4

ps -u nginx
PID TTY TIME CMD
463 ? 00:00:03 nginx
464 ? 00:00:05 nginx
465 ? 00:00:06 nginx
466 ? 00:00:04 nginx
7. The result of the final analysis is that the 9000 port has been occupied, resulting in the failure of php-fpm startup, the service that takes up port 9000 is stopped, and the php-fpm startup is successful.http://wmpublish.mp.sztv.com.cn:8026/v1/channel-app-sources?group_id=channel, respond to success
10000获取渠道的应用的来源列表成功<_links>http://wmpublish.mp.sztv.com.cn:8026/v1/channel-app-sources?group_id=channel&per-page=1&page=1<_meta>0011