Search code examples
phplinuxparallels

edit PHP ini file under linux problems


I am getting the follow when trying to create a SOAP connection in PHP

AutoLoader did not find file for 'SoapClient'!

I also checked in my phpinfo() file and i do not see anything mechining SOAP so i take it that SOAP is not installed (enabled?) on the server?

So if that is true, how would i go about installing SOAP? Is it as simple as editing the php.ini file with the following:

extension=php_soap.dll
extension_dir = "<full path to the 'ext' directory>"

and making sure i have php_soap.dll in the ext path? 

But theres a problem with that as well. Its running on a linux server and we do not (or can not find an option) to edit the ini file or even get to it using Parallels.

The server is running PHP Version 5.3.3 with Apache Version 20051115


Solution

  • Using a debian derivative (like ubuntu)

    sudo apt-get install php-soap
    

    Maybe you must restart the server after that.