Connecting Tech Pros Worldwide Forums | Help | Site Map

Pear CLI install on shared host

webguynow
Guest
 
Posts: n/a
#1: Nov 30 '05
I've installed PEAR in my local area, on my shared host, under htdocs
but I'm anticipating a number of issues.

I'm forcing use of PHP5 with an .htaccess file, but by default the
host runs PHP4
That could mean that pear is installed under the php4/ area, but not
php5 ?

go-pear prompted me to install a number of packages, including DB,
which my webhost already has made available. If I do install DB using
go-pear, which DB will take precedence?


go-pear and pear have worked well on my local machine,
but after using browser to run go-pear on my webhost, and also
WebInstaller.php I got:

Fatal error: Class 'PEAR_Frontend_CLI' not found in
/usr/local/php5/PEAR/Command.php on line 144

I have FTP access, but not shell access.

I've read webpages, from the following links, that seemed helpful:
http://www.phpexamples.net/component...on.shared.html
***
http://www.phpkitchen.com/index.php?...Installer.html

I also note pear.conf in my htdocs ( where I ran go-pear.php from
)

I also confer with my host, hopefully they don't have any opposition,
to me installing locally PEAR Pkgs that they do not supply.

Searching for solutions, any suggestions maybe helpful. Thanks


webguynow
Guest
 
Posts: n/a
#2: Dec 1 '05

re: Pear CLI install on shared host


Its hard for me to believe that 1000's of other developers have not had
this problem. And I was hoping for some support on this.

At this point, I have 2 options
-Continue to pursue a local installation on my WebHost's shared Server
-Write my own Template module, which I've seen done both in PHP and
Java

a good example, I just saw yesterday at:
http://codewalkers.com/tutorials/58/1.html
"Writing a Template System in PHP"

I'll review and my next post will be along these lines:
"Smarty vs. MyOwnTemplate"

Closed Thread