PHP5 and Pear


#1

Very briefly, I upgraded to php 5 in order to upgrade wikimedia to 1.7.
I understand that this breaks my Pear as I read here -

http://wiki.dreamhost.com/index.php/PEAR_breaks_on_upgrading_to_PHP5

so I downgraded my php to 4.2 so my site would work again.
Of course now my wiki doesn’t work so I need to re-upgrade to php 5.
As the above link states I need to add the following to my php configuration file -

set_include_path(
get_include_path() .
PATH_SEPARATOR . ‘/usr/local/lib/php’
);

My problem is - how do I do this, where do i find the configuration file?

I’ll be eternally thankful for any help anyone can give me.

The site I’m trying to run was sort of abandoned and as a regular user of said site I decided to take over the running as I didn’t want to see it go down the pan, as such I’m new to all this but its been a great learning experience (so far).


#2

Do you mean mediawiki? As far as I know that works okay out of the box with the installed PEAR using the DreamHost One click install.

That PHP/PEAR configuration would go into PHP files needing to use your local PEAR modules.
The alternative environment setting using bash_profile means that your program could use the installed PEAR modules i.e. DB.php but then for a specialised PEAR module it should check your local install for the module. Thus avoiding the need to add ini_sets to each PHP file.

But I am not sure if the example in the wiki is correct and probably needs some clarification.


Norm

Opinions are my own views, not DreamHosts’.
I am NOT a DreamHost employee OK!! :@

You act on my advice at your own risk!


#3

Hey, thanks for replying.

Yes I do mean mediawiki, sorry.
It did indeed work out of the box and with pear, however it was when I upgraded to PHP5 that my site stopped working.
I had to downgrade to the old php but my mediawiki is stuck on the updated version that will only work with php5.

Maybe I explained too much so my real question is what do i need to do to get pear to work with php5.

Many thanks.


#4

Have a look at the PEAR wiki page here if you have not already and see if that takes you any further forward. It will show how to install a local PEAR for PHP5 and install PEAR modules.


Norm

Opinions are my own views, not DreamHosts’.
I am NOT a DreamHost employee OK!! :@

You act on my advice at your own risk!


#5

Norm,

Thanks again but I’m beginning to think I am way out of my depth here.

I need to do a lot of reading.

Jason.