php - Ubuntu CLI,PHP 和 php.ini 的新路径
问题描述
目前我的 Ubuntu PHP CLI 正在使用:/opt/lampp/bin/php
和 /opt/lampp/etc/php.ini
.
我打算删除 LAMP 并继续使用 /etc/php/7.2/apache2/ 。
我应该更改(以及如何更改)PHP CLI 以使用:/usr/bin/php7.2
和/etc/php/7.2/cli/php.ini
?
ribe@ideapad:~$ php --ini
Xdebug requires Zend Engine API version 320151012.
The Zend Engine API version 320170718 which is installed, is newer.
Contact Derick Rethans at https://xdebug.org/docs/faq#api for a later version of Xdebug.
Configuration File (php.ini) Path: /opt/lampp/etc
Loaded Configuration File: /opt/lampp/etc/php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
ribe@ideapad:~$ which php
/usr/local/bin/php
(this is symlink to lamp php:
ribe@ideapad:/usr/local/bin$ readlink -e php
/opt/lampp/bin/php-7.2.6
)
解决方案
推荐阅读
- angularjs - 找不到 `package.json` 文件。确保您在 Node.js 项目中运行该命令
- sql-server - MSSQL - 在所有存储过程中查找和替换文本
- html - Node.js 和 Mustache.js:如何将服务器端渲染与客户端 mustache 模板分开?
- r - 精确计算多次出现
- java - Dockerfile & 安装 -> 包 'openjdk-8-jre-headless' 没有安装候选
- java - Thymeleaf 形式将除一个输入之外的所有输入传递给 java 控制器
- angular - 如何删除添加到 img src 的“不安全”
- java - JAVA货币兑换程序
- java - 如何使用服务请求作为输入参数进行 Spring REST 模板调用
- javascript - 看似随机的加权值以 0-100 的比例显示