How to install SOAP - Tried everything

kaon

Verified User
Joined
Aug 7, 2008
Messages
42
Hello,

I am trying to install SOAPClient for php on my server.
I had previously installed it on CENT OS 5 perfectly few years back.

Now that i have changed server, i have Cent OS 6 (64bit) and with php 5.3

I edit my custom build file like this

Code:
nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5

And added the following code
Code:
\ 
--enable-soap

*** I took care of the "\" before the last line.

Now when i do custom build
Code:
./build php

I get an error:
Code:
/usr/local/directadmin/custombuild/configure/ap2/configure.php5: line 35: --enable-soap: [COLOR="red"]command not found[/COLOR]

I have tried everything and i have hit a dead end. Please help.

i have tried following:

  • --enable-soap=shared
  • yum install php-soap (removed php* from yum.conf) [installed fine]
  • yum install libc-client-devel [installed this software fine]
  • perl -MCPAN -e 'install SOAP::Lite' [did not install]
  • yum install patch.x86_64 gcc.x86_64 glibc.x86_64 libstdc++.x86_64 gcc-c++.x86_64 binutils.x86_64 libtool.x86_64 autoconf.x86_64 make.x86_64 [installed this software fine]

please help. whenever i build, i keep getting command not found

Thanks
 
That is not how you add a line to custombuild. You must first create a custom folder and copy the structure to it. If you use suphp the file wont also be ap2/configure.php5 it will be suphp/configure.php5

Example:

Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp ap2/configure.php5 custom/ap2/configure.php5
nano custom/ap2/configure.php5
./build update
./build clean
./build php n
 
Last edited:
please help. whenever i build, i keep getting command not found

How does your configure.php5 look like?

Note, there should not be any space or tab after \
But in your variant at least here there is one space after \, so it should be

Code:
\
--enable-soap
 
That is not how you add a line to custombuild. You must first create a custom folder and copy the structure to it. If you use suphp the file wont also be ap2/configure.php5 it will be suphp/configure.php5

Example:

Code:
cd /usr/local/directadmin/custombuild
mkdir -p custom/ap2
cp ap2/configure.php5 custom/ap2/configure.php5
nano custom/ap2/configure.php5
./build update
./build clean
./build php n

I tried your instructions.

The following command does not work.

Code:
# cp ap2/configure.php5 custom/ap2/configure.php5
I get error "cp: cannot stat `ap2/configure.php5': No such file or directory"
 
How does your configure.php5 look like?

Note, there should not be any space or tab after \
But in your variant at least here there is one space after \, so it should be

Code:
\
--enable-soap

I tried your advice. I wrote again making sure there is NOT a single space or tab.
And it worked fine.

Thanks
 
How does your configure.php5 look like?

Note, there should not be any space or tab after \
But in your variant at least here there is one space after \, so it should be

Code:
\
--enable-soap

There is something really wrong.
Please do help.

I do edit this file nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5 and add the line
--enable-soap but after a successful build

Code:
./build update
./build clean
./build php n

i DONT have SOAP client in phpinfo() and also the changes in ap2/configure.php5 are GONE.

Before build my file looks like this:

Code:
[COLOR="gray"]# nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5
  GNU nano 2.0.9                            File: /usr/local/directadmin/custombuild/configure/ap2/configure.php5[/COLOR]

#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr \
        --with-mysqli=/usr/bin/mysql_config \
        --with-pcre-regex=/usr/local \
        --with-pdo-mysql=/usr \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-mbstring[COLOR="red"] \
        --enable-soap[/COLOR]

After build it looks like this:

Code:
[COLOR="gray"]# nano /usr/local/directadmin/custombuild/configure/ap2/configure.php5
  GNU nano 2.0.9                            File: /usr/local/directadmin/custombuild/configure/ap2/configure.php5[/COLOR]

#!/bin/sh
./configure \
        --with-apxs2 \
        --with-curl=/usr/local/lib \
        --with-gd \
        --enable-gd-native-ttf \
        --with-ttf \
        --with-gettext \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype-dir=/usr/local/lib \
        --with-kerberos \
        --with-openssl \
        --with-mcrypt \
        --with-mhash \
        --with-mysql=/usr \
        --with-mysqli=/usr/bin/mysql_config \
        --with-pcre-regex=/usr/local \
        --with-pdo-mysql=/usr \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-zip \
        --with-iconv=/usr/local \
        --enable-bcmath \
        --enable-calendar \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-mbstring

Do note that now i dont get an error of command not found. My changes are just lost of some unknown reason.
 
Last edited:
You must be using PHP-CGI

If you're using suphp, the paths would be configure/suphp/configure.php5 and custom/suphp/configure.php5.
 
Hi, me i used suphp and i have in my suphp configure.php5
#!/bin/sh
"./configure" \
"--prefix=/usr/local/php5" \
"--enable-force-cgi-redirect" \
"--enable-fastcgi" \
"--with-config-file-path=/usr/local/etc/php5/cgi" \
"--with-curl=/usr/local/lib" \
"--with-gd" \
"--with-gettext" \
"--with-jpeg-dir=/usr/local/lib" \
"--with-freetype-dir=/usr/local/lib" \
"--with-kerberos" \
"--with-mcrypt" \
"--with-mhash" \
"--with-mysql" \
"--with-mysqli" \
"--with-pcre-regex=/usr/local" \
"--with-pdo-mysql" \
"--with-pear=/usr/local/lib/php" \
"--with-png-dir=/usr/local/lib" \
"--with-xsl" \
"--with-zlib" \
"--with-zlib-dir=/usr/local/lib" \
"--with-openssl" \
"--with-iconv=/usr/local" \
"--enable-bcmath" \
"--enable-calendar" \
"--enable-exif" \
"--enable-ftp" \
"--enable-gd-native-ttf" \
"--enable-magic-quotes" \
"--enable-soap" \
"--enable-sockets" \
"--enable-mbstring" \
"--enable-zip" \
"--enable-wddx"
How do I know if soap is installed and if not how to install it?
thanks

I used php 5.2.17 (not after because a problem with website)

EDIT :

I' trying to recompile PHP on a server to add a couple of extensions (soap among others).

I changed the configure.php5 everywhere and it still isn't compiling the extensions I need.

I have PHP 5.2.17 with suPHP and look at my configure files:
[root@host ~] cd /usr/local/directadmin/custombuild
[root@host custombuild]# find ./ -name configure.php5 |xargs grep soap
./configure/ap1/configure.php5: --enable-soap \
./configure/ap2/configure.php5: --enable-soap \
./configure/suphp/configure.php5: --enable-soap \
I'm recompiling with:
./build clean
and after
./build php n
 
Last edited:
Back
Top