Click here to Skip to main content
15,915,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I installed php with yum , but it shows nothing when i use the "php -v " to check the version of php . and so is the "php -m".
PHP
[root@test2 ~]# rpm -qa|grep php
php-cli-5.3.3-46.el6_6.x86_64
php-common-5.3.3-46.el6_6.x86_64
php-5.3.3-46.el6_6.x86_64
php-devel-5.3.3-46.el6_6.x86_64

PHP
[root@test2 ~]# php -v

who can tell me what is wrong with it ? thanks.
Posted
Updated 22-Sep-15 20:30pm
v2
Comments
Jochen Arndt 23-Sep-15 2:54am    
What do you mean by nothing? Just a new prompt without any error message?

Is the binary present and reachable ('which php' if which is available on your system)?
It is usually located in /usr/bin. So try 'ls -l /usr/bin/php'. With version 5.3.3 (that is from 2010), I guess that the binary must be around 4 MB.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900