Welcome to WebmasterWorld Guest from 35.172.195.49

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

how do you *re*compile php?

     
7:33 pm on Jan 16, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 2, 2001
posts:597
votes: 0


I've been told I need to do it, but how? I'd like to keep all the old settings and just add one that might be the source of some problems on my server. I would think doing something like this is normal, but I can't find much info on this, everything seems to be focused on compiling PHP during install which isn't what I want...TIA!
9:36 pm on Jan 16, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 17, 2002
posts:1189
votes: 6


What O/S are you using? What is the option you wish to add?

If it's something like debian and you want to add an extra database you could just do something like

apt-get install php-missingdatabase

(note that's not the actual command - I can't remember debian. It's just a guide)

If you need to totally recompile for say, optimising, or you don't have a package manager like apt or yum then you'll need to download a version of php and do all that make, make install stuff.

Give us more info.

5:31 am on Jan 17, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 29, 2004
posts:153
votes: 0


If possible, get your host to do it for you with the specific options you need. (Why have you been told to do it?)

Even low- or no-service hosts may do a recompile if you ask nicely enough :-).

1:00 pm on Jan 17, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 2, 2001
posts:597
votes: 0


> What O/S are you using?

Redhat with Webmin

> What is the option you wish to add?

Because of the problems I mention here:

[webmasterworld.com...]

My host said I need to change this:

'--with-mysql=shared,/usr'

to this:

'--with-mysql=/var/lib'

Based on my reading around on the issue it does seem like that's what I need to do, but I'm not totally sure how.

I use Webmin to manage the server, which does have some package management features, but I don't think it allows me to recompile or anything like that...not sure though.

Can one of you tell me how to find the PHP source on my system (told ya I'm a noob)? Once I find that I could try and recompile it.

Also does it matter that php was likely installed from a package? Seems like people differentiate between manually installed and by package, and I'm not sure why...

2:32 pm on Jan 17, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 2, 2001
posts:597
votes: 0


I think I might be all set now. Support just replied that there was something wrong with the rpm? looking for certain files in the wrong places? So they used symbolic links to point to the correct locations and now php does connect to mysql! don't know what that means really, but it's working!

Thanks for the help!