PHP-CLI not found -
after tried hours find path php-cli, found it. proud gone again.
still got following error:
the following requirements not met. result video uploads have been disabled.
- unable locate path php-cli
i have tried different paths
- bin/php
- usr/local/lib
- usr/local/lib/php
- usr/local/bin/php (this 1 thought).
still getting same error above. whats happening? server not running in safe mode , exec()
enabled via php.ini file.
please me..
edit:
paul
q: have tried "fully qualified paths", e.g. "/bin/php" (not "bin/php")?
a: have tried both solutions, no result.
q: sure php-cli installed on system (it's typically seperate package apache php plug-in)? example: apt-get install php5-common libapache2-mod-php5 php5-cli.
a: tried in ssh of server, centos server didn't found comment
@peter:
if installed php through os package manager, path /usr/bin/php, appears 1 didn't try
i tried 1 now, didn't help, still same error:
edit2
@dev-null
you have found , what? knowing >is located not fix it, have changed >code or environment variable path make
a: input field need put path in. haven't changed code, because php version 5.3.17 (cli) installed on centos server. no need change code path, right?
edit
my php info, php 5.3.17 (cli) check image below..
edit
when rpm -q php-cli
php-cli not installed
, when want install no package php-cli available
. see image below.
edit
result of /bin/php -v
below.
centos ships php command-line interpreter in php-cli
package. first need verify whether it's installed or not:
rpm -q php-cli
if installed, can list files:
rpm -ql php-cli
... , filter out potential binaries:
rpm -ql php-cli | grep /bin/
you can further details in using rpm chapter of deployment guide.
if package not installed:
yum install php-cli
more info @ installing new software yum.
all answer assumes nobody broke package system installing software manually. if happened, there's no way tell changes made system.
edit #1: i've seen last edit php-cli , running. then, if want know path need type this:
which php
edit #2: seem have 4 binaries called php
in path. still think proper reliable way find php-cli
binary running rpm -ql php-cli
given php
finds on path i'm pretty sure it's located @ /bin/php
, can verify running:
/bin/php -v
run exact command—don't remove slashes or append -cli
.
if script, whatever looks like, cannot find it, it's either doing wrong or it's missing appropriate permissions.
Comments
Post a Comment