Answer the question
In order to leave comments, you need to log in
How to find out what version of php is running in the console, x32 or x64?
Both versions of
php-cli.i386 5.3.8-2.el5.art installed
php-cli.x86_64 5.3.8-2.el5.art installed
php -v and php -vv show nothing.
Answer the question
In order to leave comments, you need to log in
See what exactly is run by the php command with which php. There's probably some kind of link to another link. Follow to the end of the path, at the end there will be a binary on which you need to set file.
For example in debian it looks like this:
$ which php
/usr/bin/php
$ ls -l /usr/bin/php
lrwxrwxrwx 1 root root 21 Jul 9 16:21 /usr/bin/php -> /etc/alternatives/php
$ ls -l /etc/alternatives/php
lrwxrwxrwx 1 root root 13 Jul 9 16:21 /etc/alternatives/php -> /usr/bin/php5
$ file /usr/bin/php5
/usr/bin/php5: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x39e3f1f9c4293920472b0ab8cc15cc3b1aa88f30, stripped
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question