首页 > 解决方案 > 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
     )

标签: phpubuntulocalhostapache2

解决方案


推荐阅读