You are not logged in.

#1 2011-05-31 09:07:58

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

[solved] how do i update pear , and access php command line

how would i access the php command line so i could update pear, and how would i update pear?  i have tried numerous things, i must be missing something.

edit; this is what im up against

# php -v
bash: php: command not found

and im trying to get to the cli so i can update pear that way.  im guessing its not compiled in my version.  should that show up in phpinfo()? because i dont see cli in there

Last edited by wolfdogg (2011-06-02 07:52:33)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#2 2011-06-02 06:32:27

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: [solved] how do i update pear , and access php command line

i guess that cli isnt compiled in xampp, which is what i installed, so thats probably why i cant run php-cli.  so i found on the bottom of 
http://pear.php.net/manual/en/installation.getting.php to install it via web, which i wasnt sure was a good idea because i didnt want to mess with permissions,
however, for the newbs out there,  i just did it this way,
i decided to chow my whole /htdocs  to my personal user, then create go-pear.php per http://pear.php.net/go-pear and copy to root of htdocs, then run http://localhost/go-pear.php to just do a web update. 

if you cant access php from command line, and have checked for the executable and cant find it, and or have ruled out permissions problems, then your package prob didnt come with it.  use the web installer in this case.

you might need to change the error reporting to eliminate deprecated messages if it looks like it will be a problem if your running php version 5.3.   

numerous errors, not the kind of server i want to run.
------------------------------------------------------

in the end, i dumped xampp, and installed a LAMP server manually , right off the bat, i had the php-cli, and pear command lines, and was able to do everything from there, without a hitch.  much nicer.

Last edited by wolfdogg (2011-06-03 22:49:34)


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

Board footer

Powered by FluxBB