How to recompile PHP with Soap support?

kcackler

Verified User
Joined
Apr 14, 2008
Messages
25
So here's something that I feel I could do manually, but am not sure how to do with custombuild...How do I go about recompiling PHP with the built-in Soap functions included, with custombuild?

I just transferred a Soap powered site to this server without thinking about that, and now we're non-functional until I get soap support added back in. So what are the exact steps I would need to take to add SoapClient into our PHP installation?

I am 99% sure that I have to add the option in the relevant file in either the ap1 or ap2 directories, but I've got no idea which directory, and even if it is suggested practice to do it like that. I don't know what those directories are for (can't find any docs on the subject) but I see the configure lines there so I think it's going to be in there somewhere...

Just need a bit of guidance, as I'm new to DA.

Edit - Just now figured out that ap1 and ap2 are for Apache 1 and 2...So I'm going to add my option to the ap2/PHP5 file and hope for the best when I build...
 
Last edited:
OK, for anyone who ever comes across this topic looking for help. To enable built-in soap support, all I had to do was this:

mkdir /usr/local/directadmin/custombuild/custom
mkdir /usr/local/directadmin/custombuild/custom/ap2
cp /usr/local/directadmin/custombuild/configure/ap2/configure.php5 /usr/local/directadmin/custombuild/custom/ap2/configure.php5

Edit ./custom/ap2/configure.php5 and add --enable-soap to the file, using the same \ syntax as you see in the file. Save it, ./build php and it worked perfectly.

I hope I did it right. Everything appears to be working.
 
Back
Top