I was trying to use soap services but i have been facing following error
Fatal error: Class "SoapClient" not found
I have determined one part that was the easy one that soap extension is not installed. So now i want to install it but i can only access to the server through terminal and root user.
I cannot find any tutorial which can guide me to install soap extension to remote server. Also I am not sure what risks are involved as i am very beginner to it. So any kind of help will be much appreciated.
my php version is 5.1.6, apache version is 2.2.3 and Server OS is CentOS release 5.2
Regards
http://www.wallpaperama.com/forums/how-to-install-php-soap-extension-in-apache-linux-php-server-remove-t1756.html
The above url shows you how to install soap extension for php and Fatal error: Class 'SoapClient' not found this link would show you do you have it installed or not or it is enabled or not.
Thanks & Regards,
Alok Thaker
Related
I am trying to configure MongoDB on the AWS server, but when I try to make an API call, I get the following error:
Fatal error: Class 'MongoDB\Driver\Manager' not found in /srv/www/api/releases/20160912135146/vendor/mongodb/mongodb/src/Client.php on line 56
I have done the following:
Install mongodb, following the instructions here -> install mongodb community edition on ubuntu
installed the php mongodb driver using pecl install mongodb
added extension=mongodb.so to php.ini at etc/php5/cli/php.ini
Started the mongodb service
on the server, I can enter the mongo console with $ mongo
What am I missing here, Please?
PS: the API is developed using Phalcon
I finally found a solution to this. Apparently, the apache server uses a special php.ini file, different from etc/php5/cli/php.ini. This file is located in etc/php5/apache2/php.ini. After installing the mongodb driver using pecl install mongodb, your extension should go in etc/php5/apache2/php.ini i.e add extension = mongodb at the end of etc/php5/apache2/php.ini. Good luck
I'm seriously loosing my patience with this one.
I tried to install PHP Pecl Memcached on the server with the above spec using the following approach:
Software > Module Installers > PHP Pecl
search for memcache
Installed first the memcache 3.0.8, which went all fine, but then trying to install memcached 2.2.7 I get error saying:
configure: error: no, sasl.h is not available. Run configure with --disable-memcached-sasl to disable this check
ERROR: `/root/tmp/pear/memcached/configure --with-libmemcached-dir=no' failed
The memcached.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
No changes
Any idea what I need to do to make it work?
Please refer this link, seems to be some problem with the location of memcache.so object file
The Error Message is clear. You need the cyrus-sasl-devel package installed.
i am hosting a website on hostGator with Linux cpanel.
i am using httpRequest and Curl functions in my php script. But when i put the script on Live Server it says,
Fatal error: Class 'HTTPRequest' not found in home/directory/file.php on line42
Any way to set up the server as i,ve update the php version to 5.5 on server from Cpanel.
How to configure these settings i have no idea.
Don't Link to these Questions not Helping in my case:
PHP Fatal error: Class 'HttpRequest' not found
HttpRequest not found in php
You can try this Alternative, as if you are on shared hosting you might not able to get the desired modules:
instead of httprequest use CURL which is built in php module, and easily enabled on linux hosting servers as well.
Check this out might be helpful.
Alternative for HTTPRequest in php
This is a pecl module that is apparently not installed on your server. You can either install via cPanel -> PECL or using the pecl cli pecl install
http://www.php.net/manual/en/install.pecl.php
Looks like I was wrong there does not appear to be a pecl manager in cPanel just pear.
So you need to ssh to the server and use the pecl command else write support#hostgator.com and request they install the extension for you
I'm attempting to get the link shortening PHP scripts YOURLS working on my basic web server running Lubuntu 12.04.
I have a MySQL database created and PHP5 installed. When I attempt to access the administration interface for YOURLS in a browser, I am presented with the following message:
Fatal Error: ezSQL_mysql requires mySQL Lib to be compiled and or linked in to the PHP engine
I'm very new to MySQL and PHP, so I don't know how to approach this problem. Could you point me in the right direction on this?
(For a quick guide to setting up YOURLS, you can see this video to get the general idea.)
You need to ensure that the MySQL extension is loaded into PHP.ini, and has been compiled into PHP as well.
Install mysql-devel and php-mysqli packages
yum install mysql-devel php-mysqli
Names can change a bit as Ernest show's in his answer.
If you have installed your php server and mysql through yum, try to use yum to search for the relevant package.
For example, if you used "yum install php55", try "yum search php55", then look for something like "php55-mysqld". If found, install it "yum install php-mysqld". That will install the required module for PHP to interact with your mysql.
Installing all php packages and its dependencies worked for me.
yum install php-*
finnaly i Found the solution
just change this line > class ezSQL_mysql extends ezSQLcore in ez_sql_mysql.php
to class ezSQL_mysqlx extends ezSQLcore
:)
I have developed a PHP site using PHP 5.3.4 and deployed it to a server that has PHP 5.2.6 installed. I am not doing anything fancy; in fact, the only major library I am using is PHP's native SOAP library.
However, when I test my deployed site, I get the error:
Fatal error: Class 'SoapClient' not found in (path) on line 20
Are there any major differences between PHP 5.2.x and 5.3.x with respect to the SOAP library? I have already changed the configuration files. (Well, actually I told the sysadmin to do it, because I don't have permission to do so.) And I get the same error. Any ideas?
EDIT: More information...
I'm deploying my site to a Windows server.
The server has AppServ installed.
For some reason I don't understand, PHP's configuration file is C:\Windows\php.ini instead of PHP_DIR\php.ini.
I dont think soap is installed on the server try
sudo aptitude install php-soap
change the following line in php.ini:
;extension=php_soap.dll // before
extension=php_soap.dll // after
this enables the soap extension since PHP 5.0