Find the answer to your Linux question:
Results 1 to 3 of 3
Hello Linux experts, I have a dedicated server on which php is installed from source code. There was a requirement to enable soap on php. i have recompiled the source ...
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Location
    chandigarh
    Posts
    29

    soap not visible in info.php

    Hello Linux experts,

    I have a dedicated server on which php is installed from source code.
    There was a requirement to enable soap on php.
    i have recompiled the source code using the following command:
    # ./configure --enable-soap
    # make
    # make test
    # make install

    Its was successfully installed.
    then i have checked the module installed on it using following command :
    # php -m
    [PHP Modules]
    bcmath
    bz2
    ctype
    date
    dom
    ffmpeg
    filter
    ftp
    gd
    hash
    iconv
    imagick
    ionCube Loader
    json
    libxml
    magickwand
    mbstring
    pcre
    PDO
    pdo_sqlite
    posix
    Reflection
    session
    SimpleXML
    soap
    sockets
    SPL
    SQLite
    standard
    tokenizer
    xml
    xmlreader
    xmlwriter
    Zend Optimizer
    zip
    zlib


    here its showing that soap module is installed.

    then i have checked the php.ini file :

    extension="/usr/lib/php/modules/soap.so"

    above variable was present there.

    # ll /usr/lib/php/modules/soap.so

    its also present there.

    however soap is not visible in phpino.php /info.php file

    I have restarted the apache server to check the changes in phpinfo.php file. but soap still not present there.

    my developer is saying that soap functionality not working


    Have added following lines in php.ini file :
    [soap]
    ; Enables or disables WSDL caching feature.
    soap.wsdl_cache_enabled=1
    ; Sets the directory name where SOAP extension will put cache files.
    soap.wsdl_cache_dir="/tmp"
    ; (time to live) Sets the number of second while cached file will be used
    ; instead of original one.
    soap.wsdl_cache_ttl=86400


    restart the apache .
    Still not worthy. Please someone help me !!!!!!!!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Chances are you are still using the older (default) php since you didn't change the default prefix when you ran the configure script. The default puts the components in /usr/local (/usr/local/bin, /usr/local/lib, etc) instead of /usr. So, either change your PATH environment, or uninstall the package, rerun the configure script with the --prefix=/usr option, and rebuild/install.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Location
    chandigarh
    Posts
    29

    soap not visible in info.php

    Quote Originally Posted by Rubberman View Post
    Chances are you are still using the older (default) php since you didn't change the default prefix when you ran the configure script. The default puts the components in /usr/local (/usr/local/bin, /usr/local/lib, etc) instead of /usr. So, either change your PATH environment, or uninstall the package, rerun the configure script with the --prefix=/usr option, and rebuild/install.
    Hello Rubberman;

    Thank you . for the reply that you have made. Really appreciate your suggestion.
    However i have tried to recompile the php using following command :

    ./configure --prefix=/usr/local --enable-libgcc --with-bz2 --enable-mbstring --with-gd --enable-bcmath --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-sockets --with-gd --with-ttf --with-zlib --enable-soap

    make
    make test
    make install

    after this it has given me a warning msg:
    Warning! a PEAR user config file already exists from a previous PEAR installation at '/root/.pearrc'. You may probably want to remove it.
    Wrote PEAR system config file at: /usr/local/etc/pear.conf
    You may want to add: /usr/local/lib/php to your php.ini include_path

    so i took backup of this file and run that command again

    #make install

    Wrote PEAR system config file at: /usr/local/etc/pear.conf
    You may want to add: /usr/local/lib/php to your php.ini include_path

    i couldn't understand the last line "You may want to add: /usr/local/lib/php to your php.ini include_path"

    Wt to do about this ?

    and then restarted the apache.

    again soap entry is not there in phpinfo.php file


    One thing more interesting i found that when i run the following command:

    # php -i |grep soap

    Configure Command => './configure' '--prefix=/usr/local' '--enable-libgcc' '--with-bz2' '--enable-mbstring' '--with-gd' '--enable-bcmath' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-sockets' '--with-gd' '--with-ttf' '--with-zlib' '--enable-soap'
    extension_dir => /usr/lib/php/modules/soap.so => /usr/lib/php/modules/soap.so
    soap
    soap.wsdl_cache => 1 => 1
    soap.wsdl_cache_dir => /tmp => /tmp
    soap.wsdl_cache_enabled => 1 => 1
    soap.wsdl_cache_limit => 5 => 5
    soap.wsdl_cache_ttl => 86400 => 86400


    however if i check the phpinfo.php on browser then it shows:

    http://remotehost/phpinfo.php


    Configure Command => './configure' '--disable-pdo' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-png-dir=/usr' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'

    Dont know from where its picking the above info

    however path to php.ini is same.


    Is apache/apache conf file have something to do with this?

    Please help me Linux Guru...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...