• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Error 500 on send_httprequest function

artefact

New Pleskian
Hi

I am a Linux and Plesk newbee.

I have an OVH VPS under Ubuntu and Plesk 11.5.30 which is hosting a paybox.php file call from outside (Paybox payment server). A send_httprequest function is causing an 500 error when Paybox is calling the paybox.php URL. This file was working well under another server. Which module have I forget to install to make this function working?

Any help would be appreciated
Greg
 
Hi

Log error give me: PHP Fatal error: Class 'HttpRequest' not found

Here is the solution:
First, you will need to install PEAR via apt-get to get the necessary package and distribution system that both PEAR and PECL use. From a shell prompt enter:

sudo apt-get install build-essential

sudo apt-get install php-pear

Install the HTTP_PECL module with the following command:

sudo pecl install pecl_http

You may need to install these packages for dependencies :

sudo apt-get install zlibc
sudo apt-get install libcurl4-openssl-dev

Enable http.so in apache by adding "extension=http.so" to php.ini

then restart apache :

/etc/init.d/apache2 restart

Hope this will help
Greg
 
Back
Top