Pear PHP

Hello all

Few days ago I had a lot of pbm with php. So i’ve removed all my php-* rpm and resintalled them from the iworx repository

Before I’m sure I had PEAR installed with all standard packages. Tey were located at /usr/share/pear/

Now It don’t have any package installed.

I have reinstalled the php-pear rpm but I only have Pear programm installed no packages at all

Do you know how to reinstall all these Packages ?

What process did install them ? the iworx install ? php iworx install ?

Indeed I’d like to share with my customer all “default” or “standard” pear packages (as db etc)

Thanks for your help

Pascal

Also could an interworx staff member give me the list of php-* rpm installed by default.

Indeed, I was sure (nearly sure) that There wasn’t php-imap rpm installed by default. But I have a customer who told me that before I reinstall php he had imap_open() that worked and now he has not. I did a reinstall of the php-imap rpm and now everything is fine but I’d like to be sure to not forget others php-* rpm

I have thse rpm installed

php-devel-4.3.11-100.cos3x.iworx
php-4.3.11-100.cos3x.iworx
php-mysql-4.3.11-100.cos3x.iworx
php-imap-4.3.11-100.cos3x.iworx
php-pear-4.3.11-100.cos3x.iworx

Thanks a ton

Pascal

This is all we do on install Pascal:


yum install        \
       php          \
       php-mysql \
       php-pear

Chris

erfff ???

So why imap_open() used to work ?

And about PEAR and all packages that were installed and are not yet ? any idea ?

php-pear only install the PEAR program that managed packages ?

It’s really strange indeed, I just removed rpm and resintalled rpm but I lost some things (pear, imap, etc)

Any suggestion on why I’ve lost some functionalities and how to add the “default” packages are welcome (maybe sago did an install of pear by defalt ? )

Thanks

It’s possible an older installer put more on, or that sago added more after the fact. I’d simply readd all or most of the php-* RPMS available and you should be fine.

Chris

Do you know how to add the “default” PEAR packages ?

They are all in the php-pear package Pascal:


[root@givitup givroot]# rpm -q --filesbypkg php-pear
php-pear                  /usr/bin/pear
php-pear                  /usr/share/pear
php-pear                  /usr/share/pear/.filemap
php-pear                  /usr/share/pear/.lock
php-pear                  /usr/share/pear/.registry
php-pear                  /usr/share/pear/.registry/archive_tar.reg
php-pear                  /usr/share/pear/.registry/console_getopt.reg
php-pear                  /usr/share/pear/.registry/db.reg
php-pear                  /usr/share/pear/.registry/http.reg
php-pear                  /usr/share/pear/.registry/mail.reg
php-pear                  /usr/share/pear/.registry/net_smtp.reg
php-pear                  /usr/share/pear/.registry/net_socket.reg
php-pear                  /usr/share/pear/.registry/pear.reg
php-pear                  /usr/share/pear/.registry/xml_parser.reg
php-pear                  /usr/share/pear/.registry/xml_rpc.reg
php-pear                  /usr/share/pear/Archive
php-pear                  /usr/share/pear/Archive/Tar.php
php-pear                  /usr/share/pear/Console
php-pear                  /usr/share/pear/Console/Getopt.php
php-pear                  /usr/share/pear/DB
php-pear                  /usr/share/pear/DB.php
php-pear                  /usr/share/pear/DB/common.php
php-pear                  /usr/share/pear/DB/dbase.php
php-pear                  /usr/share/pear/DB/fbsql.php
php-pear                  /usr/share/pear/DB/ibase.php
php-pear                  /usr/share/pear/DB/ifx.php
php-pear                  /usr/share/pear/DB/msql.php
php-pear                  /usr/share/pear/DB/mssql.php
php-pear                  /usr/share/pear/DB/mysql.php
php-pear                  /usr/share/pear/DB/mysqli.php
php-pear                  /usr/share/pear/DB/oci8.php
php-pear                  /usr/share/pear/DB/odbc.php
php-pear                  /usr/share/pear/DB/pgsql.php
php-pear                  /usr/share/pear/DB/sqlite.php

