We are in the process of migrating this forum. A new space will be available soon. We are sorry for the inconvenience.

Php Cli


Crzysiek1
09-05-2008, 01:58
Cytat Napisał encl
Crzysiek1, pomyśl zanim napiszesz...
Skoro yum install php-cli nic nie dało to php5-cli najprawdopodobniej pewnie też nic.
to nie jest takie oczywiste (tak jak numery wersji)
poza tym z reguly jest tak ze php to php4 a php5 to php5

---

nie za bardzo wyobrazam sobie co te skrypty maja robic?
wiec albo podajesz sciezki przez zmienna albo umieszczasz skrypty w katalogu nad domenami
bo sam open_basedir tak ma działać żeby nie grzebać phpem innym użytkownikom tudzież w systemie plików
(oczywiscie tak sobie zgaduje)

jergele
08-05-2008, 20:13
Okazuje się, ze CLI jest na swoim miejscu. Jednak skrytpy sprawdzajace to nie mogły "zajrzec" do katalogow wyzszych niz lokalne dla danej domeny.
Wina leżała w open_basedir...
Mozna to gdzies ustawic na stale?
W tej chwili zrobilem to recznie dla domeny, ale wszelkie zmainy ustawien, czy dodanie subdomeny pod PLESK'iem spowoduje, ze wszytsko wroci do starych ustawien.



...Ale to co ma działać i tak nie działa

jergele
06-05-2008, 23:13
Kod:
[root@ns****** ~]# yum update php
Setting up Update Process
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Could not find update match for php
No Packages marked for Update/Obsoletion


[root@ns****** ~]# yum upgrade php
Setting up Upgrade Process
Setting up repositories
Reading repository metadata in from local files
Could not find update match for php
No Packages marked for Update/Obsoletion

encl
06-05-2008, 21:57
Crzysiek1, pomyśl zanim napiszesz...
Skoro yum install php-cli nic nie dało to php5-cli najprawdopodobniej pewnie też nic.

jergele, dziwnie numerki wersji php masz zainstalowane. Prawidłowo powinny być wszystkie takie same.

yum update php
yum upgrade php

jergele
06-05-2008, 16:08
Kod:
[root@ns****** ~]# rpm -qa |grep php
php51-fastcgi-5.1.4-20060823.fc4
php51-pdo-5.1.4-20060823.fc4
php-gd-5.2.5-4.fc4.art
php-imap-5.2.5-4.fc4.art
psa-appvault-phpbb-2.0.22-82019
psa-appvault-phpads-2.0.8-82031
php5-ioncube-3.0-fc4.06102523
php51-mysql-5.1.4-20060823.fc4
php51-xsl-5.1.4-20060823.fc4
psa-appvault-phpsurveyor-0.98-82036
psa-appvault-phpmyfamily-1.4.1-82027
php-5.0.4-10.5
php51-curl-5.1.4-20060823.fc4
php51-gd-5.1.4-20060823.fc4
php51-mysqli-5.1.4-20060823.fc4
php51-posix-5.1.4-20060823.fc4
php51-zlib-5.1.4-20060823.fc4
php-mbstring-5.2.5-4.fc4.art
php-pdo-5.2.5-4.fc4.art
psa-appvault-phpwebsite-0.10.2-82027
psa-appvault-phpbugtracker-1.19-82030
psa-appvault-phpdig-1.85-82023
php-cli-5.2.5-4.fc4.art
php51-dom-5.1.4-20060823.fc4
php51-iconv-5.1.4-20060823.fc4
php51-openssl-5.1.4-20060823.fc4
php51-sockets-5.1.4-20060823.fc4
php-xml-5.2.5-4.fc4.art
php-mysql-5.2.5-4.fc4.art
psa-appvault-phpbook-1.50-82026
php51-5.1.4-20060823.fc4
php51-mbstring-5.1.4-20060823.fc4
php51-sqlite-5.1.4-20060823.fc4
php-5.2.5-4.fc4.art
psa-php5-configurator-1.3.0-fc4.build83071218.20
php-common-5.2.5-4.fc4.art
php5-ioncube-loader-3.0-06101212
php51-ftp-5.1.4-20060823.fc4
php51-pdo_mysql-5.1.4-20060823.fc4
php-pear-1.5.0-5.fc4.art
psa-appvault-phpwiki-1.3.11-82037
psa-appvault-phpmoney-1.3-82036


Kod:
[root@ns****** ~]# yum install php5-cli
Setting up Install Process
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: php5-cli
Nothing to do

Crzysiek1
06-05-2008, 13:44
a może: yum install php5-cli

encl
06-05-2008, 09:22
Na pw zarzuć mi linka do swojego info php.

Pokaż:
rpm -qa |grep php

jergele
06-05-2008, 05:08
Kod:
[root@ns****** ~]# yum install php-cli
Setting up Install Process
Setting up repositories
plesk                     100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
atomic                    100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do

encl
05-05-2008, 23:45
Może najpierw spróbuj:
yum install php-cli

jergele
05-05-2008, 18:44
Linux ns******.ovh.net 2.6.24.5-grsec-xxxx-grs-ipv6-32 #1 SMP Wed Apr 23 22:48:22 CEST 2008 i686
Webserver Apache/2.0.54 (Fedora)
Php version 5.2.5
MySQL version 5.0.51


./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json'

encl
05-05-2008, 14:52
Jaki masz system?

jergele
05-05-2008, 09:30
Mam skrypt, ktory wymaga PHP CLI.
Uaktualniłem php do 5.2.5 (znalazlem calkiem fajny sposob na to - ktoś chce?), gdzie podobno cli jest domyślne... ale testowy skrypt nadal nie widzi "cli".

Co robić? HELP!