PHP cli 无法使用本地路径(突然)
PHP cli not working with local path (suddenly)
几个小时后,控制台发出的 PHP 命令不接受本地路径。
例如在 laravel 我总是给出命令
php artisan
但从今晚开始我收到了以下回复
Status: 404 Not Found
Content-type: text/html; charset=UTF-8
No input file specified
但如果我尝试 php ./artisan,它会起作用。
服务器配置为WHM/cPanel,最奇怪的是什么都没有改变,昨天一切正常。
还有今天之前没有出现 Content-type 的行。
我的代表太低,无法投票或发表评论,但我现在遇到了这个问题,它似乎与你同时开始,我也使用 OVH 的专用服务器。
这里是几个小时前解决这个问题的 cPanel 团队的回复(以及解决方案)。
Thanks for your patience while I corrected this issue. This was
occurring due to an update in the ea-php-cli package which occurred
last night which conflicted with another case EA-4753 in which the
include_path was set incorrectly and the issue wasn't visible until
the update of ea-php-cli last night.
I've corrected your issue and have filed case EA-5106 so that our
developers ensure that EA4 doesn't allow for this to occur again. The
current workaround is to go to Home »Software »Editor INI MultiPHP,
select the version of php, scroll down to include_path and then added
.:/path/to/php/pear as opposed to .;/path/to/php/pear which has
corrected your issue.
编辑:我们还对包 ea-php-cli 进行了降级,因为在此版本中存在多个问题(例如,当您执行 'php artisan'(或任何其他 php file) 命令,它打印文件头),所以命令是:
====
yum downgrade ea-php-cli-0.0.6-3.3.1
====
并且可以锁定包,以防止它在 'stable' 版本发布之前自动更新。
====
yum versionlock add ea-php-cli
====
请注意,一旦发布了更正的版本,您将需要删除版本锁:
====
yum versionlock delete ea-php-cli
yum upgrade ea-php-cli
====
几个小时后,控制台发出的 PHP 命令不接受本地路径。 例如在 laravel 我总是给出命令
php artisan
但从今晚开始我收到了以下回复
Status: 404 Not Found
Content-type: text/html; charset=UTF-8
No input file specified
但如果我尝试 php ./artisan,它会起作用。
服务器配置为WHM/cPanel,最奇怪的是什么都没有改变,昨天一切正常。 还有今天之前没有出现 Content-type 的行。
我的代表太低,无法投票或发表评论,但我现在遇到了这个问题,它似乎与你同时开始,我也使用 OVH 的专用服务器。
这里是几个小时前解决这个问题的 cPanel 团队的回复(以及解决方案)。
Thanks for your patience while I corrected this issue. This was occurring due to an update in the ea-php-cli package which occurred last night which conflicted with another case EA-4753 in which the include_path was set incorrectly and the issue wasn't visible until the update of ea-php-cli last night.
I've corrected your issue and have filed case EA-5106 so that our developers ensure that EA4 doesn't allow for this to occur again. The current workaround is to go to Home »Software »Editor INI MultiPHP, select the version of php, scroll down to include_path and then added .:/path/to/php/pear as opposed to .;/path/to/php/pear which has corrected your issue.
编辑:我们还对包 ea-php-cli 进行了降级,因为在此版本中存在多个问题(例如,当您执行 'php artisan'(或任何其他 php file) 命令,它打印文件头),所以命令是:
====
yum downgrade ea-php-cli-0.0.6-3.3.1
====
并且可以锁定包,以防止它在 'stable' 版本发布之前自动更新。
====
yum versionlock add ea-php-cli
====
请注意,一旦发布了更正的版本,您将需要删除版本锁:
====
yum versionlock delete ea-php-cli
yum upgrade ea-php-cli
====