Browsing Category: "PEAR"

PEAR, MDB2, MIME/Type on Verio Server

PEAR, Linux, Web Development, PHP November 16th, 2007

I have just expend a whole morning trying to figure out why the MDB2 and the MIME/Type libraries wasn’t working on the domain under Verio server even knowing that all of them were installed.

Every single time I was getting a different path error in one of the libraries and forcing the path on the files wasn’t working either.

After some research I have found out that the PEAR installation did not carries every library that you need to work with MIME and MDB2, and the php.ini does not have the include_path set.

Making the story short.

Change php.ini to set the include path. This should be, for the Linux server, something close to this:

include_path = ‘/usr/local/php5/lib/php/’;

Save the file and verify the configuration for PEAR. It should be the same as the include_path.

For that type pear config-show and it will bring a list for the pear configuration.

Verify the list of installed libraries for pear. For that type pear list.

Check if all your libraries are there including the System_Command necessary for the MIME/Type.

Install all necessary libraries.

Restart apache and you are good to go.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
blank