Re: PEAR Installer Problems
| From: | Michael Heuberger | Date: | Thu, 08 Feb 2007 09:52:39 +0000 |
| Subject: | Re: PEAR Installer Problems | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26473@lists.php.net to get a copy of this message | ||
Hello Gregory
Thank you very much. Yes web-based installers are sketchy.
The idea of a cron job or .pearrc is very good but I really need a working web-based installer because of other technical reasons.
I have been spidering through lots of discussions and found a solution:
1. delete whole registry directory /.registry
2. Call list-all to rebuild the registry
Then the upgrade-all command works!
Strange. Do you have any suggestions how one can rebuild the registry within a single command?
Well, there is a problem, still remainig:
Some packages like Archive_Tar or XML_RPC appear in a category names "Local", why? All other packages appear in their correct package category. And yes, when calling list-all Archive_Tar does not appear.
I am curious about your help, best greetings from Switzerland
Mick
~~
Gregory Beaver wrote:
Michael Heuberger wrote:-- Dipl. Inf. Ing. Michael Heuberger Dammstrasse 2 4434 Hölstein (Switzerland) Fax .................... +41 61 301 99 85 Mobile (SMS only) ...... +41 79 514 15 07 Email .................. mick@deafzone.chHello 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