• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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