• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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