... etc

Chris

I don’t have them /DB etc… only the first one. I have installed php-ear from interworx

here it is what I have

Archive data HTML OS pearcmd.php System.php XML
Console doc Net PEAR PEAR.php test

I’ll try to uninstall pear and reinstall it

Pascal

same I have deleted the pear rpm and reinstalled it but it still don’t have all apckages like /DB/

And I don’t have the same contents than you

[root@padawan i386]# rpm -q --filesbypkg php-pear
php-pear /usr/bin/pear
php-pear /usr/share/pear
php-pear /usr/share/pear/.filemap
php-pear /usr/share/pear/.lock
php-pear /usr/share/pear/.registry
php-pear /usr/share/pear/.registry/archive_tar.reg
php-pear /usr/share/pear/.registry/console_getopt.reg
php-pear /usr/share/pear/.registry/html_template_it.reg
php-pear /usr/share/pear/.registry/net_useragent_detect.reg
php-pear /usr/share/pear/.registry/pear.reg
php-pear /usr/share/pear/.registry/xml_rpc.reg
php-pear /usr/share/pear/Archive
php-pear /usr/share/pear/Archive/Tar.php
php-pear /usr/share/pear/Console
php-pear /usr/share/pear/Console/Getopt.php
php-pear /usr/share/pear/HTML
php-pear /usr/share/pear/HTML/Template
php-pear /usr/share/pear/HTML/Template/IT.php
php-pear /usr/share/pear/HTML/Template/ITX.php
php-pear /usr/share/pear/HTML/Template/IT_Error.php
php-pear /usr/share/pear/Net
php-pear /usr/share/pear/Net/UserAgent
php-pear /usr/share/pear/Net/UserAgent/Detect.php
php-pear /usr/share/pear/OS
php-pear /usr/share/pear/OS/Guess.php
php-pear /usr/share/pear/PEAR
php-pear /usr/share/pear/PEAR.php
php-pear /usr/share/pear/PEAR/Autoloader.php
php-pear /usr/share/pear/PEAR/Builder.php
php-pear /usr/share/pear/PEAR/Command
php-pear /usr/share/pear/PEAR/Command.php
php-pear /usr/share/pear/PEAR/Command/Auth.php
php-pear /usr/share/pear/PEAR/Command/Build.php
php-pear /usr/share/pear/PEAR/Command/Common.php
php-pear /usr/share/pear/PEAR/Command/Config.php
php-pear /usr/share/pear/PEAR/Command/Install.php
php-pear /usr/share/pear/PEAR/Command/Mirror.php
php-pear /usr/share/pear/PEAR/Command/Package.php
php-pear /usr/share/pear/PEAR/Command/Registry.php
php-pear /usr/share/pear/PEAR/Command/Remote.php
php-pear /usr/share/pear/PEAR/Common.php
php-pear /usr/share/pear/PEAR/Config.php
php-pear /usr/share/pear/PEAR/Dependency.php
php-pear /usr/share/pear/PEAR/Downloader.php
php-pear /usr/share/pear/PEAR/ErrorStack.php
php-pear /usr/share/pear/PEAR/Exception.php
php-pear /usr/share/pear/PEAR/Frontend
php-pear /usr/share/pear/PEAR/Frontend/CLI.php
php-pear /usr/share/pear/PEAR/Installer.php
php-pear /usr/share/pear/PEAR/Packager.php
php-pear /usr/share/pear/PEAR/Registry.php
php-pear /usr/share/pear/PEAR/Remote.php
php-pear /usr/share/pear/PEAR/RunTest.php
php-pear /usr/share/pear/System.php
php-pear /usr/share/pear/XML
php-pear /usr/share/pear/XML/RPC
php-pear /usr/share/pear/XML/RPC.php
php-pear /usr/share/pear/XML/RPC/Dump.php
php-pear /usr/share/pear/XML/RPC/Server.php
php-pear /usr/share/pear/data
php-pear /usr/share/pear/data/PEAR
php-pear /usr/share/pear/data/PEAR/package.dtd
php-pear /usr/share/pear/data/PEAR/template.spec
php-pear /usr/share/pear/doc
php-pear /usr/share/pear/doc/Archive_Tar
php-pear /usr/share/pear/doc/Archive_Tar/docs
php-pear /usr/share/pear/doc/Archive_Tar/docs/Archive_Tar.txt
php-pear /usr/share/pear/doc/HTML_Template_IT
php-pear /usr/share/pear/doc/HTML_Template_IT/examples
php-pear /usr/share/pear/doc/HTML_Template_IT/examples/sample_it.php
php-pear /usr/share/pear/doc/HTML_Template_IT/examples/templates
php-pear /usr/share/pear/doc/HTML_Template_IT/examples/templates/main.tpl.htm
php-pear /usr/share/pear/pearcmd.php
php-pear /usr/share/pear/test
php-pear /usr/share/pear/test/HTML_Template_IT
php-pear /usr/share/pear/test/HTML_Template_IT/tests
php-pear /usr/share/pear/test/HTML_Template_IT/tests/Console_TestListener.php
php-pear /usr/share/pear/test/HTML_Template_IT/tests/ITX_api_testcase.php
php-pear /usr/share/pear/test/HTML_Template_IT/tests/ITX_usage_testcase.php
php-pear /usr/share/pear/test/HTML_Template_IT/tests/IT_api_testcase.php
php-pear /usr/share/pear/test/HTML_Template_IT/tests/IT_usage_testcase.php
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/__include.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/addblock.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/blockiteration.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/blocks.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/globals.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/include.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/loadtemplatefile.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/templates/replaceblock.html
php-pear /usr/share/pear/test/HTML_Template_IT/tests/test.php
php-pear /usr/share/pear/test/XML_RPC
php-pear /usr/share/pear/test/XML_RPC/tests
php-pear /usr/share/pear/test/XML_RPC/tests/protoport.php
php-pear /usr/share/pear/test/XML_RPC/tests/test_Dump.php

