Archived Forum Post

Index of archived forum posts

Question:

Install PHP Extension on Shared Linux Hosting?

Oct 18 '16 at 07:56

We are trying your PHP extension for the MailMan, we have shared hosting plan with Hostgator,

We are done with all needed configurations and code modifications, yet once the code run we get the following error message, could you please advise,

Call to undefined function dl() in /home3/xyz/public_html/something.com/Plugin/chilkat_9_5_0/chilkat_9_5_0.php

We are running php 5.4


Answer

The PHP "dl" function is typically disabled by default, to prevent the dynamic loading of extensions. Installing a PHP extension would require help from your hosting provider. See the following:

http://stackoverflow.com/questions/18123754/load-extension-dynamically
http://php.net/manual/en/function.dl.php

A good solution is to consider Amazon EC2 or (if Windows) Windows Azure PHP hosting. The cost per month of hosting is (I think) comparable to shared hosting, but you have your own virtual machine.

With Amazon EC2, consider Reserved Instances. https://aws.amazon.com/ec2/pricing/reserved-instances/