Web Hosting Talk







View Full Version : Recompile PHP


TravelinMan
09-09-2001, 06:36 PM
I need to make a config change to the php.ini, which is not on my server. I was told to do this I need to recompile php. I need to include the path to sendmail in the php.ini so the mail functions will work properly.

From research (I placed the link below) I found that I should use the buildapache.sea file from panel.net and run it. I want to make sure that this is correct and I would like to know the chances of any problems occuring. I have live sites using php and I want to minimize downtime.

I tried contacting my upstream, and they are unavailable and this can not wait until Monday. I am posting this here because I was hoping to get a quick response and did not want to post in both places.

Thanks in advance. :D

http://support.cpanel.net/new/viewthread.php?tid=383

Palm
09-09-2001, 10:16 PM
On cpanel it should be called php3.ini

freakysid
09-09-2001, 10:47 PM
Are you certain you need to recompile php? I'm pretty sure that the mail functions are a pretty standard part of the API - that is, they get compiled in automatically.

I would first just try changing the php.ini setting for the correct path to sendmail, then restart apache, and test to see if the php mail() function is working before worrying about recompiling.

Not that recompiling is difficult (if you have php compiled as an apache DSO module) - as long as you know what you want to put into your configure command.

TravelinMan
09-09-2001, 11:03 PM
There was no php.ini on the server, but there was a php3.ini.

I changed the information there and all is well.

Thanks for the quick replies!