Re: PEAR Installer Problems
| From: | Gregory Beaver | Date: | Thu, 01 Feb 2007 22:32:11 +0000 |
| Subject: | Re: PEAR Installer Problems | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26464@lists.php.net to get a copy of this message | ||
Michael Heuberger wrote:
> Hello guys
>
> I experince some strange problems with the PEAR Installer on a virtual
> hosted server without root access. Some months ago before PEAR 1.5 it
> worked...
>
> First of all I let the administrator chmod all the relevant directories
> with chmod 777 to avoid permission problems :)
>
> Then the main problem comes when calling upgrade-all, for example the
> package DB from Version 1.7.7 to 1.7.8:
>
> Problem with documentation and test files
> file /home/httpd/vhosts/deafzone.ch/private/var/tmp/DB/doc/IDEAS doesn't
> exist
>
> -> I found out, that the Archive-Tar in the temp directory is correct
> but the documentation files were not uncompressed.
> -> The installer so rollbackes everything and nothing was upgraded.
> -> The installer does not clean up, this means, there are lots of bak
> files in my custom PEAR directory
>
> I hope, someone can help me, so I can call upgrade all without problems.
> And maybye there is a hidden option to disable downloading docs and tests?
I can't reproduce this one locally, perhaps you could check to make sure
that /home/httpd/vhosts/deaf..../DB/doc is actually created on extraction?
Running the PEAR Installer through a web-based installer has always been
sketchy due to file permissions issues inherent when you're using a web
browser.
A potential solution might be to ask the administrator if you can
install a cron job that occasionally checks if there are updates, and
then upgrades the packages using the command-line installer? This would
make things far more likely to succeed.
I assume when you say "without root access" you mean no shell access.
If you *do* have access to the shell, there is no reason to avoid the
CLI installer, just create a local installation and put that in your
include_path for .htaccess.
pear config-create /home/httpd/vhosts/deafzone.ch/PEAR
/home/httpd/vhosts/deafzone.ch/.pearrc
Greg