linux(Centos7) | I have two php.ini files -
i installed apm on linux (centos7) , think installed php again yum.
i have 2 php.ini file in paths below.
/usr/loacal/php/bin/php.ini (v5.3) /etc/php.ini (v5.4) php -v php 5.4.16 (cli) (built: jun 23 2015 21:17:27) /usr/local/php/bin/php -v php 5.3.27 (cli) (built: mar 3 2016 11:17:12)
i have 2 versions of php on 1 server right now.
rpm -qa | grep php php-pdo-5.4.16-36.el7_1.x86_64 php-tcpdf-6.2.11-1.el7.noarch php-tidy-5.4.16-3.el7.x86_64 php-xml-5.4.16-36.el7_1.x86_64 php-mbstring-5.4.16-36.el7_1.x86_64 php-cli-5.4.16-36.el7_1.x86_64 php-php-gettext-1.0.11-12.el7.noarch php-bcmath-5.4.16-36.el7_1.x86_64 php-gd-5.4.16-36.el7_1.x86_64 php-process-5.4.16-36.el7_1.x86_64 php-common-5.4.16-36.el7_1.x86_64 php-mysql-5.4.16-36.el7_1.x86_64 php-tcpdf-dejavu-sans-fonts-6.2.11-1.el7.noarch
i think files installed php(v5.4) can remove these?
can use yum command again below?
yum remove php
i'm afraid happens when that. please let me know how deal situation...
you might not need remove anything. can have many versions of php installed like. paths etc determine gets used. see php binary being used on command line use
which php
to see php.ini file being used binary use
php -i |grep "php.ini"
if have correct 1 you're fine. see files remove removing packages can query package file list ie
rpm -ql php-common-5.4.16-36.el7_1.x86_64
the common package should contain php.ini file gets installed. these commands should able work out if want remove anything.
note, if can, use more modern versions of php have installed. php 5.3 , 5.4 both considered old versions , no longer supported.
Comments
Post a Comment