Links to know aboutMusic The Chiara String Quartet Chiara Quartet (MySpace) Greenwood Music Camp UNL School of Music PHP PEAR Installer Manifesto phpDocumentor PEAR phar docblock PHP_Parser PHP_Parser_DocblockParser PHP_ParserGenerator PHP_LexerGenerator PEAR_PackageFileManager PHP_Archive Games_Chess Blogs Joshua Eichorn Paul M. Jones Davey Shafik Popular EntriesSetting up your own PEAR channel with Chiara_PEAR_Server - the official way
(26) Do you develop a website? It is infinitely better to synchronize live and development sites using the PEAR Installer(25) doing the PEAR thing(19) Using PEAR 1.4.0 to install PEAR packages on a remote host(19) phpDocumentor and __get/__set/__call - give us your ideas (RFC)(17) CategoriesPowered by |
Wednesday, March 29. 2006Setting up your own PEAR channel with Chiara_PEAR_Server - the official wayRelated Links:Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
If somebody is interested in an easy way to upload new packages to a channel, you might be interested in the Gnope_UploadManager package.
It basically lists files uploaded via a simple post form and allows the package creation in the channel directly from the package.xml in the package - incl. user additon. http://gnope.org/pearfront/index.php?package=Gnope_UploadManager It also gives a good idea of how to use the pear channel internals from external applications.
This is not the official way to create a channel server but yours and only yours. Wheter you consider Chiara better or not is irrelevant, Your Chiara_pear_server is only an alternative server, not the official server. Period.
Pierre,
I am happy to change to change the title to include Chiara_PEAR_Server, but I'm afraid your comment is very inaccurate - of all the channels listed on pear.php.net's channel list, only 1 is running something other than PEAR_Server or Chiara_PEAR_Server, and it is a custom solution. Perhaps you would like to be more explicit about what the "official" channel server is if it is not the one being used on every channel?
My comment is accurate. It is not a matter of usages but facts. Yes Chiara is certainly more used that pearweb given the packaging and marketing, no wonder here. But it is not the official one, this is an alternative. Alternatives are good though.
pearweb is not the official channel server because it is ridiculously difficult to set up, and in fact is not even packageable - who wants to instal all the PEAR-related news items and use the PEAR logo, etc. in their channel? No one. pearweb is for pear.php.net, and is in fact not used for any channel because it can't work as a channel server. Demian Turner spent several months trying to get it to work for phpkitchen, and was unsuccessful.
I guess we can count on your -1 when this is proposed as PEAR_Server at pear.php.net...
Greg,
It's nice to have official documentation, from the author, of how to get started with the Chiara_PEAR_Server. This is great information for people who want to fully understand the ease and usefulness of PEAR's installer and the breadth of capabilities it offers. Without the Chiara_PEAR_Server we wouldn't have the 200 and growing PEAR installable packages available to PHP users. I have high hopes, and two questions. How about bug tracking, and phpdoc additions to the Chiara_PEAR_Server..? I'd be happy to lend a hand, just let me know. Great work, as always... thank you. -Brett
Thanks. In regards to your two questions, a bug tracker is in the works. I am unhappy with the captcha mechanism, but once this is worked out, it will be released. As for auto-phpdoc generation, there are no current plans or even brainstorming on this possibility on the server-side. I am looking at the possibility of making it easier for people packaging applications to automatically generate phpdocs using a simple pear installer command and then the generated docs can be uploaded, but this is vaporware at the moment.
Help is definitely appreciated, just send an email to greg at this web site (minus hte extra "greg.")
Well I see Pierre's point, but I think with the updated title all is well.
Aside from that .. anyone who wants to make this package more portable to other RDBMS should contact me so we can work on making things MDB2_Schema based. IIRC Jan once started on this too .. ?
Greg,
Thanks for useful documentation. I want to create my own PEAR channel server for my project on sf (osccms) and now I'm waiting for an auth key of .geek PHP5 hosting but i don't know really i can install my own PEAR channel server on .geek? -Armen
Hi Greg again,
I have one more question! can i setting up my own channel without shell access! in this documention you saied: "shell access to your web site - this is essential" may be with PEAR_RemoteInstaller? -Armen
> The file you want to use is the User Configuration File,
> "/home/foobar/.pearrc" in this case. After having bashed my head against the notorious "unknown channel yourchannel.com" error for half of a day i tried System Configuration File instead and....it worked
It may be that when you ran the post-installation script, you ran it as root and the system config was used instead of the user config (i.e. the user config did not exist). Otherwise you would have had write errors with the attempt to access the system registry.
However, this may be helpful information for others, so I'll think about wording and add a note.
>>It may be that when you ran the post-installation script, you ran it as root
Exactly
One more weird issue, on my linux box the following command throws errors and doesn't display any packages while packages are there for sure:
CODE: <br />
$ pear list-all --channel=channel.local<br />
Notice: Undefined index: _content in PEAR/REST/11.php on line 64<br />
<br />
Warning: Invalid argument supplied for foreach() in PEAR/Frontend/CLI.php on line 638<br />
ALL PACKAGES:<br />
=============<br />
PACKAGE LATEST LOCAL<br /> At the same time this command works almost fine(except one notice) on my windows box: CODE: <br />
c:\>pear list-all --channel=channel.local<br />
<br />
Notice: Undefined index: _content in PEAR\REST\11.php on line 64<br />
ALL PACKAGES:<br />
=============<br />
PACKAGE LATEST LOCAL<br />
channel/tests 0.0.1alpha This is a test package<br /> Here's what pear -V shows on each dev.box: CODE: <br />
$ pear -V<br />
PEAR Version: 1.4.9<br />
PHP Version: 5.1.2-pl1-gentoo<br />
Zend Engine Version: 2.1.0<br />
Running on: Linux craft 2.6.14-gentoo-r4<br /> CODE: <br />
c:\>pear -V<br />
PEAR Version: 1.4.9<br />
PHP Version: 5.1.1<br />
Zend Engine Version: 2.1.0<br />
Running on: Windows NT 5.1 build 2600<br /> The only difference is the PHP's version minor number(PHP-5.1.2 on the linux box, PHP-5.1.1 on windows) - can it be the root of a problem?
Here's what i did to fix this error, just removed the following line
'http://channel.local/Chiara_PEAR_Server_REST/' from channel.xml and executed "pear channel-update channel.local" command. I guess there's some bug related to REST1.1 stuff...
I guess tags are stripped from blog comments not escaped. The removed line actually was:
<baseurl type="REST1.1"> http://channel.craft.bit/Chiara_PEAR_Server_REST/ </baseurl>
Ran into an issue the other day with an old mysql version. It couldn't index the 255 varchar channel field when UTF was the charset used.
"Specified key was too long; max key length is 1000 bytes" Changing all the references for the PRIMARY KEY(channel...) to PRIMARY KEY(channel(100)...) as advised on this page http://bugs.mysql.com/bug.php?id=6604 allows the pear run-scripts chiara/Chiara_PEAR_Server to complete. Not necessarily a bug, but a helpful note in case anyone else runs into that issue.
I just finished installing the pear server for pear.horde.org, and in doing so, had to install a number of php extension. Most (if not all) of these extensions are included by default in most standard installations. But, if you are trying to run a minimalistic php server, these are the extensions I needed to install, from installing PEAR, all the way to having a working channel server:
zlib, pcre-regex, xml, tokenizer, mysql (or mysqli), sessions, and a memlimit of over 8M (I set mine at 128M, and all was well) Keep in mind that I didn't to the installing of these extensions, so the names might not be exact, but you should get the idea. Hope that helps someone, it sure would have helped me --Ben
This is very useful, I will add dependencies to package.xml for the next release (or someone will, I will open a bug report
Hi Greg,
I finally install my pear channel without shell access on raidman.dotgeek.org but I got this error in Admin area when I try "My Account" link! Notice: Array to string conversion in /home/raidman/channel_stuff/share/pear/DB/DataObject.php on line 2449 Notice: Array to string conversion in /home/raidman/channel_stuff/share/pear/Chiara/PEAR/Server/Exception.php on line 13 Error Maintainer "Array" does not exist, cannot update I have no idea why this happend. If you can please help me. Regards, Armen
I cannot get the following to work?
pear install chiara/Chiara_PEAR_Server#pearweb I says: Skipping package "chiara/Chiara_PEAR_Server", already installed as version 0.18.7. No valid packages found upgrade failed
Hi Lars,
PEAR 1.5.0 or newer support this syntax when the package is already installed, earlier versions had a bug that prevented it from working. What PEAR version do you have installed?
Well, you are right on the money. Even though I updated my PEAR on my Dreamhost account, the commandline is still running 1.4.1. So that probably explains it all. I have contacted Dreamhost to have them solve the problem.
Your new design is a great improvement. Have you noticed that your CAPTCHA shows twice?
I've tried this installation guide on Ubuntu Feisty.
There were a few bumps in the road before I could this to work. 1. I had php-pear installed, which caused the wrong pear binary to be used. The file also existed in /usr/bin/pear. I had to remove this and create a symbolic link to the newly installed version. 2. pear upgrade Chiara/Chiara_PEAR_Server didn't work for me. I had to use: pear install --alldeps Chiara/Chiara_PEAR_Server 3. I already created the database and the database user. This confused the post install script, causing it to NOT load pearserver.sql. 4. As my php.ini file is owned by root, the installer couldn't change my php.ini file, so I had to manually change that. I've hacked together a bash script from my bash history that does all this automatically for you. This might be handy for people looking for a quick way to try the PEAR_Server.
Hi Greg
What's happening to pear.crtx.org ? Who is responsible for this channel ? Since Xmas, it displays an apache2 default page (It works!), but the channel is no more working
A few things -
#1. Yuri, thanks for that workaround on the installer. #2. I was never prompted for an admin login, only a password. Trying to log in using the "real name" or email address with the password I supplied doesn't work. Is there a default admin account I'm not seeing? |
Links in this article
PEAR Installer ManifestoCalendar
QuicksearchMy Latest ReleasesTop Exitspear.php.net (292)
pecl.php.net (82) www.php.net (80) pear.chiaraquartet.net (66) news.php.net (57) Blog Administration |
|||||||||||||||||||||||||||||||||||||||||||||||||