The package is php-pear-4.3.11-100.cos3x.iworx.i386.rpm

Pascal

It looks like the problem is PHP itself Pascal. The 4.3.11 sources don’t have the DB (and other) PEAR packages in them. 4.3.10 did and I’m not sure why the PHP folks changed this.

Chris

Yes.

it’s why I’d really like to go back 4.3.10
As I already told you since I m under 4.3.11 I have a high cpu usage and a much more high load average. It begins the day I updated 4.3.10 to 4.3.11

Did you see my httpd error in the other posts ?

Feel free to downgrade Pascal. PHP 4.3.11 was actually a performance release, which fixed some issues with 4.3.10 but if you’re having problems by all means downgrade. The RPMs are on our updates server.

I did see your httpd post. All of the errors are harmless and most are present on the default configure/make/make install of a clean apache. If you’d like to get rid of them it will take some googling but they should all be "fix"able.

The only one pertaining to iworx-cp is the fileman one and I’ll have it checked out.

Chris

I didn’"t find the 4.3.10 rpm on updates.interworx.info

About the httpd error, if for you there sin’t a pbm whith them, it’s not a pbm for me. It’s only that by doing some google researched I’ve read that there is some pbm with the mod_ssl that give the same errors that I have and cause a high cpu usage et high load average. But if it is not for you, then it 's ok for me :slight_smile:

As usual, thanks for your help

Pascal

If you’re using CentOS they are in:

http://updates.interworx.info/iworx/RPMS/cos3x/legacy/i386/

Adjust the ‘cos3x’ for the other platforms if you’re not using CentOS.

Chris